|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
brettz9 Smarty Regular
Joined: 07 Jul 2006 Posts: 93
|
Posted: Wed Feb 28, 2007 1:35 am Post subject: Navbarcrumbs |
|
|
Hi all,
Just letting y'all know, I've releases some code at https://sourceforge.net/projects/navbarcrumbs which can be used in conjunction with Smarty.
As I explain there, this is a PHP5/SimpleXML class which uses one XML file that you create to represent your site's structure to allow the auto-creation of important accessibility items: navigation bar (with alphabetical or optgroup pull-downs), breadcrumbs, link tags with next/prev rels, alphabetical and nested or non-nested hierarchical sitemaps, or the current page title. These can be retrieved with independent method interfaces.
Known issues:
1) Does not allow localization (when this feature is in use) of part of a field (at least if localizing is pre-Smarty)--assumes the localization is for the whole field.
2) Note that the hierarchical data is being dumped to Smarty as just one simple variable (not as an array); this could be fixed to allow customization of the design output within a template, rather than by needing to modify the XHTML within the class. The custom plugin discussed in the thread http://www.phpinsider.com/smarty-forum/viewtopic.php?t=291 could then be used to recreate the hierarchical data in Smarty.
Other uses
With some custom CSS, the Sitemap code could perhaps be made into a set of hierarchical pull-down menus (e.g,. through CSS :hover pseudo-class).
Let me know if anybody gives it a try...
best wishes,
Brett |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|