Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-18 13:31:38

spiros
Member
From: Athens
Registered: 2005-07-01
Posts: 29
Website

No dirifying in categories

I use MX4
http://www.translatum.gr/txp/

and when I click on a category
http://www.translatum.gr/txp/category/%CE%94%CE%BF%CE%BA%CE%B9%CE%BC%CE%AD%CF%82/

no dirification occurs (which works fine with individual articles)

Offline

#2 2005-09-18 14:01:22

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: No dirifying in categories

For that reason there is the difference between category title and category name. Use Name for what will be in the url, and title for what should be displayed on the page.

Offline

#3 2005-09-18 15:04:39

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: No dirifying in categories

That is cool. I had posted a feature request complaining about how the category names should be dirified. This works well. The category tag appears to display the wrong value however. It is showing the derified name, not the Title.

Last edited by ramanan (2005-09-18 15:21:41)

Offline

#4 2005-09-18 16:32:50

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: No dirifying in categories

Yes, that had to be this way to not break bc. however 4.0.1 introduced the attribute title=“y” which you can use to get the title.

Offline

#5 2005-09-18 16:51:11

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: No dirifying in categories

Perfect!

Offline

#6 2005-09-24 21:40:24

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: No dirifying in categories

> Sencer wrote:

> however 4.0.1 introduced the attribute title=“y” which you can use to get the title.

Neither <txp:s title="y" /> nor <txp:c title="y" /> work, but thankfully there are the upm_section_title and upm_category_title for that job.

Offline

#7 2005-09-25 00:08:46

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: No dirifying in categories

Neither <txp:s title="y" /> nor <txp:c title="y" /> work

txp:s and txp:c are simple shortcuts for $pretext values; they don’t support attributes, and never will.

txp:category1, txp:category2 and txp:section all support the ‘title’ attribute. It should be 0 or 1, not y or n.


Alex

Offline

#8 2005-09-25 01:31:49

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: No dirifying in categories

Above Sencer was referring to section, category1 and category2 for the y or n values. But they were confusing, so that was switched to 0 or 1. I updated the manual for these three tags a couple days ago when I discovered the change.

Offline

#9 2005-09-25 11:47:54

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: No dirifying in categories

Thanks both Sencer and Zem for letting us know that such a feature exists and how to use it. Nevertheless, my point is that you can’t use anything but the upm_*_title plugins for displaying the titles on section and category frontpages; that’s where I’d use <txp:s title="1" /> and <txp:c title="1" /> if I could.

Offline

#10 2005-09-26 05:42:27

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: No dirifying in categories

Offline

#11 2005-09-26 13:24:49

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: No dirifying in categories

Thanks!

Offline

Board footer

Powered by FluxBB