xoops_breadcrumbs - the unified breadcrumbs list for XOOPS

Date 2007-03-01 04:21:58 | Category: XOOPS

[/xlang:ja]
in englishin japanese
breadcrumbs list should be displayed by theme.html instead of each modules's templates.

Now, I suggest 'xoops_breadcrumbs' as a template variable of $xoopsTpl.

All modules should assign 'xoops_breadcrumbs' like ...

[0] => array( 'name' => '(module name)' , 'url' => '(URL for module top)' ) ,
[1] => array( 'name' => '(category name)' , 'url' => '(URL for list in a category)' ) ,
[2] => array( 'name' => '(subcategory name)' , 'url' => '(URL for list in a subcategory)' ) ,
[3] => array( 'name' => '(the article name)' )


If all modules assigns like this, you can write in theme.html like this.

<div id="theme_breadcrumbs">
	<a href="<{$xoops_url}>/">TOP</a>
	<{foreach from=$xoops_breadcrumbs item="item"}>
		&nbsp;>&nbsp;
		<{if $item.url}>
			<a href="<{$item.url}>"><{$item.name}></a>
		<{else}>
			<{$item.name}>
		<{/if}>
	<{/foreach}>
</div>

You can understand this is the true "breadcrumbs list".

I've implemented xoops_breadcrumbs into pico and bulletin2.
But there are a lot of un-impelented modules in the world.

Though I know the fact, here is a magic named xugj_assign.php

(To be continued...)




You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=404