Page 1 of 1

how to access "Page URL"?

Posted: Tue Jan 04, 2011 9:40 am
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?

Re: how to access "Page URL"?

Posted: Tue Jan 04, 2011 7:44 pm
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}