Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2008-01-25 16:25:09
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] glx_hl_current highlight current article
Yes it does. I’ve used it like this:
On the page: <txp:article_custom section="blah" form="article_title_menu" />
Article form ‘article_title_menu’:
<li>
<a<txp:glx_hl_current_article class="active" /> href="<txp:permlink />"><txp:title /></a>
</li>
Last edited by els (2008-01-25 16:25:56)
Offline
#26 2008-02-07 09:37:13
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [archived] glx_hl_current highlight current article
Hi – thanks for a great plugin. Can anyone help me with a related css problem?
Here you can see I have got the plugin working for the top four articles in that section. However, I need to apply styles to each list item it produces to get the colour effect in the original navigation panel below.
Any ideas, anyone?
My form and code are exactly as in Johan’s example.
Thanks in advance
Last edited by castanet (2008-11-06 12:34:43)
Offline
#27 2008-02-11 14:23:35
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [archived] glx_hl_current highlight current article
Well, I got it to do the job by calling each article individually on the template and then giving each one a separate form with the plugin and a class attached to the permlink. It works, but not ideal. Any further help would be welcome.
Offline
#28 2008-11-05 11:18:14
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: [archived] glx_hl_current highlight current article
All links to this excellent plugin and/or its creator appear to be dead. Any ideas where I can find it again?
Offline
Re: [archived] glx_hl_current highlight current article
Check out this post
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [archived] glx_hl_current highlight current article
hmmm, not working for me over here. i was wondering if anyone could look at my code?
<ul id="navlist" break="li" wraptag="ul">
<h2>
<li<txp:glx_hl_current_section section="contact" class="active" />><txp:section name="contact">Contact</txp:section></li>
<li<txp:glx_hl_current_section section="bio" class="active" />><txp:section name="bio">Bio</txp:section></li>
<li<txp:glx_hl_current_section section="blog" class="active" />><txp:section name="blog">Blog</txp:section></li>
</h2>
</ul>
i’ve tried a few different “class=” options. in my css i have a declaration for a:hover so i’d like to have this plugin inject the hover style into my navbar
#navlist li {
display: inline;
float: right;
font-family: helvetica, arial, sans-serif;
font-size:1.3em;
text-transform: lowercase;
margin-left:10px;
}
#navlist a:hover{
color:#627785;
text-decoration:underline;
}
Last edited by mrtunes (2008-12-13 19:10:03)
Offline
Re: [archived] glx_hl_current highlight current article
sorry i think i know what the problem is on my last post, i wasn’t injection an “active” style into my CSS
so i got the plugin working on a different site, but what’s happening is it’s working on one nav menu, and then on another one it isn’t. the code is almost identical. anyone ever had this problem?
Not working:
<div id='navbar'>
<div class='navi'>
<ul>
<li<txp:glx_hl_current_section section="News" />><a href="<txp:section name="News" url="1" />">News</a></li>
<li<txp:glx_hl_current_section section="Video" />><li><a href="<txp:section name="Video" url="1" />">Video</a></li>
<li<txp:glx_hl_current_section section="info" />><a href="<txp:section name="info" url="1" />">Info</a></li>
</ul>
</div>
</div>
working:
<div id="infonav">
<ul class='info'>
<li<txp:glx_hl_current_section section="info" />><a href="<txp:section name="info" url="1" />">About</a></h2></li>
<li<txp:glx_hl_current_section section="ski" />><a href="<txp:section name="ski" url="1" />">Snowboard/Ski</a></li>
<li<txp:glx_hl_current_section section="dates" />><a href="<txp:section name="dates" url="1" />">Dates/Prices</a></li>
<li<txp:glx_hl_current_section section="parents" />><a href="<txp:section name="parents" url="1" />">Parents</a></li>
</ul>
</div>
Offline
#32 2009-02-13 23:14:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] glx_hl_current highlight current article
Just a guess: the ‘not working’ code has section names with capitals.
Offline
Re: [archived] glx_hl_current highlight current article
Els wrote:
Just a guess: the ‘not working’ code has section names with capitals.
i just removed the capitals, and now it actually works on the “News” and “Info” section but not Video for some reason. which leads me to believe it was probably working on Info before I even posted this.
<li<txp:glx_hl_current_section section="news" />><a href="<txp:section name="news" url="1" />">News</a></li>
<li<txp:glx_hl_current_section section="video" />><li><a href="<txp:section name="video" url="1" />">Video</a></li>
<li<txp:glx_hl_current_section section="info" />><a href="<txp:section name="info" url="1" />">Info</a></li>
Last edited by mrtunes (2009-02-13 23:27:47)
Offline
#34 2009-02-13 23:45:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] glx_hl_current highlight current article
What is the url="1"
doing in your code? It’s not an existing attribute ;)
Edit: I am sleeping ;) This: <a href="<txp:section name="news" url="1" />">News</a>
wouldn’t work anyway as far as I can see… Besides, you don’t need the plugin:
<li<txp:if_section name="news"> class="current"</txp:if_section>><txp:section name="news" title="1" link="1" /></li>
or
<li<txp:if_section name="news"> class="current"</txp:if_section>><a href="<txp:site_url /><txp:section name="news" />/">News</a></li>
Last edited by els (2009-02-14 00:01:34)
Offline
Re: [archived] glx_hl_current highlight current article
interesting, i didn’t even need the plugin all along lol!
well i tried your first snippet using <txp:if_section>, and the exact same problem is happening where the video won’t go “current”. so it wasn’t the plugin’s fault. still unresolved. this one is slowly becoming a pain hah
Last edited by mrtunes (2009-02-14 19:21:30)
Offline
#36 2009-02-14 19:23:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] glx_hl_current highlight current article
Did you change the ‘video’ section name to lowercase as well in the tag as in the sections tab?
Offline