How can one exclude registered content/menu from being shown in SimpleSiteMap?

General project discussion. NOT for help questions.
Post Reply
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

How can one exclude registered content/menu from being shown in SimpleSiteMap?

Post by docman »

Hi, I managed to create content and menue items for registered users, only.

I have all the pages i) unchached, ii) unserached and obviously I had to keep them Active and Shown in menu for to e useful.

However, when I include module_simplesitemap, all the registered contents (being shown in the registed menues) do get shown up in this publically available list.

Any suggestion would be greatly appreciated.

Thanks.
kendo451

Re: How can one exclude registered content/menu from being shown in SimpleSiteMap?

Post by kendo451 »

I suggest you make your own sitemap by just making a menu template for it.

Use the extra1 attribute on the pages you want hidden from non members.  Just put a 1 in there on the options tab for each page.

Then in your menu call add the parameter loadprops=1  {menu template='sitemap' loadprops=1}.

Then in your menu template, for each node do this:

Code: Select all

{foreach from=nodelist item=node} {* this line is already in the menu template *}
{if ($node->extra1 && $ccuser->loggedin()) || !$node->extra1}

{* regular menu logic in here *}

{/if}
{/foreach}{* this line is already in menu template *}
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

Re: How can one exclude registered content/menu from being shown in SimpleSiteMap?

Post by docman »

Thanks so much. I will give it a try.
Post Reply

Return to “General Discussion”