Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2009-02-20 12:16:18

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

Re: adi_cat_menu – Category & article menu

version 0.3 released.

In brief:

  • I’ve brought the <txp:category_list /> functionality of ‘section’, ‘this_section’, ‘exclude’, ‘categories’ attributes back into adi_cat_menu
  • introduced a new section-sensitive functionality (in the style of cbs_category_list)

Have a play & let me know what you think.

Offline

#22 2009-02-20 15:44:42

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 746
Website

Re: adi_cat_menu – Category & article menu

gomedia,

thanks for the new release ! :-)
I will try as soon as possible !

Offline

#23 2009-02-20 16:08:00

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: adi_cat_menu – Category & article menu

That’s great, Adi! I’m gonna try now!

Offline

#24 2009-02-23 17:17:35

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: adi_cat_menu – Category & article menu

Hi,

I really like this plug-in but have a quick question, I am using Category hierarchy (parent/child) and was hoping it would show the articles

  • Parent-Cat 1
    • Child Cat 1
      • Article 1
      • Article 2
    • Child Cat 2
      • Article 1
      • Article 2
  • Parent-Cat 2
  • etc…

using <txp:adi_cat_menu sort=“parent” />

shows it in a different sort order.

Last edited by Exiladler (2009-02-23 17:21:51)

Offline

#25 2009-02-23 20:39:28

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

Re: adi_cat_menu – Category & article menu

Exiladler wrote:

using <txp:adi_cat_menu sort=“parent” /> shows it in a different sort order.

Hi Exiladler. It’s a bit misleading but sort="parent" means “sort according to the category’s parent’s name” not “sort the parents”.

Besides, forgetting about the sort order for the moment, you’re probably seeing something like:

  • Parent-Cat 3
  • Child Cat 1
    • Article 1
    • Article 2
  • Child Cat 3
    • Article 1
    • Article 2
  • Parent-Cat 2
  • Child Cat 2
    • Article 1
    • Article 2
  • Parent-Cat 1
  • etc…

Is that the problem?

Offline

#26 2009-03-02 17:10:58

Exiladler
Member
From: somewhere in Europe
Registered: 2006-08-20
Posts: 56
Website

Re: adi_cat_menu – Category & article menu

Hi,

Well at the moment I have reduced it and only use parent=childcat1

I move it up, it shows no hierarchy, it just lists them all on one level

I use it in a form :

<txp:article_custom status=“sticky” form=“single” />

<li><txp:adi_cat_menu sort=“parent” parent=“ChildCat1” menu_id=“menubar” sort=“name” />
</li>

this shows me article 1, article 2 and article 3 (can I custom sort them ?)

When I change it “ParentCat”, I get all article in the list, not a tiered list, any clues, have a look at the live site URL: http://www.freshstartliving.com/opportunities/

Offline

#27 2009-03-02 21:08:35

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

Re: adi_cat_menu – Category & article menu

Exiladler wrote:

Well at the moment I have reduced it and only use parent=childcat1 I move it up, it shows no hierarchy, it just lists them all on one level.

Not quite sure what you mean. Using our Parent-Cat/Child-Cat example above, what happens?

I use it in a form :

<txp:article_custom status=“sticky” form=“single” />

<li><txp:adi_cat_menu sort=“parent” parent=“ChildCat1” menu_id=“menubar” sort=“name” />
</li>

adi_cat_menu will generate the <ul> & <li>, so you don’t need to add them yourself. Also, you’ve got sort="parent" AND sort="name".

this shows me article 1, article 2 and article 3 (can I custom sort them ?)

To sort the articles you need to pass a sort attribute to the <txp:article_custom/> tag that adi_cat_menu uses internally, e.g. article_attr='sort="name"'. Have a look at the plugin help for more details.

When I change it “ParentCat”, I get all article in the list, not a tiered list, any clues, have a look at the live site URL: http://www.freshstartliving.com/opportunities/

I’ve had a look but again I’m not quite sure what you mean. Using our Parent-Cat/Child-Cat example above, what does it look like?

Offline

#28 2009-03-03 08:36:30

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: adi_cat_menu – Category & article menu

Thanks, Adi! It works great!!

Offline

#29 2009-05-09 00:31:12

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: adi_cat_menu – Category & article menu

I am using this with rss_unlimited_categories 0.7.4p4 and getting a list of the categories, but not the articles listed under them. Any ideas what might be wrong?

Offline

#30 2009-05-10 08:15:53

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

Re: adi_cat_menu – Category & article menu

floodfish wrote:

I am using this with rss_unlimited_categories 0.7.4p4 and getting a list of the categories, but not the articles listed under them. Any ideas what might be wrong?

Have you set up the articles form correctly? From the plugin help:

To use with rss_unlimited_categories, create a new form of type “article”, called adi_cat_menu_rss_articles, and fill it with:
<li>
<txp:rss_sct_permlink><txp:title/></txp:rss_sct_permlink>
</li>

Offline

Board footer

Powered by FluxBB