Link | ul_taxonomy |
Author | Brian Loomis |
Category | Output |
Version | 8.x |
License | Public Domain |
Posted | 27 Jun 2008 |
Updated | 28 Jun 2008 |
More by this author... |
This tag is used to return an unordered list based off of the xs_cat tags so that css flyout menus, or javascript jQuery madness can be applied for ultimate styling and sliding pleasure. http://www.cssplay.co.uk/menus/ See Stuart Nichols stuff. Once you get this tag implemented with xs_cat you will see how easy it is to optimize dynamic css menus from your database content. You can also modify the SQL generation easily enough to show only subnodes etc.
'); var('gv_error'=''); var('comp_sql'=''); !(lasso_tagexists: 'xs_cat') ? library:'/components/inSite/category_ctags.inc'; var( 'cattable_resources'='pages', ); define_tag( 'taxonomy', -namespace='ul_', -req='css_id', -type='string', -req='recurse', -type='integer', -priority='replace', -description='Returns nested unordered lists of elements of a taxonomy within the given path.' ); local('out')=''; var('SQL' = xs_cat->(fullCatSQL(-cattable= $cattable_resources ,-xtraReturn=', node.lft, node.rgt, node.description, node.metatags, node.metadescription, node.title_tag ',-xtraWhere='', -depth=#recurse))); inline(-username='xxx',-password='yyy', -database='zzz',,-SQL=$SQL, -maxrecords='500'); var('depth'= integer(column('depth'))); var('c_depth'= integer(column('depth'))); #out += '
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag( 'taxonomy', -namespace='ul_', -req='css_id', -type='string', -req='recurse', -type='integer', -priority='replace', -description='Returns nested unordered lists of elements of a taxonomy within the given path.' ); local('out')=''; var:'cattable_resources' = 'pages'; //name of your taxonomy database var('SQL' = xs_cat->(fullCatSQL(-cattable= $cattable_resources ,-xtraReturn=', node.lft, node.rgt, node.description, node.metatags, node.metadescription, node.title_tag ',-xtraWhere='', -depth=#recurse))); inline(-username='xxx',-password='yyy', -database='zzz',-SQL=$SQL, -maxrecords='500'); var('depth'= integer(column('depth'))); var('c_depth'= integer(column('depth'))); #out += '
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft