Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2006-10-15 16:40:57
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: cbs_navigation_menu
Hi Christophe, thank you, it was very kind of you to do this for me. When someone you don’t know spends time helping you, like you have for me, it makes the world a better place.
Offline
Re: cbs_navigation_menu
Hi cbeyls.
I’m giving this a try, in replacement of ako_nav and it works fine, as expected.
It has less attributes than ako_nav (like all the wrap div and heading stuff), but all those things can be added manually (as real HTML) directly wrapping your plug-in tag.
Nice one.
Thanks.
Offline
Re: cbs_navigation_menu
Hi.
I have found a little problem that I didn’t have with ako_nav.
I cant point directly to articles URLs using cbs_navigation_menu.
<txp:cbs_navigation_menu titles="¿Cómo comprar?,Acerca de Cluster,Contactanos,Blog" sections="acerca-de/como-comprar-nuestros-productos,acerca-de,contacto,blog" wraptag="ul" break="li" activeclass="active" />
Check the acerca-de/como-comprar-nuestros-productos
.
The link generated is: acerca-de%2Fcomo-comprar-nuestros-productos/
cbeyls, do you think this could be fixed?
Thanks in advance.
Offline
Re: cbs_navigation_menu
Can this plugin be used with your cbs_category_list plugin? For example, loop through the list of sections and the categories associated with the sections?
For example, I have something like this in a form, which lists the current sections in the order I wish, then checks for categories under the sections.
Just wondering if this can be done with your plugins (combined).
<code>
<ul class=“menublock”>
<li><a href=“http://site.com/”>home</a></li>
<li><a href=“http://site.com/about/”>about</a></li>
<txp:cbs_category_list parent=“about” wraptag=“ul” break=“li” class=”“ />
<li><a href=“http://site.com/training/”>training</a></li>
<txp:cbs_category_list parent=“training” wraptag=“ul” break=“li” class=”“ />
<li><a href=“http://site.com/news/”>news</a></li>
<txp:cbs_category_list parent=“news” wraptag=“ul” break=“li” class=“menublock” />
<li><a href=“http://site.com/faq/”>faq</a></li>
<txp:cbs_category_list parent=“faq” wraptag=“ul” break=“li” class=“menublock” />
<li><a href=“http://site.com/contact/”>contact</a></li>
</ul>
</code>
Offline
#29 2006-11-22 19:04:36
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: cbs_navigation_menu
Just want to confirm, that the plugin works fine, with what I want it to do, and to express my thanks to Christophe for his work, and listening to all the requests , and making it available to the community.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: cbs_navigation_menu
is it possible to just specify the two sections you want to come first on the list then the rest.
something like this:
<txp:section_list active_class=“activelist” break=“li” class=“navlist” default_title=“Financial Service” label=“Financial Services” exclude=“about, faqs, contact, advitorial” labeltag=“h3” wraptag=“ul” order=“pensions” sections=“pensions, protections(then all the rest without having to list them)” />
thanks
its a bad hen that wont scratch itself.
photogallery
Offline
#31 2008-09-13 23:37:30
- idoremus
- Member
- From: NW United States
- Registered: 2008-04-16
- Posts: 19
Re: cbs_navigation_menu
Christophe, Thank you for this plug-in. It works as described.
I now want to modify my main menu so that I have a “member” section and a “visitor” section all on the same menu bar using ign_password_protect to separate the two. Can I nest the <txp:ign_if_logged_in></txp:ign_if_logged_in>
tags within your tags:
<txp:cbs_navigation_menu sections="default,...,memberarea" titles="Home,...,<txp:ign_if_logged_in>Member's Area</txp:ign_if_logged_in>" break="li" activeclass="active" />
<txp:cbs_navigation_menu sections=",..." titles=",..." break="li" activeclass="active" />
Thanks in advance for your help,
Ian
Offline
#32 2009-01-03 13:05:44
- mavo
- New Member
- Registered: 2009-01-03
- Posts: 1
Re: cbs_navigation_menu
hi, thanks for plugin
i am just wondering is it possible to wrap span inside every a, it is crucial for because of rounded corners I use in my navigation menu
like
<ul class=“tab”>
<li><a href=”“ class=“active”><span>frontpage<span></a></li>
<li><a href=”“><span>seconde page<span></a></li>
<li><a href=”“><span>third page<span></a></li>
</ul>
Offline
#33 2009-01-26 10:12:27
- leomuradesign
- New Member
- Registered: 2009-01-07
- Posts: 3
Re: cbs_navigation_menu
Hello everyone,
I am using the plugin (a great one Christophe!) to display a list of categories related to a section and I am wondering if it’s possible to use the active class on full urls as it does on sections.
I know that ‘activeclass’ (by default) is only applicable on sections but not on full urls because they contain ‘:’ (http://…) ) on their text string therefore the active section is not display in that case.
Any ideas?
Thanks for you hlep.
Offline
Re: cbs_navigation_menu
ciao leo, rispondo in italiano che tanto capisci.. che intendi per attivarli nei full url’s. IN quale contesto?
Offline
#35 2009-01-27 06:32:46
- leomuradesign
- New Member
- Registered: 2009-01-07
- Posts: 3
Re: cbs_navigation_menu
MarcoK wrote:
ciao leo, rispondo in italiano che tanto capisci.. che intendi per attivarli nei full url’s. IN quale contesto?
Ciao Marco,
grazie per l’interessamento. Il contesto di cui parlo è quello nel quale se inserisci il nome della sezione, la ‘activeclass’ funziona mentre se al posto della sezione usi un URL tipo ‘http;//…’ che contiene appunto un simbolo come ‘:’ la activeclass’ non si attiva (come scritta peraltro scritta nel manuale del plugin).
Per chiarire la cosa ecco l’esempio:
<txp:cbs_navigation_menu sections=“sezionetaldeitali,http://mydomain.com/sezione1/http://mydomain.com/sezione2” titles=“sezionetaldeitali,sezione1,sezione2” activeclass=“active” class=“categories” break=“div” ids=“first,,,” />
dove ‘sezionetaldeitali’ è riconosciuta come sezione appunto e su essa quindi funziona ‘activeclass’ mentre gli URL non vengono riconosciuti come sezione e pertanto la active class non funziona.
La domanda quindi è questa, c’è modo di rendere gli URL’s alla stessa stregua delle sezioni?
Io credo di si, e probabilmente modificando il codice del plugin ma non saprei come però.
Grazie per adesso.
leo
Last edited by leomuradesign (2009-01-27 06:42:34)
Offline
Re: cbs_navigation_menu
IL plugin legge la variabile S presente in pretext e la confronta con quelle passate nell’array da cbs…
Tu gli passi un indirizzo, quindi nel plugin dovresti trovare il punto in cui fa il confronto ed aggiungergli il confronto con l’hu.
Ad un certo punto (linea 47 circa) lui fa il controllo di cui sopra:
if($sections[$i] == $s) {
Dovresti fargli esaminare anche if($sections[$i] $s || $section[$i] hu.$s) {
controlla tramite un print se hu.$s ha bisogno di una barra in messo o è giusto cosi.
Mi rimane comunque da capire perchè vuoi inserire l’http, visto che viene comunque già letto di base…
Offline