Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#94 2009-02-18 21:40:15

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

#95 2009-02-18 21:41:59

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

#97 2009-02-19 22:23:12

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?

Version 0.8.1 fixes a minor programming faux pas that managed to cause a major trauma. Normal service has been resumed (I hope).

Offline

#98 2009-02-25 11:36:19

emerald
New Member
Registered: 2009-01-20
Posts: 6

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Hi Adi,

I’ve just seen your update to “Didjee’s” 3 level navigation – This is exactly what I need to do – 3 levels of navigation, but with 1 horizontal menu and 2 vertical menus (sub menu and sub sub menu)

In your instructions you give an example of how a 2 level navigation would work i.e.
<txp:adi_menu menu_id=“nav” include_children=“0” active_parent=“1” />
<txp:adi_menu menu_id=“subnav” include_current=“1” include_parent=“0” />

How do I add the third level using the new “ancestors” attribute?
<txp:adi_menu menu_id=“subsubnav” ….etc

I’m new to all this and just can’t figure it out – Any help would be much appreciated.

Thanks

Emerald

Offline

#99 2009-02-25 11:56:42

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

emerald wrote:

How do I add the third level using the new “ancestors” attribute?
<txp:adi_menu menu_id=“subsubnav” ….etc

Hi Emerald. It depends how you want the subsubnav to appear. In the example, the subnav generates itself according to the current section (i.e. containing children & siblings).

What’s the particular scenario you have in mind? What’s the relationship between the subnav & the subsubnav?

Offline

#100 2009-02-25 12:15:21

emerald
New Member
Registered: 2009-01-20
Posts: 6

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Hi Adi,

Thanks for your quick response.

The sub and subsub menus are both vertical and appear under each other. So if you click on one of the main horizontal buttons a sub menu appears down the left, if you then click on one of the sub menu buttons the subsub menu appears underneath, with the sub menu still active above – hope this make sense.

The site is half built so you can see it at http://greatserversdns5.co.uk/~cadceptualuk/

Click on ‘services’ and the sub menu appears – I want the subsub menu to appear underneath this if you click on say “outsourcing’

Thanks again

Emerald

Offline

#101 2009-02-25 20:47:24

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Emerald,

I’ll have to go & sit in a darkened room to think about this one. I can smell an include_grandparent="1" coming on but I’m not sure …

Offline

#102 2009-02-26 09:00:34

emerald
New Member
Registered: 2009-01-20
Posts: 6

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Thanks Adi – Any help is much appreciated.

Offline

#103 2009-03-06 06:37:25

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

include_grandparent didn’t make it … but young sub_menu_level was born instead!

Version 0.9 available for download:
  • sub-menus at any level, with a new adi_menu attribute: ‘sub_menu_level’ (for emerald)
  • fix: selected section in Write tab changes to first section in list after saving new article

Thanks to emerald & renobird for testing the new version.

Offline

#104 2009-03-11 15:06:54

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

Adi,
I have a encoding problem with the plugin. The plugin display bad accentuated chars like this :

   * section 1
    * section 2
          o section 20
          o section 22
          o section 21
          o section 23
    * section 3
    * Présentation
          o Vidéo
          o Audio
    * Téléchargements

The section titles (Présentation, Téléchargements, Vidéo) are correctly displayed by the txp tags. Problem with adi menu tag and in the adi_menu admin tab, at the bottom of the page.

I try this on 2 sites.

Last edited by jpdupont (2009-03-11 15:32:23)

Offline

#105 2009-03-11 18:26:39

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: adi_menu – section hierarchy, section menu and breadcrumb trail

… now correct if I do escape=”“ …

Offline

Board footer

Powered by FluxBB