Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-08 16:24:53

mwillse
Member
From: brooklyn, ny
Registered: 2006-06-26
Posts: 83
Website

file category title

It seems that <txp:file_download_category /> does not have the Title attribute and always displays categories by Name. <txp:link_category title=“1” /> allows you to do this, which helps avoid hyphens between words-in-the-name.

Is it possible to access this manually with PHP? How would I do this?

You can see an example of it in use on this dev site.

thanks folks for any help and suggestions…

Offline

#2 2007-04-08 16:42:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: file category title

Would this help?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-04-08 17:50:51

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

Re: file category title

FWIW: this has been fixed in svn.

<txp:php>
	global $thisfile;

	if ($thisfile['category'])
	{
		echo fetch_category_title($thisfile['category'], 'file');
	}
</txp:php>

Offline

Board footer

Powered by FluxBB