Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2009-02-10 14:34:29

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

Re: [request] Bounty: Ultimate Nav Menu Builder

I like where this is all going….keep up the good work lads.

:)


Tom

Offline

#32 2009-02-18 06:02:12

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

Re: [request] Bounty: Ultimate Nav Menu Builder

Hi all.

You may have noticed I’ve released adi_menu version 0.8.

There’s also a hidden (beta) enhancement that you might like to have a play with.

Up until now in adi_menu, articles have been implemented using the standard <txp:article_custom /> tag and an external Form. I’ve introduced a new method where these are no longer used and adi_menu queries the database directly. This gives us the ability to dovetail articles with sections in the menu hierarchy.

  • to switch on this new functionality use adi_menu attribute test="1"
  • new attribute: article_class (user defined class on an article’s <li> – default = “menu_article”)
  • active_class & active_li_class now applied automatically to articles
  • new attribute: article_position (defines where articles appear – “after”, “before” or “dovetail” – default = “after”)
  • attribute modification: sort (now controls sorting of sections and articles when article_position="dovetail")
  • existing attribute: article_attr now mimics article_custom attributes (but will currently only understand ‘time’ & ‘limit’)

I haven’t updated the plugin help yet for the above so let me know if you have any queries.

If you use article_position="dovetail" sort="title" you should see your articles mingle with sections. I guess you can see where I’m going with this. If sections and articles can be sorted according to their title then, the next step is to sort them according to some other criteria (e.g. navbuilder order).

The first_class & last_class functionality improves as well – they’re applied to sections AND articles (they only work on sections in the old system).

Let me know how you get on.

Offline

#33 2009-02-18 11:06:52

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: [request] Bounty: Ultimate Nav Menu Builder

Hi guys,

Adi, I’ll check out the new features later today.

I’m putting the finishing touches on my own website today. That has keeping my busy the past few days. But I’ve also been exploring the possibilities of jsTree. This has been evolving into a plugin that manages articles, sections and navigation (site structure) in one drag/drop interface. Adi, because of the progress I’ve been making, I’m not sure if we’ll be able to lift the interface and put it onto adi_menu as mentioned before, sorry.
Right now I’m experimenting how to link the jsTree callbacks (like onMove, onDrop, onRename, onDblClick) to internal textpattern functions so this plugin can actually manage articles (change title, status etc.) and sections (sorting/ordering/nesting).

I’ll keep you guys informed.

Last edited by jelle (2009-02-18 11:27:24)

Offline

#34 2009-02-18 12:08:23

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

Re: [request] Bounty: Ultimate Nav Menu Builder

jelle wrote:

Adi, because of the progress I’ve been making, I’m not sure if we’ll be able to lift the interface and put it onto adi_menu as mentioned before, sorry.

adi_menu stores additional information about sections in the standard ‘txp_section’ table in the database: parent, exclude, sort etc. stm_article_order stores article sort information in the standard ‘textpattern’ table.

Because it’s in the database this information can be modified independently. Surely it would be a simple thing to manipulate this information, particlularly the sort values, in a drag/drop interface? If you can do this then we’re there. Drag & drop sets up the raw information, adi_menu translates it into markup.

Offline

#35 2009-02-18 13:44:49

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: [request] Bounty: Ultimate Nav Menu Builder

gomedia wrote: Surely it would be a simple thing to manipulate this information, particlularly the sort values, in a drag/drop interface? If you can do this then we’re there. Drag & drop sets up the raw information, adi_menu translates it into markup.

In theory it is…but I’ll need a bit of help getting the 2 setup properly as I’m fairly new to all this. :)
The plugin still needs a bit of work, then I’ll post it and we can see how to go from there.

Offline

#36 2009-02-18 14:42:47

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

Re: [request] Bounty: Ultimate Nav Menu Builder

Renobird: does small dance around the room

I’m am super excited with adi_menu as it is – with every step forward it just gets better and better.

Adi, I’ll check out all the new features today.

:)


TOm

Offline

#37 2009-02-20 02:53:38

formed
Member
Registered: 2008-09-29
Posts: 13

Re: [request] Bounty: Ultimate Nav Menu Builder

This is the most amazing community ever. I have a new website on the cards which requires some section / sub-section / sub-sub-section magic, and they need to be easily re-ordered (or added to) by the client. I was just starting to think that I may need to jump ship to EE, and then a moment of clarity to search this forum results in this. Even if this isn’t developed before I have use for it, it’s brilliant work all the same and I will be implementing it A.S.A.P!

What’s the process for donations? :) Currently broke, boo-hoo, but as soon as I can I’d like to contribute.

Offline

#38 2009-02-20 03:59:46

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

Re: [request] Bounty: Ultimate Nav Menu Builder

formed wrote:

What’s the process for donations? :) Currently broke, boo-hoo, but as soon as I can I’d like to contribute.

Hi formed. Hang onto your money (or the space where your money should be) for the time being. There is something you can contribute to straight away though, and that is testing what we have so far. Which is:

  • the ability, using adi_menu, to create a section hierarchy which includes articles and dovetails the two together.
  • a demonstration drag & drop plugin, and jelle is working on one that will do a hierarchy as well.

The limitations at the moment are:

  • the ordering of sections & articles can only be done alphabetically
  • the drag & drop interface doesn’t interacte with the Textpattern database yet
  • I/we haven’t quite worked out how to marry the functionality of a custom sort which is set in an admin tab but specified by a plugin tag.

If you want to have a play, download adi_menu version 0.8.1 and use the test="1" attribute to switch on the enhanced articles functionality.

Cheers,

Adi

Offline

#39 2009-02-23 03:31:20

formed
Member
Registered: 2008-09-29
Posts: 13

Re: [request] Bounty: Ultimate Nav Menu Builder

Cool, thanks for the info.

I will set-up a local sandbox and play around :)

Offline

Board footer

Powered by FluxBB