Support Forums

Category name of each ad to appear in ShowListings and ViewListings

This is a discussion on Category name of each ad to appear in ShowListings and ViewListings within the Customizations forums, part of the Developer Forums category; For each classified ad, I would like the name of the category which the ad was placed in to appear ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 09-01-2009, 07:52 AM   #1
cat
Junior Member
 
Join Date: Aug 2009
Posts: 8
Rep Power: 0
cat is on a distinguished road
Default Category name of each ad to appear in ShowListings and ViewListings

For each classified ad, I would like the name of the category which the ad was placed in to appear in ShowListings2 as well as the title, price, date placed, short description and whatever else. Also to appear in ViewListing. Does anyone know how to code that?

I am using v4.1.5 Developer
cat is offline   Reply With Quote
Old 09-01-2009, 08:15 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,381
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Most of what a user sees regarding an ad can be turned on/off via the user groups.

After that, just like you other post, use the debug console to what variables you have available and if they do not already exist in the template, place the variable in the template where you would like its contents displayed.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 09-02-2009, 06:16 AM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,148
Rep Power: 77
seymourjames is a jewel in the rough
Default

You will need to use the debug console and you will discover this {$getcats} .

So if you want it to be displayed next to each advert, you will need to pick up the appropriate category name from that array as you run through the table. However, is it not going to look a bit silly to have a whole column with the name just repeated? The category name from a browse is already given in the breadcrumb.

I would actually not display such a column on a showlistings which is derived from a browse operation and only get it to only show if you were deriving the listings from a search (i.e. the results are mixed and not from a single category). Hope that makes sense.

As for your second requirement {$categoryname} . Simply put this where you want it in the viewlisting file.

What I would like to say is you need to get familiar with the use of {debug} and invest in a bit of reading around the smarty language.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewlistings Formatting skyblue Templates, HTML, CSS, and Design Help 1 03-08-2009 10:29 PM
Help needed changing viewlistings sunshinemike Templates, HTML, CSS, and Design Help 1 02-18-2009 07:48 AM
Display First Name and Last Name in Viewlistings nagrap2 Technical Support 3 01-16-2009 01:11 PM


All times are GMT -4. The time now is 03:13 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0