Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-07-06 15:08:51

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: [plugin] [ORPHAN] ako_nav

It’s been updated again. Now we’re up to version 0.7.
And rather than try to explain it my self, I’ll just quote the email that I got requesting this new feature

When i build my list of links trough name=“1,2,3…” and use url=” #1, #2, #3 etc… “ i noticed that if you had more names than urls, those more names without url assigned are still linking to an url ( the root ? ). Would it be possible to avoid this: when names at the end of the name list don’t have a corresponding link at the end of the url list attached, not to link them to anything. Have <li> without the a href inside when a link is not specified at the end of the url list ?

Download
More Info

Last edited by akokskis (2005-10-09 22:55:23)


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#14 2005-07-06 15:28:23

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] ako_nav

i’m stil having problems with this highlighting the current menu item – might jut be me though, will try the update

Offline

#15 2005-07-06 15:32:35

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] ako_nav

Make sure you have css that targets the current item like so: a.current{background: yellow;}. If you are having problems with the plugin applying the current class well… that’s another story.

Offline

#16 2005-07-06 16:14:28

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: [plugin] [ORPHAN] ako_nav

Sekhu, I’m leaving town now for about a month, but when I get back, I’ll try to help you and figure out exactly what it is that’s going on with the plugin on your site and why it doesn’t seem to be working…


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#17 2005-07-25 16:57:27

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] ako_nav

Hi,
I havent tested this plug-in yet, but it seems to be very useful…
I will give it a try in few minutes..

meanwhile, I have a suggestion:

the header tag (h<span style=“font-style:oblique;”>n</span> by default), can be specified by the user?
I mean: if in next releases of this plugin, the header tag can be replaced by a tag selected by the user.

So, it wont be a header necessarily… it can be any HTML tag.

The idea behind is this:

before the navigation list, I add an invisible < p class=“invisible” > that says: “You are here” (here = section name).
I hide it with a “display:none” rule.

With CSS enabled, the currentc section is “graphically” pointed, by a rule in the stylesheet.

So, if CSS is disable, the visitor can read wich section they are navigating.

Well… there are more possibilites than the one I suggested.

I dont know if this makes sense, but I think this add-on can make this plugin even more flexible.
You can output something like this:

<code>&lt;div&gt;
&lt;p&gt;You are in: about&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=”/”&gt;home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=”/about”&gt;about&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=”/contact”&gt;contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</code>

PS: excuse my english

Last edited by maniqui (2005-07-25 17:01:01)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#18 2005-07-25 18:20:25

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] ako_nav

> tinyfly wrote:

> Make sure you have css that targets the current item like so: a.current{background: yellow;}. If you are having problems with the plugin applying the current class well… that’s another story.

Using the class/css value I can create the current – it’s just using the pluign it sometimes appears, but 90% disappears and doesn’t highlight. So I an have an li listed as current and add a css value to it, no worries there, just making it change dynamically is posing a problem

Offline

#19 2005-08-17 05:24:41

andjules
Member
From: toronto
Registered: 2004-10-20
Posts: 44

Re: [plugin] [ORPHAN] ako_nav

from the features:

class=“active” is automatically added to the current page’s li

actually, it adds class=“active” to the current <code><a></code>

which is currently a drag for me – I’m applying the green marinee theme and the bullet images are in the <code><li></code> CSS (I’d like to mod it so there is a special bullet for the active menu item)

how about curclass boolean (0=a, 1=li)?
the other advantage, is that if you go for the curlink=0 option (don’t link the current section), you could still get special styling

Last edited by andjules (2005-08-17 05:26:49)

Offline

#20 2005-08-17 05:46:38

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: [plugin] [ORPHAN] ako_nav

Give me about a week, when I should have some more time (I’m about to move into school), and then I should be able to pull through on this for ya.
I’ll update ya when it’s done. (Or sooner, if the need presents its self.)


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#21 2005-08-17 05:59:11

andjules
Member
From: toronto
Registered: 2004-10-20
Posts: 44

Re: [plugin] [ORPHAN] ako_nav

that’d be great (when you have time). thanks for taking the interest. and thanks for a great plugin.

Offline

#22 2005-09-06 18:44:56

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: [plugin] [ORPHAN] ako_nav

Howdy all, just wanted to stop by and announce the newest release of ako_nav, now at v.0.8. The latest change was the feature request by andjules, basically allowing the <code>class=“active”</code> to be added to either the <code>a</code> or the <code>li</code> tag.

The option for this is classtag. If it is set to 0, then the <code>class=“active”</code> is added to the <code>a</code> tag. If it is set to 1, then the <code>class=“active”</code> is added to the <code>li</code> tag. By defualt, <code>class=“active”</code> is added to the <code>a</code> tag (0).

Download
More Info

As always, let me know of any issues / problems / feature requests… I’m often more than happy to oblige.

And lastly, sorry for this taking so long. Been awful busy this entire summer, and well… yeah, it happens.

Last edited by akokskis (2005-10-09 22:55:48)


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#23 2005-09-06 18:49:42

andjules
Member
From: toronto
Registered: 2004-10-20
Posts: 44

Re: [plugin] [ORPHAN] ako_nav

sweet – thanks!

Offline

#24 2005-09-06 18:55:45

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: [plugin] [ORPHAN] ako_nav

Not a problem at all. ;)


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

Board footer

Powered by FluxBB