Page 1 of 1

[SOLVED] How do I display Category Images in Comp Dir

Posted: Fri Jan 31, 2014 4:57 pm
by CapereSpiritum
Hi All

I'm quite a way thru setting up a Company Directory for a site.

I'm using the 'Category List Template' feature to display categories.
When adding a Category, you can upload an image.

I cannot see how to display that image in the Category List Template.
Can anyone let me know the code for this?

I've used Company Directory quitye a bit but have never done this...

CMS Version 1.11.9

Installed Modules
CMSMailer 5.2.2
CMSPrinting 1.0.5
FileManager 1.4.3
MenuManager 1.8.6
MicroTiny 1.2.5
ModuleManager 1.5.5
News 2.14.1
Search 1.7.11
ThemeManager 1.1.8
JQueryTools 1.2.5
CGSimpleSmarty 1.7.1
CGExtensions 1.38.1
CompanyDirectory 1.20
CGSmartImage 1.15
FormBuilder 0.7.3
FrontEndUsers 1.22.3
SelfRegistration 1.8.2
CGJobMgr 1.3.1
NMS 2.7.4

Re: How do I display Category Images in Comp Dir

Posted: Fri Jan 31, 2014 5:12 pm
by calguy1000
Add this to your template (temporarily), inside the foreach loop:

<pre>{$obj|@print_r}</pre>

This will show you the various public members that are accessible.
One of them (if the image is set and valid) is $obj->image_url

Re: How do I display Category Images in Comp Dir

Posted: Wed Feb 05, 2014 9:00 am
by CapereSpiritum
Thank you Calguy

I always forget about <pre>{$obj|@print_r}</pre>

Elderly moments are getting more frequent ;-)