Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi, i'm trying for a while now to do something i thought it was simple. So i have a clonable template main_page.php, and i ill do a clone every month, so i wanted to show the last clone of the template wen i open main_page.php. Anyone can tell me how?

Thx in advance
wen i open main_page.php
That would be the 'home-view'.
If you wish to show data of the latest cloned page in this view, you can do the following -
Code: Select all
<cms:if k_is_home>
    <cms:pages limit='1'>
         .. data from the latest page is available here for display ..   
    </cms:if>
</cms:if>

<cms:if k_is_page>
    .. show page ..
</cms:if>

If, however, you'd want to redirect the visitor from the home-view to the latest cloned-page's page-view, modify the code to make it -
Code: Select all
<cms:if k_is_home>
    <cms:pages limit='1'>
         <cms:redirect k_page_link />
    </cms:if>
</cms:if>

<cms:if k_is_page>
    .. show page ..
</cms:if>

Hope it helps.
Thx it helped.
3 posts Page 1 of 1
cron