Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 09:30:43 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.
155400 Posts in 21698 Topics by 7729 Members
Latest Member: adnan
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Sitemap  (Read 759 times)
bupaje

Offline Offline

Posts: 519


WWW
« on: June 24, 2008, 05:39:22 PM »

It seems the Sitemap module may break with 2.7. It doesn't show up on the Modify page even though it still shows in the Manage Sections page, you can still reorder it and the rendered page shows the module - I just can't access it. I tried a new page and you can add the module but again, can't see it to modify.

EDIT: It apparently also doesn't let you view any other modules in the modify page that are ordered after it either.
« Last Edit: June 24, 2008, 05:45:08 PM by bupaje » Logged

My Blog, My Site
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4883



« Reply #1 on: June 24, 2008, 05:45:46 PM »

Hello Bupaje,
it's pretty easy to create a sitemap using showmenu 2 insite a code block.

Best regards,
Stefek
Logged

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

Offline Offline

Posts: 519


WWW
« Reply #2 on: June 24, 2008, 05:48:21 PM »

Yes, that is what I am doing now.  smiley

I figured it was something people might need to know about as the module is still available.
Logged

My Blog, My Site
midiweb

Offline Offline

Posts: 178


« Reply #3 on: January 24, 2009, 05:49:13 PM »

hi, this sitemap version doesn't work apparently with  Wb 2.7. It worked with 2.6 that I updated. I need a sitemap. How to create oneself a sitemap? I have no idea how.


Code:
Details zum Modul
Name:     Sitemap
Art:     Seite
Autor:     Ryan Djurovich, Frank Schoep, Woudloper, Ruebenwurzel, Rob Smith
Version:     3.0
Entworfen für:     WebsiteBaker 2.5.x - 2.6.x
Beschreibung:     This module allows you to easily create a sitemap. You can even work with additional layout settings for the sitemap.

who can help me?
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #4 on: January 24, 2009, 06:14:08 PM »

You can create a sitemap with sm2

See developer's site for details.

rgds

erpe

Logged

bupaje

Offline Offline

Posts: 519


WWW
« Reply #5 on: January 24, 2009, 06:23:43 PM »

For your convenience this is the code from my site. You can use it in a code block if it suits you. This is the page it produces.

http://stormvisions.com/pages/help/site-map.php

Code:
echo <<<FOO
<style type="text/css">
div.left ul, div.left li, div.left span, div.left * {
    text-align: left !important;
    font-weight: 500;
    font-family: helvetica, arial;
    font-size: 10pt;
}
ul.sitemap li {
    text-align: left;
    padding-top: 0.5em;
}
ul.sitemap .menu-current> span.stuff {
    display: block;
    background-color: #E0E0FF;
    border-right: 1px solid blue;
}
div.left { text-align: left !important; }
</style>
<h1>Sitemap</h1>
<div class="left">
FOO;

show_menu2(SM2_ALLMENU, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_ALLINFO, '[li]<span class="content">[a][page_title]</a> (menu: [a][menu_title]</a>)<br /><i>[description]</i><br /></span>', false, '<ul class="sitemap [class]">');

echo "</div>";

There was also a bit of code someone posted somewhere for an A-Z sitemap. This produces this page.

http://stormvisions.com/pages/help/sitemap-a-z.php

Code:
$private_sql = "";
$private_where_sql = "NOT visibility = 'private'";
global $database;
    global $private_sql;
    global $private_where_sql;
    global $shown;
$shown="z";

   
    //SELECT distinct LEFT(nom, 1) AS firstletter FROM t_pilote order by firstletter ASC
   
    // Check if there are any pages to show
    echo '<h2>Pages A to Z</h2>';
       
    $alpha = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
   
    $query_menu = $database->query("SELECT distinct LEFT(page_title, 1) AS firstletter FROM ".TABLE_PREFIX."pages order by firstletter ASC");
   
    $page = $query_menu->fetchRow();
    for($i=0;$i<count($alpha);$i++){
        if($page['firstletter']!=$alpha[$i]){
            echo'&nbsp; | &nbsp;'.$alpha[$i].'';
        }else{
            echo'&nbsp; | &nbsp;<a href="#'.$alpha[$i].'">'.$alpha[$i].'</a>';
            $page = $query_menu->fetchRow();
        }
       
    }
    echo"&nbsp; |<br><br>";

    // Query pages
    $query_menu = $database->query("SELECT page_id,parent,link,page_title,menu_title,description,keywords,modified_when,modified_by,link,target,visibility FROM ".TABLE_PREFIX."pages WHERE $private_where_sql ORDER BY page_title ASC");
   
    if($query_menu->numRows() > 0) {
        while($page = $query_menu->fetchRow()) {

            $firstletter = substr($page['page_title'], 0, 1);
            if ($firstletter != $shown){
                echo '<h3><a name="'.strtoupper($firstletter).'" id="'.strtoupper($firstletter).'">'.$firstletter.'</a></h3>';
                echo'<br />';
                $shown = $firstletter;
            }
           
            echo '<a href="';
                echo page_link($page['link']);
                echo '">';
                echo $page['page_title'];
                echo'</a>';
                echo '<br />';        
        }
    }


I can't answer questions about this but maybe it is enough to solve your problem.
Logged

My Blog, My Site
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!