Textpattern CMS support forum

You are not logged in. Register | Login | Help

#81 2010-06-18 06:17:35

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: adi_cat_menu – Category & article menu

hello guys!
How i can do this one:

• Milk • Milk
• Milk • Milk
• Milk • Milk
• Milk • Milk

how to make that list would automatically goes to the second column after the first column, for example, collected a 5 lines?


<txp:txp_me />

Offline

#82 2010-06-21 01:19:29

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

Re: adi_cat_menu – Category & article menu

Katalonian wrote:

hello guys! How i can do this one:

The question might be better asked in the Presentation Forum but if you want:

Milk1 Milk2
Milk3 Milk4
Milk5 Milk6
Milk7 Milk8

Then set the width of the <ul>, set the width of the <li> to half the <ul> width, & float:left the <li>.

If you want:

Milk1 Milk5
Milk2 Milk6
Milk3 Milk7
Milk4 Milk8

Then I’m not sure. Can’t think of a CSS solution off the top of my head. You might have to generate the menu in 2 halves & then position them next to each other.

Offline

#83 2010-07-05 04:09:00

Bijay
Member
Registered: 2010-07-02
Posts: 17

Re: adi_cat_menu – Category & article menu

hi gomedia. i have used “adi_cat_menu” plugin to show the category along with the article related to that category. it works absolutely fine but i am unable to link the article related to those category. it would be great help if you could help me.

Offline

#84 2010-07-06 12:33:42

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

Re: adi_cat_menu – Category & article menu

Just for the record … spoke with Bijay off-forum & looked like it might be a page/article form problem, rather than something wrong with adi_cat_menu.

Offline

#85 2010-08-05 08:52:21

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: adi_cat_menu – Category & article menu

This has come up a couple of times in the thread, but i’m looking to do this:

—Category1
—Subcategory1
—-Subsubcategory1
——Article1
——Article2
—-Subsubcategory2
——Article3
——Article4
—Subategory2

…etc

but subsubcategories are not nested properly, as pointed out here

is there any solution?


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#86 2010-09-07 06:13:28

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

Re: adi_cat_menu – Category & article menu

kemie wrote:

is there any solution?

For the record, here’s a non-plugin solution on TXP Tips

Offline

#87 2011-01-11 20:01:54

aeris
Member
Registered: 2009-03-01
Posts: 12

Re: adi_cat_menu – Category & article menu

I just tried cbs_category_list (trying to switch from pure category-based navigation to section-sensitive category lists), and while it works perfect, it doesn’t have any kind of sorting or exclusion options.

This was the only other plugin that I found, but <txp:adi_cat_menu section_sensitive="1" /> does nothing, <txp:adi_cat_menu this_section="1" /> and <txp:adi_cat_menu section="<txp:section /> /> list all categories regardless of section.

I have only one page template and one listform for showing articles, with messy links.

Last edited by aeris (2011-01-11 20:24:19)

Offline

#88 2015-06-15 03:00:28

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

Re: adi_cat_menu – Category & article menu

I wonder if anyone uses this any more? Anyway, version 0.6 available for download – nothing earth shattering, just TXP 4.6 tag registration.

(and apologies to aeris for missing the 4-year-old query above).

Offline

#89 2018-08-23 16:09:15

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

Re: adi_cat_menu – Category & article menu

Hi Adi,

I play with this plugin (again !) and I need to restrict output to category1 or 2.

I see in your code this attribute : restrict

'restrict' => '', // category1 or category2

But no effect because restrict is not linked in the function code …

Easy to modify ?

Offline

#90 2018-08-23 17:33:01

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

Re: adi_cat_menu – Category & article menu

Work with this mod line 187

      $restrictstr="";
        if ($restrict == "") {$restrictstr = " WHERE (c.name = t.Category1 OR c.name = t.Category2);"};
        if ($restrict == "category1") {$restrictstr = " WHERE (c.name = t.Category1);"};
        if ($restrict == "category2") {$restrictstr = " WHERE (c.name = t.Category2);"};
		$rs = startRows(
			'SELECT c.name, c.title'.$showcount.' FROM `'.PFX.'txp_category` AS c, `'.PFX.'textpattern` AS t'.$table
			.$restrictstr
                      //.' WHERE (c.name = t.Category1 OR c.name = t.Category2)'

			.$include_list
			.$exclude_list
			.' AND c.type = \'article\' AND t.Section = '.$sqlsection.$parent.$posted
			.' AND t.Status = '.$sticky.' GROUP BY c.name'.$sort
			,$debug);

Offline

Board footer

Powered by FluxBB