how to access "Page URL"?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

how to access "Page URL"?

Post by nicmare »

How can i access the new "Page URL" Parameter in "Options" Tab?
In a page template i want to call its parent page url to link to the parent page.
how can i achieve this? Maybe with cg simple smarty?
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

Re: how to access "Page URL"?

Post by nicmare »

i think cgsimple gives me that:

Code: Select all

{$cgsimple->get_children('','','children')}
{if count($children)}
   {foreach from=$children item='child' name='childarray'}
      {if $smarty.foreach.childarray.first}
        <h5><a href="{cms_selflink href=$child.alias}">{cms_selflink page=$child.alias}</a></h5>
        <p>wanna know {cms_selflink page=$child.alias text="more"}?</p>
      {/if}
   {/foreach}
{/if}
Post Reply

Return to “CMSMS Core”