Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2010-02-05 01:41:47

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: adi_cat_menu – Category & article menu

JimJoe wrote:

This works… but it breaks each category name at the end of a word.

JimJoe, I’m pretty sure stw_category tree doesn’t enter <br>s in category names, so I think it’ll have to do with class names.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#62 2010-02-05 02:29:16

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_cat_menu – Category & article menu

JimJoe wrote:

Looking forward to your changes Adi.

Hi Jim, contact me via email – I’ve got a possible alternative solution.

Offline

#63 2010-02-05 12:10:07

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: adi_cat_menu – Category & article menu

uli wrote:

JimJoe wrote:

This works… but it breaks each category name at the end of a word.

JimJoe, I’m pretty sure stw_category tree doesn’t enter <br>s in category names, so I think it’ll have to do with class names.

Well, it seems any category listing, any plugin, breaks at the blank between words.

So I changed some category titles to have underscores connecting each word and those don’t break.

I presently have the listing on my archive pages. I have added the plugin to my front page.

Offline

#64 2010-02-05 12:11:25

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: adi_cat_menu – Category & article menu

gomedia wrote:

JimJoe wrote:

Looking forward to your changes Adi.

Hi Jim, contact me via email – I’ve got a possible alternative solution.

I got your email and replied.

Offline

#65 2010-02-05 15:11:23

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: adi_cat_menu – Category & article menu

JimJoe wrote:

Well, it seems any category listing, any plugin, breaks at the blank between words.

That’s just your CSS, has nothing to do with plugins or tags used…

Offline

#66 2010-02-05 19:15:57

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: adi_cat_menu – Category & article menu

What do I change, and which .css file is it in ?

Offline

#67 2010-02-05 20:48:38

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: adi_cat_menu – Category & article menu

JimJoe wrote:

which .css file is it in ?

Click around a little in your txp admin: Presentation > Style.

What do I change

Can you post a link?

BTW we’re pirating a plugin thread for a non TXP issue. You should open a new topic in Assistance > Presentation.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#68 2010-02-05 20:49:27

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: adi_cat_menu – Category & article menu

You can edit the CSS in Presentation > Style. With such long category titles it will hardly be possible to always keep them on one line, but you can change a lot by increasing the width of #container and #sidebar-2. Then experiment with margin and padding for #sidebar-2 ul, #sidebar-2 ul li, #sidebar-2 ul li ul.

If you need help with the styling, post in the Presentation forum :)

Edit: ah Uli, you were faster again ;)

Last edited by els (2010-02-05 20:50:16)

Offline

#69 2010-03-10 01:28:58

kbarlow
New Member
Registered: 2010-03-10
Posts: 2

Re: adi_cat_menu – Category & article menu

Hello,

I am trying to figure out how to get the category to have the active class applied as well as the article.

  1. Category A (want active class applied to category that holds the active article)
    • Article A1
    • Article A2 (active article – active class applied)
    • Article A3
  1. Category B
    • Article B1
    • Article B2
    • Article B3

Any help is greatly appreciated, thank you!

Offline

#70 2010-03-10 08:47:26

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_cat_menu – Category & article menu

kbarlow wrote:

I am trying to figure out how to get the category to have the active class applied as well as the article.

It should do this by default … I hope! Oops

Last edited by gomedia (2010-03-18 10:03:37)

Offline

#71 2010-03-11 00:39:12

kbarlow
New Member
Registered: 2010-03-10
Posts: 2

Re: adi_cat_menu – Category & article menu

Oh! Shoot, I wonder what I’m doing wrong…

This is the tag I’m using:
<txp:adi_cat_menu parent=“Projects” this_section=“yes” active_only=“yes” />

The form: (adi_cat_menu_articles)
<li<txp:adi_cat_menu_if> class=“active_class”</txp:adi_cat_menu_if><txp:rvm_if_this_article> class=“active_class”</txp:rvm_if_this_article>>
<txp:permlink><txp:title/></txp:permlink>
</li>

Thoughts? Thank you!

Offline

#72 2010-03-18 10:00:50

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_cat_menu – Category & article menu

kbarlow wrote:

Oh! Shoot, I wonder what I’m doing wrong…

Just for the record, the short answer is nothing. I’ve had some off-forum conversations with kbarlow & it turned out that adi_cat_menu (& my understanding of it) was a little lacking. Basically, the active class was not being applied to the category <li> when in individual article display mode.

This has been fixed up now and version 0.5 is available for download. The new version also includes some older enhancements previously only available in beta releases:

  • new attribute: ‘list_empty_cats’ (for floodfish)
  • new attributes ‘list_id’ & ‘list_id_prefix’ (for floodfish)
  • new attributes: ‘wraptag’, ‘wraptag_id’, ‘wraptag_class’
  • new attribute: ‘active_parent’ (for kbarlow)

I haven’t made the new active_class behaviour the default – not wanting to cause any nasty surprises – so active_parent="1" is required to switch it on.

Usual terms & conditions apply – if I’ve broken something, apologies in advance.

Offline

Board footer

Powered by FluxBB