Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2005-10-03 08:00:56

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] ako_nav

Thanks. In your own time, school comes first.

Last edited by lee (2005-10-03 08:01:11)

Offline

#38 2005-10-03 14:02:52

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

Re: [plugin] [ORPHAN] ako_nav

Lee, I was contemplating using br as a wraptag earlier, and the following thought occured to me:
If br is being used as a wraptag, then where does the <code>class=“active”</code> get added? To an optional spanwrap (wraping the text in <code>span</code>‘s), or does it get added at all? What are you looking for with the <code>wraptag=“br”</code>? How do you envision it?


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

— vc3 —

Offline

#39 2005-10-09 23:07:47

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

Re: [plugin] [ORPHAN] ako_nav

Howdy all.

Just wanted to let you all know that I’ve released v0.9 of ako_nav, dubbed the “super-mega-cool instead-of-comp-sci-paper release.”
This one has a whole slew of new attributes added to it. The quick rundown: aids, aclass, liids, liclass, divon, spanwrap, and spanclass. (Can you figure out what they all do?) If you want more info, check out the help file or the info link, below.

More info

Download ako_nav v0.9

Thanks for the continued support, and comments / suggestions / monies are, as always, more than welcome.

Further notes not so directly related to this release:
Lee, I’m still wondering at exactly what you meant with your previous post (see my previos post right above for a further explanation).
creativesplash, I’m still working on the messy url situation. Hopefully that will be resolved soon…

Now if you all will excuse me, I’ve got a comp sci paper to deal with… (If you have no idea what I’m talking about, you didn’t read the entire post. That’s just a pitty now, isn’t it?)

Last edited by akokskis (2005-10-09 23:08:35)


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

— vc3 —

Offline

#40 2005-10-09 23:23:55

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

Re: [plugin] [ORPHAN] ako_nav

we are the greatful beneficiaries of your paper-writing procrastination.

Offline

#41 2005-10-10 16:33:16

marco
Member
From: Montreal
Registered: 2004-02-24
Posts: 62

Re: [plugin] [ORPHAN] ako_nav

Very useful plugin. However, the class=“active” is not generated. I am using it with TP 4.0.1

<code>
<txp:ako_nav divid=“navcontainer” classtag=“0” headon=“0” name=“Home,About,Contact” url=”/,/about,/contact” />
</code>

This is what it generates:

<code>
<div id=“navcontainer”>
<ul>
<li><a href=“http://myhost/textpattern/” accesskey=“1”>Home</a></li>
<li><a href=“http://myhost/textpattern/about” accesskey=“2”>About</a></li>
<li><a href=“http://myhost/textpattern/contact” accesskey=“3”>Contact</a></li>
</ul>
</div>
</code>

Last edited by marco (2005-10-10 16:47:39)

Offline

#42 2005-10-10 16:54:09

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

Re: [plugin] [ORPHAN] ako_nav

Ok, for my sanity, would you mind loading up a debuging version of my plugin and then emailing me (user: akokskis; domain: gmail.com; figure it out from there (I hate spam)) the output?

A warning about the debug version: it will spit out a lot of gibberish code that will probably not mean a whole lot. I only need the stuff that it spits out, so as soon as you run it once, you can go back to the clean version that won’t spit out any gibberish.

Thanks for your help.

Edit: link removed as no longer needed.

Last edited by akokskis (2005-11-06 23:06:12)


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

— vc3 —

Offline

#43 2005-10-10 17:43:49

marco
Member
From: Montreal
Registered: 2004-02-24
Posts: 62

Re: [plugin] [ORPHAN] ako_nav

I just sent you the debug info using the forum e-mail. Thanks for looking at it. I see from the thread that other people also had problems with the active link.

Offline

#44 2005-10-10 20:34:48

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

Re: [plugin] [ORPHAN] ako_nav

This v0.9.1 release is the fix for the previous release, in which the <code>class=“active”</code> was not added unless the aclass attribute was set to something. This shall be dubbed the “ok so the last one wasn’t so super-mega-cool but this one is” release.

More info

Download ako_nav v0.9.1

Thanks for the continued support, and comments / suggestions / monies are, as always, more than welcome.

Last edited by akokskis (2005-10-10 20:56:05)


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

— vc3 —

Offline

#45 2005-10-10 20:43:04

marco
Member
From: Montreal
Registered: 2004-02-24
Posts: 62

Re: [plugin] [ORPHAN] ako_nav

I just tested it; the class “active” is now added, as expected, to the a link when classtag=“0” i used.
Many thanks for the fix.

Offline

#46 2005-10-17 17:34:56

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

Re: [plugin] [ORPHAN] ako_nav

Again, this is a nice plug-in.

