Jump to content

Get all the page name in module backend


Recommended Posts

Hi,

I am developing a small module in prestashop. For that I want to get all the pages name. In my backend(module) there I will get all the pages name and in those pages I will show different text for different pages.

 

For that when I searched, I got that all the pages name can be found from the controller name and that controller name can be used in smarty template file

like

 



{assign var='controllerName' value=$smarty.get.controller}
{if $controllerName == 'cms'} <div>cms page</div>{/if}
{if $controllerName == 'index'} <div>home page</div>{/if}
{if $controllerName == 'category'} <div>Category Page</div>{/if}


but here I am showing different contents according to the page controller name but I want to show all the pages names in the module backend. So how to do that? Any help and suggestions will be really appreciable. Thanks

Link to comment
Share on other sites

I'm not sure I clearly understand your needs.

Are you using a tpl file for the module's back office? Or the getContent method?

 

Also, how are you retrieving all pages' data in the backend?

 

 

I want to get all the pages in backend. I have not used any tpl file in backend. Above the codes that I have shown is in my frontend tpl file. But I really don't know how to get all the page names in backend?

Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...