Hi!
I would like to set up a basic static page in my application. I knew how to do this using the old static page component that took html files. However, I’ve seen that this feature has been deprecated and you either need to use the new CMS component (which is way too overpowered for my use case) or there’s a new React-based static page extension. All of the example workspaces make use of the CMS solution. Is there an example of the React solution that I could take a look at or is this new solution too complex that I would need to ask a dev to set this up?
Best,
Lea
Hi @lea-clear-clover, using the content model editor in SME is an option for modelers and there is a documentation available in geta12 explaining how to use the content modeling features. The deployment can be done via the app model similarly as it used to be done with html pages. However, for now the content editor is still experimental and limited to only static pages. In case you need more complex solution (such as dynamic elements in the content page) or you are specifically in need of React solution, support from a dev will be necessary. Unfortunately, I am not aware of any ready-to-see React solution example at the moment. But maybe someone else might have other ideas…?
Hi @katerina-icy-token ,
thanks for the response. Unfortunately, the content editor doesn’t really fit our use case. We want to use the static page as a simple interface for admin users to access a different application from within our existing application. This page shouldn’t ever be changed by any user. Therefore, we don’t want to add a whole new component to our application that doesn’t really fit our use case. Instead, we will go with a React-based solution that will bypass the appmodeling supported by the SME.
I would just like to say that I’m a little disappointed that this feature was removed as it provided a very easy way to add a simple page for very simple use cases that worked right out of the box.
Best,
Lea
I’m not sure how relevant this will be for your case since it’s done with App Modelling, but there’s an example of adding a static page to an A12 application (without CMS or Content Engine) in the first task of the frontend tutorial. The full code can be found on github.
Hope this helps a bit! Let me know if you have any questions.
Best,
Denise
Hi Denise,
thank you for that! I’ve shared the page and that’s a nice template for a solution that’s cleaner than what we had in mind.
Best,
Lea