Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2012-04-03 18:11:22
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
Hello to TXP users!
This one <txp:upm_category_image_list link=“yes” link_section=“yes” title=“yes” /> works perfectly for my needs but is there any slightest hope that together with images I can also publish categories’ titles? Some people understand better when they can read. Or is there any other way to list categories with its images?
Thanks!
Offline
#110 2012-04-03 19:42:19
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
Is this <txp:image_info /> what you need?
Offline
#111 2012-04-04 06:04:26
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
GugUser wrote:
Is this <txp:image_info /> what you need?
Right, but how do I integrate this tag with the plugin’s tag upm_image_list?
Last edited by admi (2012-04-04 06:06:13)
Offline
#112 2012-04-04 16:50:02
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
The upm_image plugin is no longer necessary. You can do all with <txp:images />.
Offline
#113 2012-04-04 18:38:32
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
GugUser wrote:
The upm_image plugin is no longer necessary. You can do all with <txp:images />.
How? Example?
disclaimer: No idea what this plugin does but I imagine that may be what admi needs to solve the issue.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#114 2012-04-05 09:15:17
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
GugUser wrote:
The upm_image plugin is no longer necessary. You can do all with <txp:images />.
well, i will be happy if you prove to be right. But I have no concept how to make this tag work for article category images (not image categories).
An alternative option is an example from http://txptips.com/assign-an-icon-to-your-navigation-links –
<txp:section_list break=”“ wraptag=“ul” default_title=“Home” sections=“section1,section2,section3” include_default=“1”>
<li><img src=”/images/<txp:section />.png” /><txp:section title=“1” link=“1” /></li>
</txp:section_list>
where instead of sections categories may be used.
Last edited by admi (2012-04-05 09:42:43)
Offline
#115 2012-04-05 09:59:53
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
Untested, but something like this:
<txp:category_list wraptag="ul" break="li">
<a href="<txp:site_url /><txp:section />?c=<txp:category />">
<txp:image name='<txp:category />.jpg' />
<p><txp:category title="1" /></p>
</a>
</txp:category_list>
… assuming that your images are .jpg images and you name the images to match the category-name. Use txp:thumbnail instead of txp:image if you want to use the thumbnail. If you want to control which categories to show, look at the parent, children or categories attributes of txp:category_list.
TXP Builders – finely-crafted code, design and txp
Offline
#116 2012-04-05 10:18:20
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
Thanx, but it means that I should upload images thru ftp, otherwise txp will change the names into 1, 2, 3.jpg – right?
Offline
#117 2012-04-05 11:05:40
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,310
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#118 2012-04-05 13:50:24
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
but it means that I should upload images thru ftp, otherwise txp will change the names into 1, 2, 3.jpg – right
No, as Uli says, it’s the image’s name field in the image tab. Same as you do for upm_article_image.
TXP Builders – finely-crafted code, design and txp
Offline
#119 2012-04-05 14:34:00
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,310
Re: [plugin] [ORPHAN] upm_category_image: Display image for category.
I’ve not tested it but after browsing some of the image tags’ pages a little more, I think even the hardcoded jpg
extension is taggable (is that a word?) with <txp:image_info type="ext" name=''<txp:category />'' />
. I hope so.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline