Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-16 16:38:09

mfos
Member
Registered: 2008-12-11
Posts: 34

Multiple categories for Images and Files

I’ve hunting around for an answer to a problem I have but after an hour my eyes are starting to hurt.
In the images and files sections, you can only select one category to assign it to. Is there a plugin that enables you to choose more than one?

Cheers
Mike

Offline

#2 2009-10-16 19:07:05

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

Re: Multiple categories for Images and Files

Hi Mike

there is no multi-category plugin(s) for images and files (yet). I use a lot of images in one of my sites and whenever a second category is needed I either add the image manually or upload it twice.


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 2009-10-16 19:14:41

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Multiple categories for Images and Files

Does smd_tags help? Replacing categories with tags.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2013-01-13 00:36:20

dylan-c
Member
From: Maine
Registered: 2012-07-09
Posts: 13

Re: Multiple categories for Images and Files

I’d be curious to find out too. I need multiple categories for my images. For one, I’d like to not have to upload images twice, but for another, I need subcategories so that images can be displayed with an internal grouping by color. I’ve checked out the smd_tags, but I’m still not sure if it’ll do what I want. Some images will be displayed by Slimbox; others by Galleria, and many will need to be displayed by both according to their overlapping category or tag designations. Any ideas?

Edit: I’ve found that for outputting image names for use by Galleria, I’m able to use

<txp:wet_for_each_image category="6-blues,2-reds,4-pinks,1-fiesta,5-garden,8-mocha,3-bw,7-greens" sort="category asc" />

to sort by color (that is, by category name in ascending order).

Last edited by dylan-c (2013-01-14 22:53:42)

Offline

#5 2013-01-13 07:35:32

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

Re: Multiple categories for Images and Files

I think that categories is the way to go. for the parent category blue containing subcategories and slimbox you could use a code like: (… untested)

<txp:images category='<txp:category_list type="image" parent="blue" break="">
	<txp:category type="image" /></txp:category_list>'  limit="10">
		<a href="images/<txp:image_info type="id" />.<txp:image_info type="ext" />t" 
			width="<txp:image_info type="thumb_w"/> hight="<txp:image_info type="thumb_h" />" 
			rel="lightbox-cats">
			<txp:thumbnail />
		</a>
</txp:images>

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

Offline

Board footer

Powered by FluxBB