Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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)
Offline
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><li><a href=”/”>home</a></li></code>
and also
<code><li><a href=”../”>home</a></li></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><li><a href=”../site/”>home</a></li></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 :- 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.
- 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. - 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)
Offline
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)
Offline
Re: [plugin] [ORPHAN] ako_nav
Hi there maniqui. I just wanted to say that I swear I haven’t forgotten all about this — I’ve just been rather busy as of late.
But, when I get some time, I’ll definately look into some of the stuff you mentioned.
And a quick though: yes, I do use my own plugin on my site We’re All Afraid… . I simply use an oldver version, as I really have no need to update it on that site.
Offline
#50 2005-12-23 03:27:09
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: [plugin] [ORPHAN] ako_nav
Firstly – thanks for the plugin – it is very useful.
Here is my feature request: I would find it very useful to give a class to the First Child and Last Child in a list. This opens a bit of a can of worms with your plugin already asigning the class ‘active’. Hence in order to achieve this, you’d need to assign the following when relevant:
- firstchild-active
- firstchild
- lastchild-active
- lastchild
For those of you wondering how this could be used: the simplest example is a list with dividers in-between but not at the end eg:
HOME | ABOUT | ARCHIVE | CONTACT
SH
Offline
Re: [plugin] [ORPHAN] ako_nav
Hey there, those features shouldn’t be too hard to integrate. As soon as I get some time, I’ll roll out a new version with the first child / last child support as well as a feature to make the class=“active” be something other than active. This might not be for a few weeks as I’m kind of busy at the moment, but I promise that once I can do it I will.
Offline
#52 2006-01-04 23:45:13
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] ako_nav
this is not particularly important…
but you can’t have a comma within a navigation item e.g. “Your Team, Your Say” …
perhaps the ‘title’ strings could be enclosed in quotation marks or similar?
Offline
Re: [plugin] [ORPHAN] ako_nav
This plugin is wonderful and save a lot of time. Latest version is fully customizable, thank you for that!
I just want to let you know some thing I’d find useful:
1. I agree with Vitruvius requests: it could be useful to have a specific class for first and last item in the list. It’s not my need now, but I remember a site on whick I worked, it would have needed this.
2. It would be great if your plugin could be aware if we’re in a section home or in an individual article page. In a section home, with currlink=0 we should not have the link, but in the individual article we should! From individual article we can go to the section home!
I hope it’s clear what I mean. At the moment I go thru this by using txp conditionals for serving 2 different ako_nav settings if we’re in articlelist or individual article. It works fine, so it’s not really that necessary. But it would be nice a plugin that can manage that issue by itself.
Anyway, my favorite plugin for navigation: thanks! :)
Z-
Offline
#54 2006-04-09 16:33:03
- yeah
- Member
- Registered: 2006-04-08
- Posts: 15
Re: [plugin] [ORPHAN] ako_nav
hi,
I had to give up using rdt_dynamenus, because it didn’t add the class=”active” to the active section, so i installed ako_nav.
But if i install it and put it on, my apache crashes. i didn’t even use it. i just put it on and opend the frontend. the cpu usage of my server goes on 99% and stays there.
thanks for any help.
Last edited by yeah (2006-04-09 16:33:23)
Offline
Re: [plugin] [ORPHAN] ako_nav
@yeah: What other plugins are you using? I’ve never heard of someone having this issue, and quite frankly, I don’t see how that’d be possible.
Offline
#56 2006-04-09 16:49:28
- yeah
- Member
- Registered: 2006-04-08
- Posts: 15
Re: [plugin] [ORPHAN] ako_nav
i have others installed, but only this is active.
rdt_dynamenus
mdp_sectionmenu
ako_nav
Offline
Re: [plugin] [ORPHAN] ako_nav
You are using the latest version of the plugin, v.9.1, right?
Uhm, other than that, I don’t really know what to tell you…
Offline
#58 2006-04-09 16:55:03
- yeah
- Member
- Registered: 2006-04-08
- Posts: 15
Re: [plugin] [ORPHAN] ako_nav
i can imagine, this is really stupid.
this is what i have:
ako_nav 0.9.1
Version Textpattern: 4.0.3 (r1188)
last_update: 2006-03-28 11:01:53/2005-12-26 17:49:56
Absoluter Pfad der Seite: C:/server/xampp/htdocs (C:\server\xampp\htdocs)
$path_to_site: C:\server\xampp\htdocs\textpattern
Pfad Textpattern: C:\server\xampp\htdocs\textpattern\textpattern
Schema der URLs: messy
upload_tmp_dir: C:\server\xampp\tmp
Temporäres Verzeichnis: C:\server\xampp\htdocs\textpattern\textpattern\tmp
PHP-Version: 5.1.1
server_time: 2006-04-09 18:53:42
MySQL: 5.0.18-nt
Regionale Einstellungen: German_Germany.1252
Server: Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1
Apache-Version: Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1
php_sapi_mode: apache2handler
os_version: Windows NT 5.1
Last edited by yeah (2006-04-09 16:55:38)
Offline
Re: [plugin] [ORPHAN] ako_nav
Well, my only guess is that it might be something with PHP 5.1.1.
If I get a chance today, I’ll load that up on my computer and give it a whirl. Got some stuff to take care of at the moment, so it won’t be for a few hours at least, but I’ll try to get to it today.
Offline
#60 2006-04-09 16:59:42
- yeah
- Member
- Registered: 2006-04-08
- Posts: 15
Re: [plugin] [ORPHAN] ako_nav
thank you. would be very nice.
Offline