Jump to content

[solved] CMS subpages


renegadeok
 Share

Recommended Posts

Hi!

 

I suggest you do this in the cms controller, but you can as well try to retrieve those pages in the tpl using

 

{CMS::getCMSPages($cookie->id_lang, $cms->id_cms_category)}

Share this post


Link to post
Share on other sites

i mean that {CMS::getCMSPages($cookie->id_lang, $cms->id_cms_category)} is an array with elements

in this case foreach loop is necessary

 

PpCDQ6Y.png

 

{foreach from=CMS::getCMSPages($cookie->id_lang, $cms->id_cms_category) item=cat}
this is {$cat.name}
{/foreach}

 

hope i understood everything here, in this thread well ;) if no, please correct me :D

Share this post


Link to post
Share on other sites

Thanks for being so prompt.

 

It needs a loop indeed, but {$cat.name} returns empty; probably it's not a property name. I'm trying to figure out which one I should use (of course, if I manage to list my object).

 

Again, thanks to both vekia and Nemo1

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More