I'd like to have a page that is only viewable if a user is logged in. I've made a page via the "Page Editor" in 68C Admin section. I've added the link to the page (layout.tpl) in the horizontal tab menu, and it only shows up if the user is logged in. The problem i'm having is with the Accordion menu. The page shows in the menu even if the user is logged out. I know why, and I can see the code that fetches the pages: Code: {foreach from=$templatepages item="entry"} <li><a class="page" href="{$smarty.const.URL}/pages.php?page={$entry.pageID}">{$entry.pPageTitle}</a></li> {/foreach} This fetches all the pages if the user is logged out. I could add this bit of code below and place it within the "IF user logged in" part but then the same page will still appear if logged out due to the previous statement above: Code: <li><a class="member_benefit" href="{$smarty.const.URL}/pages.php?page=6">{$smarty.const.LLANG_TMP_MEMBER_PAGE_LINK}</a></li> How can I get this to work? Can you restrict the first statement to not retrieve a particular page? Thanks Glenn
An easier to implement solution might be to simply set the page within the admin where you create and edit it to "Seen in Nav" to No. Then it will not be included in the automatically created Page navigation menu. Use the same code that you did to put the link elsewhere to see if the user is logged in.
It worked Mike! Thanks Mike, I thought of doing that briefly when I was initially making the page, but thought that by turning off the "View in Nav" functionality it would override anything I would do in the code. Silly me, I just didn't go and actually try it? Thanks for your help, I should have known there would be an easy way. Glenn