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
[SOLVED] How do I display Category Images in Comp Dir
-
CapereSpiritum
- Forum Members

- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
[SOLVED] How do I display Category Images in Comp Dir
Last edited by CapereSpiritum on Wed Feb 05, 2014 9:01 am, edited 1 time in total.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: How do I display Category Images in Comp Dir
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
<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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
CapereSpiritum
- Forum Members

- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: How do I display Category Images in Comp Dir
Thank you Calguy
I always forget about <pre>{$obj|@print_r}</pre>
Elderly moments are getting more frequent
I always forget about <pre>{$obj|@print_r}</pre>
Elderly moments are getting more frequent