I have discovered that you can generate a nav list that can also include section links to sections not managed by TXP.
I mean, this plug-in works aside the sections added in TXP. It is possible to generate any section list nav, in any order… independant of your sections managed with TXP.
I think this is what makes this plug-in a very powerful one: generate the section nav list you want and in the order you need it and with the links that you need.
Maybe for most of you, that seems obviously, but I figured it out today.

Finally, I would like to suggest a feature, but I’m afraid maybe it’s out of the scope of this plugin and maybe breaks the concept of a section list nav:
the feature to generate links to absolute URLs, I mean, not to sections of the site, but to a website outside the site.
In other words, it would be nice that the “url” tag of the ako_nav plugin can have links that begins with “http://”

I’m currently developing a site where I need a link (“Our magazine”) in the section nav bar that points to another website.

Thanks <small>and excuse my english</small>!

Last edited by maniqui (2005-10-17 17:42:01)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#47 2005-10-18 01:20:27

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

Re: [plugin] [ORPHAN] ako_nav

ako_nav plugin saved me again.

I was having <strong>lot of troubles</strong> when trying to manually hardcode a section nav in TXP.
The site is installed in a subfolder in the root directory (http://www.example.com/site/).

First, I wasn able to hardcode a link to the homepage (a link that pointed to http://www.example.com/site/) :|

I tried the following:
<pre>
<code>&lt;li&gt;&lt;a href=”/”&gt;home&lt;/a&gt;&lt;/li&gt;</code>
and also
<code>&lt;li&gt;&lt;a href=”../”&gt;home&lt;/a&gt;&lt;/li&gt;</code>
</pre>

But none of above worked for me: the link generated always pointed to http://www.example.com/
First question: Why? Can anyone explain me if I have any error concept in relative paths?

Of course, I have double checked my URL site in <i>admin</i> -> <i>preferences</i>, and of course it was “www.example.com/site/”
So, I cannot find any reason for my link-to-home to point to the site root (www.example.com).

Then, when I tried the following:
<pre>
<code>&lt;li&gt;&lt;a href=”../site/”&gt;home&lt;/a&gt;&lt;/li&gt;</code>
Note the /site/ in href
</pre>

That worked: the link pointed to http://www.example.com/site/. But, I didnt like that <strong>workaround</strong>. I think it is inefficient, because if you move the site location, you will have to correct the link.

Here is when <strong>ako_nav</strong> come to <strong>help me</strong> (and did it).

But I still would appreciate some answers to the following questions, some related to the magic behind ako_nav :
  1. first a general question: <strong> how do I manually hardcode a link to the homepage if the installation is in a subfolder?</strong> I mean, I still want to create a link to homepage in a heading tag, but I cant figure it out… If I use one of the lines that I tried first (see above) I get a link to site root. And my second workaround (../site/) isnt a clean approach.
  2. I see that <strong>ako_nav uses absolut URLs</strong> in the generated links. how does ako_nav generate the href value? I cant figure it out, because I also tried ako_nav after leaving empty the site URL in <i>admin – preferences</i> and ako_nav did work too!! I mean, it generated the absolute URLs again, but the URL site value in the preferences was empty. But I still think that ako_nav uses the URL site in the preferences. Why? Because in the preferences I replaced “www.example.com/site” with “example.com/site/” (removed the “www”) and all the links generated by ako_nav were “http://example.com/site/”, without the “www”.
    I’m asking this just for curiosity. I dont need a technical explanation, but just to know why it uses absolute URLs.
  3. Regarding my previous question, I saw at <a href=“http://www.wereallafraid.com/”>WeAreAllAfraid</a> that the navigation has relative URLs. Do you use your plug-in to generate your nav, akoksis?

Well, I would appreciate if someone can point me the right direction about my first question (how to generate a relative link to my homepage (subfolder) that doesnt “jump over” the subfolder to the root?).

Thanks in advance <small>and excuse my poor english</small>

Last edited by maniqui (2005-10-18 01:25:31)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#48 2005-10-18 02:51:11

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

Re: [plugin] [ORPHAN] ako_nav

Mmmm.
I will feel very dumb if somebody answer my first question and tells me that I just need to use a <code>< a href=”./” ></code>

I found that solution: is that correct?
I hope that.

If not, I’m still awaiting for your answer! :)
thanks.

Edit: Google is my friend and I should search for good articles like <a href=“http://webtips.dan.info/subdir.html#LinkHome”>this one (nice explanation about links!)</a> and <a href=“http://webtips.dan.info/url.html”>this one too</a> before asking…

Aparently, the correct way to link the homepage is <code>< a href=”./” ></code>.
And there are also recommendations like using closing slash / in URLs.
But if you do that in ako_nav, you dont get the <code>class=“active”</code> applied to the current section link.

Last edited by maniqui (2005-10-18 03:26:22)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB