Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 307 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drupal Site Map Module

#1
I am looking for a module that can create sitemap in Drupal, but couldn't find any. I tried [Site Map][1] module, but it can only generate a sitemap page; it can't create a sitemap block at the end of every page. I also tried [site menu module][2], but it can't create a sitemap block as shown above, as well.

Maybe it's just that I don't know how to configure, but I read every readme file, and tried for a few days, still can't get it to work.

Anyone has any idea?


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#2
My idea here is to use [Views][1] module with customized block type.


[1]:

[To see links please register here]

Reply

#3
There is a basic comparison of sitemap modules at

[To see links please register here]


I have used sitemenu and it worked for my needs, but the real answer depends on how you structure your site with taxonomy, content types, etc.
Reply

#4
Something like [Auto Menu][1] might work for you here as well. You could simply add the menu it generates to a footer block on your front page.


[1]:

[To see links please register here]

Reply

#5
I had the same problem, after trying a module (site-map) but missing customization options I wrote a custom module. Took less time then messing with the site-map module, for just getting a site map the following code is enough (adapt your-menu):

function sitemap_render_menu ($menu) {
$output = "<ul>";
foreach ($menu as $item) {
$link = $item["link"];
if ($link["hidden"]) {
continue;
}

$output .= "<li><a href=\"" . check_url(url($link["href"], $link["options"])) . "\">" . $link["title"] . "</a></li>";

if ($item["below"]) {
$output .= sitemap_render_menu($item["below"]);
}
}

$output .= "</ul>";
return $output;
}

function sitemap_content () {
$output = "<h1>Sitemap</h1>";
$output .= "<span id=\"sitemap\">";
$output .= sitemap_render_menu(menu_tree_all_data("your-menu"));
$output .= "</span>";
return $output;
}


function sitemap_menu () {
$items = array();

$items["sitemap"] = array (
"title" => "Sitemap",
"page callback" => "sitemap_content",
"access arguments" => array("access content"),
"type" => MENU_CALLBACK);

return $items;
}
Reply

#6
With the Site Map module installed, this php code will print the site map.

<?php echo theme('site_map'); ?>

You could create an empty views block and specify the above for the empty text, selecting the PHP Code input format.

There may be a better way to create a custom block to display php code, but I don't know it.
Reply

#7
I think you can benefit from [Menu block][1] module. as you can create menu blocks for all the menus you need in the footer. Then you can add them all in footer or in a one block using minipanels block (from [panels][2] module).


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#8
You can use Footer_sitemap module which provides us with the configurable block.

[To see links please register here]

Reply

#9
This is a little mod of best answer it uses current theme to show hierarchy

function sitemap_render_menu ($menu) {

$output = "<ul class='menu'>";

foreach ($menu as $item) {
$link = $item["link"];
if ($link["hidden"]) {
continue;
}

$cc=($item["below"]) ? "class='collapsed'" : '';

$output .= "<li $cc><a href=\"" . check_url(url($link["href"], $link["options"])) . "\">" . $link["title"] . "</a>";

if ($item["below"]) {
$output .= sitemap_render_menu($item["below"]);
}

$output .= "</li>";

}

$output .= "</ul>";
return $output;
}

function sitemap_content ($title,$menu) {
$output = "<h1>$title</h1>";
$output .= "<span id=\"sitemap\">";
$output .= sitemap_render_menu(menu_tree_all_data($menu));
$output .= "</span>";
return $output;
}


function sitemap_menu () {
$items = array();

$items["sitemap"] = array (
"title" => "Sitemap",
"page callback" => "sitemap_content",
"access arguments" => array("access content"),
"type" => MENU_CALLBACK);

return $items;
}

print sitemap_content("Navigational menu","Navigation");
Reply

#10
A simple solution which doesn't depend on content being included as a menu item can be achieved by :

Creating a new view

Output as a block

Using Fields:

Content Title (configured to "Link this field to the original piece of content"

Content Type (configured to "Exclude from display")

Format as

Unformatted list with settings - Grouping field Nr.1 select Content:Type;

Filter Criterea:
Content: Published (Yes)
Content Type - Configure to select the content types you wish to include;

Sort criteria - Configure as per your preference
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through