Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 10:48:01 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155538 Posts in 21715 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Sitemap - change of behaviour.  (Read 433 times)
solbu

Offline Offline

Posts: 22


« on: April 04, 2010, 07:09:51 PM »

Is it possible to modify the sitemap module so it does Not display pages that have visibillity set to Private And Registered?

We add pages and articles that we work on, to clean up spelling errors and such and hence publish them for the public later. Also we have a few pages that guest simply is not supposed to read for any reason, as they contain internal information for administrators. But they are still visible in the public sitemap.

The "hidden" option is a no go, because all articles are set to "hidden", to avoid them clogging the menu. We want to control which pages appear in the menu.

Is it possible?
If not, is there another WebSitebaker based sitemap that have this function?
(It cannot be an external mapping page, like a google map, if there is such a thing.)
Logged

My posts are licensed under a Creative Commons license
albatros

Offline Offline

Posts: 674


WWW
« Reply #1 on: April 04, 2010, 09:42:20 PM »

Hi,

this could be done e.g. with showmnu2 or with a dropplet using showmenu2. Have a look here http://www.websitebaker2.org/forum/index.php/topic,13545.0.html

hth

Uwe
Logged
solbu

Offline Offline

Posts: 22


« Reply #2 on: April 05, 2010, 01:57:13 AM »

this could be done e.g. with showmnu2 or with a dropplet using showmenu2. Have a look here http://www.websitebaker2.org/forum/index.php/topic,13545.0.html
That hides exactly what de do NOT want to hide, which is hidden pages. smiley
Hidden pages just hides them from the menu. They are still accessible for public, like from other pages, which is what we want.

We want to hide only pages markd as PRIVATE and REGISTERED from the sitemap.
but it's promissing, I give you that. smiley
« Last Edit: April 05, 2010, 02:03:45 AM by solbu » Logged

My posts are licensed under a Creative Commons license
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #3 on: April 05, 2010, 02:08:23 AM »

Hello Solbu,

did you try it with sm2?

Could you please post the code you used?

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
solbu

Offline Offline

Posts: 22


« Reply #4 on: April 05, 2010, 02:10:59 AM »

did you try it with sm2?

Could you please post the code you used?
Code:
ob_start();
show_menu2(SM2_ALLMENU,
        SM2_ROOT,
        SM2_ALL,
        SM2_ALL|SM2_ALLINFO,
        '[li]<span class="sitemapcontent">[a][page_title]</a><br /><i>[description]</i></span>',
        false,
        '<ul class="sitemap [class]">');
$content = ob_get_contents();
ob_end_clean();
return $content.' ';
Logged

My posts are licensed under a Creative Commons license
solbu

Offline Offline

Posts: 22


« Reply #5 on: April 05, 2010, 02:15:00 AM »

By the way, I found the code by following links from this thread
Logged

My posts are licensed under a Creative Commons license
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!