Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#85 2009-02-08 14:42:03
- debegray
- Member
- Registered: 2009-02-04
- Posts: 30
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Thanks – I’ll give it a shot!
Offline
#86 2009-02-08 14:45:50
- debegray
- Member
- Registered: 2009-02-04
- Posts: 30
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Now, this is what I get as soon as I click on the adi_menu tab, before I even try to install:
Warning: Unknown column ‘adi_menu_exclude’ in ‘field list’ SELECT name, title, adi_menu_parent, adi_menu_title, adi_menu_exclude, adi_menu_clone, adi_menu_sort FROM txp_section ORDER BY name in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_db.php on line 82
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_db.php on line 288
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_db.php on line 290
Notice: Undefined variable: out in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 358
Warning: Invalid argument supplied for foreach() in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 153
Warning: Invalid argument supplied for foreach() in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 269
Section Title Exclude? Parent Sort order Clone? Clone title
Administration
Install Uninstall Import
Warning: Unknown column ‘adi_menu_clone’ in ‘field list’ select name,title,adi_menu_parent,adi_menu_clone,adi_menu_title from txp_section where adi_menu_exclude = 0 order by NULL in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_db.php on line 82
Warning: Invalid argument supplied for foreach() in /homepages/23/d179350331/htdocs/textpattern/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 541
Offline
#87 2009-02-10 13:21:55
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
I’ve been working with debegray off-forum and have produced an interim version 0.7.2 in which I’ve made changes to accommodate MySQL version 4.
I’ll do some tests, and assuming they’re forward compatible with MySQL 5 they’ll appear in the next full version of adi_menu.
Offline
#88 2009-02-12 09:14:48
- nubian
- New Member
- Registered: 2009-02-12
- Posts: 6
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Hi, just started using textpattern and this plugin, is it possible to use the “separator” attirbute on the menu just like in the breadcrumbs?
Thanks!
Offline
#89 2009-02-12 09:32:53
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
nubian wrote:
Hi, just started using textpattern and this plugin, is it possible to use the “separator” attirbute on the menu just like in the breadcrumbs?
Menus are generated as nested unordered lists (i.e. <ul> & <li> elements) so I’m not sure where a separator would be used. I guess you could imagine the menus as being in 3D. The breadcrumbs, however, are a straight line list (i.e. in 2D) so separators are used to separate the individual crumbs.
Offline
#90 2009-02-12 11:08:15
- nubian
- New Member
- Registered: 2009-02-12
- Posts: 6
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Thanks for your reply.
Well, here’s currently what I have as a navigation link
home // blog // contact
now, I could probably use an image for the “//” and CSS-attach it to the <li> or <a> etc.
but I thought I could just add it in, but not make it part of the link.
Offline
#91 2009-02-12 11:47:36
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Of course. Apologies for being a bit slow.
It’s not something that adi_menu can do at the moment but it sounds like a reasonable requirement (& one that is probably easy to implement). I’ll add it to my list.
In the meantime, you’re right, you could add an image to the <li> or even have fun with the CSS content property & some fancy selectors:
ul { list-style:none }
li { float:left; }
li:before { content:'/ ' }
li:after { content:' /' }
li:first-child:before, li:last-child:after { content:'' }
I dread to think about browser compatibility for that lot though!
Offline
#92 2009-02-14 23:34:38
- nubian
- New Member
- Registered: 2009-02-12
- Posts: 6
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
yup the cross-browser thing is what’s holding me back from using those pseudo thingies…
thanks for looking into my request, will wait for the update… :)
Offline
#93 2009-02-18 05:36:29
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Version 0.8 available for download. Please use version 0.8.1 instead – it fixes a problem with sub-menus.
Highlights:
- section hierarchy now appears in Article/Write tab section popup
- new adi_menu attributes: ‘first_class’, ‘last_class’, ‘suppress_url’ (for renobird)
- new adi_menu attributes: ‘list_prefix’ & ‘prefix_class’ (for nubian)
nubian, to turn the prefix into a separator you can:
- use attributes
list_prefix="// " first_class="first"
- then in CSS:
ul li.first span.menu_prefix { display:none; }
Check the online help for details of the new attributes.
Last edited by gomedia (2009-02-19 22:25:52)
Offline
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Hmm. Installed 0.8 and my subnav disappeared. Any reason 2 menus on a page wouldn’t work?
—
Tom
Offline
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
Here’s how I’m calling the sub menu (was working before 0.8)
<txp:adi_menu menu_id="" class="article-list" include_current="1" include_parent="0" active_li_class="active" articles="1" article_attr='sort="position asc" limit="20"' article_exclude="about-us" sort="adi_menu_sort" active_articles_only="1" />
Last edited by renobird (2009-02-18 21:42:32)
Offline
#96 2009-02-18 22:06:02
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_menu – section hierarchy, section menu and breadcrumb trail
renobird wrote:
Hmm. Installed 0.8 and my subnav disappeared. Any reason 2 menus on a page wouldn’t work?
Whoops. I’ll contact you off-forum to get some diagnostics.
Offline