by
KK » Mon Jan 19, 2015 11:55 pm
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.