Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2008-10-24 12:09:08

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

Re: adi_cat_menu – Category & article menu

Logoleptic wrote:

I found myself in a situation where I needed to exclude a category from the navigation list generated by this plugin.

Thanks Adam. The ‘exclude’ attribute does deserve to be restored to its rightful place. I’ll look into it for the next version.

Offline

#12 2008-10-24 15:57:56

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: adi_cat_menu – Category & article menu

Thanks, Adi.

Offline

#13 2008-11-04 14:41:13

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

Re: adi_cat_menu – Category & article menu

Gomedia, Logoleptic,

I see your post where you want to limit output to a specific section (or current section).
I need to limit the list to categories (and categories articles) who belongs to a specific (or active) section.
I try this :
<txp:adi_cat_menu this_section=“1” />
or
<txp:adi_cat_menu section=“nameofsection” />
without success : the plugin list all the categories/articles.
Actually I have 10 sections. 2 sections have categories. I need to display only the categories who belongs to this sections.
Possible with this plugin ?

Offline

#14 2008-11-04 21:15:38

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

Re: adi_cat_menu – Category & article menu

adi_cat_menu was written to create a menu based on specified categories. You can restrict the list of categories using parent="category name", otherwise all will be listed. Add the required categories to a parent if they don’t belong to one already.

If you want a menu based more on sections then adi_menu may be suitable (although there’s no category attribute … yet!).

I’m not sure about a direct relationship between categories & sections. Articles are associated with categories, and articles are associated with sections. So the starting point is either categories or sections.

Send me an example of what you want to achieve if I’ve misunderstood your requirement.

Offline

#15 2008-11-05 10:15:22

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

Re: adi_cat_menu – Category & article menu

Gomedia, thanks for the answer.
Do you know cbs_category_list ?

Description (from the help) : This simple plugin is basically equivalent to category_list, excepted that it is section-sensitive and only lists article categories.
Categories are displayed using their title and optionally their article count for the selected section and sorted alphabetically by title.
If no article is found in the section for a category, this category will not be shown.

This plugin give me the list of categories who belongs to a section … It would be fine if your plugin give a menu like this :
- for a particular section (or the active section), list the categories who belongs to articles attached to the section, then the articles for this category.

Offline

#16 2008-11-05 10:55:35

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

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
From: Virton (BE)
Registered: 2004-10-01
Posts: 746
Website

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,220
Website

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

#19 2009-02-12 09:42:03

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

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,220
Website

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

Board footer

Powered by FluxBB