Jump to content

I created a page from admin panel. Where is it stored and how do I access it from another template?


eugene-last

Recommended Posts

Do you mean the pages on the Preferences > SEO & URLs tab? They only store the page title and meta information (in the ps_meta and ps_meta_lang databases tables). They do not store any content. CMS pages are used for creating new pages of content.

 

If you're trying to create a page from a module, you'll need to create a controller such as modules/<module_name>/controllers/front/<page_name>.php with a class that extends ModuleFrontController, then you assign variables and set the template in the initContent() function.

 

Have a look at modules such as the loyalty module to see how it's done.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...