Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2008-11-05 10:55:35
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_cat_menu – Category & article menu
I think the ultimate answer might be “no”. adi_cat_menu bases its output on a given parent category.
adi_menu is the one that works with sections. It doesn’t currently take account of categories but it might not be a big deal for it to do so.
Do you want to specify a section and get something like:?
<ul>
<li>category1
<ul>
<li>Article 1a</li>
<li>Article 1b</li>
<li>Article 1c</li>
</ul>
</li>
<li>category2
<ul>
<li>Article 2a</li>
<li>Article 2b</li>
</ul>
</li>
</ul>
And what does adi_cat_menu do (or adi_menu might do) that cbs_category_list doesn’t?
Offline
#17 2008-11-07 09:07:00
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: adi_cat_menu – Category & article menu
Gomedia,
thanks to allow me to “dream” :-) !
Yes, structure like this would be fine, if (like cbs_category_list) :- plugin take care of “active” section or a “named” section
- categories listed are categories who belongs to articles assigned to that section (categories are listed if articles are published)
- ability to sort articles (with standard fields and stm_article_order particular sort field)
Such a plugin allow to create a CMS build on a particular use of the sections/categories.
It would be fine too if it allow to create the complete site structure (sections + categories) as nesteds linked lists or a one section structure.
Offline
#18 2008-11-07 13:21:57
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_cat_menu – Category & article menu
jpdupont wrote:
Yes, structure like this would be fine, if (like cbs_category_list) :
- plugin take care of “active” section or a “named” section
- categories listed are categories who belongs to articles assigned to that section (categories are listed if articles are published)
- ability to sort articles (with standard fields and stm_article_order particular sort field)
adi_menu probably takes care of active section & article sort (standard fields) currently anyway. The next time I do an update, I’ll see if it’s feasible to work in categories as well.
Offline
Re: adi_cat_menu – Category & article menu
Hi Adi,
Thanks for this plugin and especially for support of rss_unlimited_categories! It’s just what is missing from all the others
I’d like to add to jpdupont’s dream as well ))
I want to generate a menu only of categories (rss_uc) that only have articles in the current section, because currently all categories are listed regardless of section.
If you think this could be achieved with the current version of the plugin, could you give a clue how to achieve that?
Thanks!!
Offline
#20 2009-02-12 10:10:52
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_cat_menu – Category & article menu
Si wrote:
I want to generate a menu only of categories (rss_uc) that only have articles in the current section, because currently all categories are listed regardless of section.
Sounds like I need to reacquaint myself with this plugin, & give it some attention! Leave it with me.
Offline
#21 2009-02-20 12:16:18
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
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
- Registered: 2004-10-01
- Posts: 752
Re: adi_cat_menu – Category & article menu
gomedia,
thanks for the new release ! :-)
I will try as soon as possible !
Offline
Re: adi_cat_menu – Category & article menu
That’s great, Adi! I’m gonna try now!
Offline
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
- Child Cat 1
- 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,373
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
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,373
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
Re: adi_cat_menu – Category & article menu
Thanks, Adi! It works great!!
Offline
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,373
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