Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 21st, 2011, 07:41 PM
jamies123a jamies123a is offline
 
Join Date: Apr 2010
Posts: 38
Default Category Images in Widget

Hello, trying to figure out how to get the category images in the category widgets instead of the category name

Also in if i have a 4 sub categories under on main one . When i click on the parent category and goes to the category page , i have it listing the child categories at the top.
I want these to be the child category images not the names.
i tried this
<div class="bdr">
<a href="[category.link]"><img src="[category.image]" /></a>

<?php /* REMOVE THIS LINE TO ENABLE CATEGORY DESCRIPTIONS
<br />
<div class="catdesc">[category.description]</div>
REMOVE THIS LINE TO ENABLE CATEGORY DESCRIPTIONS */ ?>
[category.list id='dfcatcol2' before='<ul>' after='</ul>']
<li>
<a href="[category.link]"><img src="[category.image]" /></a>

[category.repeat id='dfcatcol2']
</li>
[/category.list]
</div>

but nothing showed up .. is this how its should be done ?
  #2  
Old March 21st, 2011, 07:52 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

To display category images at all hierarchies, you can use something like this:

Code:
[category.list before='' after='']
<div>
  <a href="[category.link]" title="[category.name]">
  	<img src="[category.image]" alt="[category.name]" />
  </a>
  [category.repeat]
</div>
[/category.list]
Also, don't forget that you must add images to each category. Category images are not generated automatically.

Eric
  #3  
Old March 22nd, 2011, 02:49 PM
jamies123a jamies123a is offline
 
Join Date: Apr 2010
Posts: 38
Default

thanks for the reply eric... if i wanted to display just the child categories and images how can i do this ?

i tried this in the widget with no luck
[category.list before='' after='']

[category.if active='child']
<div>
<a href="[category.link]" title="[category.name]">
<img src="[category.image]" alt="[category.name]" />
</a>
[category.repeat]
</div>
[/category.if]
[/category.list]

Last edited by jamies123a : March 22nd, 2011 at 02:53 PM.
  #4  
Old March 22nd, 2011, 03:44 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by jamies123a View Post
if i wanted to display just the child categories and images how can i do this ?
It's kind of tricky but it has been addressed here and here.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show One Sub Category Only in Category Widget patagonia Questions 11 March 6th, 2011 06:43 PM
'Home' in the category widget lbuilta59 Questions 1 February 5th, 2011 12:57 PM


All times are GMT -5. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.