Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#106 2009-03-14 07:43:35

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

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

escape=”“ correct the display with txp:adi_menu but not in the adi_menu admin tab.

Offline

#107 2009-03-14 09:12:03

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

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

jpdupont wrote:

escape=”“ correct the display with txp:adi_menu but not in the adi_menu admin tab.

Should be a straightforward thing to fix but I’ll contact you off-forum to get some more details.

Adi

Offline

#108 2009-03-15 09:04:39

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

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

I’ve had a couple of reports of adi_menu having problems with accented characters. I haven’t really got to the bottom of this but version 0.9.1 has a workaround.

The escape attribute (in adi_menu & adi_menu_breadcrumb) now has 3 options:
  • escape="html", still the default: escape all applicable characters (this is what TXP tags do with impunity but adi_menu has problems with)
  • escape="htmlspecial", escape only special characters: &, “, ‘, <, > (this will keep the HTML Tidy police from knocking on your door)
  • escape="", no escape

So, if you’re seeing some dodgy output with accented characters try the escape="htmlspecial" option – the usual suspects (i.e. &, “, ‘, <, >) will be translated but everything else will be left alone.

The hierarchy summary in adi_menu admin uses escape="htmlspecial" by default, so you shouldn’t see any problems there either.

Thanks to jpdupont for testing the new version.

Offline

Board footer

Powered by FluxBB