|
|
#1 |
|
Member
Join Date: Dec 2008
Posts: 30
Rep Power: 2 ![]() |
Hi,
I would like to have my "short description" show up in my showlistings and viewlistings pages, but can't seem to figure out how. I read this other thread: Short Description? and tried to do what was suggested which was replacing this code: Code:
<tr>
<td colspan="2"><strong>{$smarty.const.LANG_DESCRIPTION}: </strong><br />{$description|nl2br}</td>
</tr>
Code:
<tr>
<td colspan="2"><strong>{$shortDescription}</strong> <br /> <p> </p> <strong>{$smarty.const.LANG_DESCRIPTION}: </strong><br />{$description|nl2br}</td>
</tr>
But, I still don't see the short listing anywhere. Thanks, Adam |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,780
Rep Power: 110 ![]() |
The only thing I can think of is your site is not actually setup to use the viewlisting2.tpl template file. I find the easiest way to tell is to put the {debug} var in or add something like to the very top of the template file:
Code:
THIS IS THE VAR: {$shortDescription}
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
Member
Join Date: Dec 2008
Posts: 30
Rep Power: 2 ![]() |
Thanks, but I don't know that much about code...what is a var and where exactly do I put it...and then what do I do to "know what is going on"
Sorry, but you have to dumb it down for me bit
|
|
|
|
|
|
#4 |
|
Genius At Work
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 695
Rep Power: 17 ![]() |
Just place {$shortDescription} where you want it to appear in the viewlisting.tpl and post back if it works or not.
{debug} will tell you if variables such as {$shortDescription} will work on the page you are viewing, but just forgot it for now and try what i suggested at the start of post. Cheers
__________________
Nick Bowers 68c v4.09 Developer |
|
|
|
|
|
#5 |
|
Member
Join Date: Dec 2008
Posts: 30
Rep Power: 2 ![]() |
Thanks...
I placed {$shortDescription} in various spots, but for some reason was only able to get the short description to show at the top of the view listing page. I was able to get it to show on my show listing page (which is what I wanted more), but then it ended up looking messy...it was difficult to tell if the short description was for the ad above or below. I have decided to remove the short description altogether so it no longer shows up when a customer creates an ad and I removed it from my various payment packages. In the end, I think it may just confuse customers anyway. At some point I may try to play around with it some more to try and get the look right in my show listing page, but for now I'll just do without it. Thanks Eric and Nick for your help. |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,337
Rep Power: 40 ![]() ![]() |
Unless I'm very mistaken, the showlistings.tpl and showlistings2.tpl files show the listings data from an array, so the variable $shortDescription wouldn't be available to the template. I think it would be available by using this method instead:
{$entry.shortDescription} -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0.9, 4.1 Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds. Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Short Description? | suav | v4 Questions & Support | 10 | 08-26-2008 01:46 AM |
| Short description | famtimes | v4 Questions & Support | 1 | 05-07-2008 11:26 PM |
| Need to sanitize the description and short descriptions | bgordon | v3.1 Questions & Support | 7 | 04-05-2007 09:03 PM |
| Add short description to view listing | redmtnex | v3.1 Questions & Support | 2 | 01-25-2007 07:39 PM |
| Short Description Not showing | lbrown13 | v3.1 Questions & Support | 7 | 06-25-2006 09:29 AM |