Hi,
I like to create a listing pages/subpages under one main category. I don't need to create a navigation/menu maker, just one category has submenu, example, main category: Profile, it got submenu: Profile1, Profile2, Profile3...
The code that I applying:
But I doesn't seem to make it work. In the front-end, all the content/profile_desc (profile1 and profile2) is showing within one page no matter what submenu I choosing.
I don't know which part am I did wrong, or maybe none of it are correct, and I not sure that should I use nested page or not.
Is anyone can give me some suggestions or sample code. Thanks.
I like to create a listing pages/subpages under one main category. I don't need to create a navigation/menu maker, just one category has submenu, example, main category: Profile, it got submenu: Profile1, Profile2, Profile3...
The code that I applying:
- Code: Select all
<cms:template title='About Us' clonable='1' nested_pages='1'>
<cms:editable name='profile_desc' ></cms:editable>
</cms:template>
- Code: Select all
<cms:if k_is_home >
<cms:pages>
<cms:redirect url="<cms:show k_page_link />" />
</cms:pages>
</cms:if>
- Code: Select all
<li><a href="profile.html" id="selected">About Us</a>
<ul>
<cms:set my_current_page=k_page_name />
<cms:pages>
<li><a href="<cms:show k_page_link />" <cms:if k_page_name==my_current_page > id="selected" </cms:if> ><cms:show k_page_title /></a></li>
</cms:pages>
</ul>
</li>
- Code: Select all
<cms:pages page=k_page_name >
<cms:show profile_desc />
</cms:pages>
But I doesn't seem to make it work. In the front-end, all the content/profile_desc (profile1 and profile2) is showing within one page no matter what submenu I choosing.
I don't know which part am I did wrong, or maybe none of it are correct, and I not sure that should I use nested page or not.
Is anyone can give me some suggestions or sample code. Thanks.