eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here.

Reply
 
Thread Tools Display Modes
Old 05-18-2010   #1
ovidiupal
 
Join Date: Jan 2010
Posts: 4
ovidiupal is on a distinguished road
Default Short description on listing page ?

at wordpress there is a command that shows only a few caracters from descriptions on homepage and the put;s a link "read more". How can i do that on esyndicate ?

Thanks... sorry for my english
ovidiupal is offline   Reply With Quote
Old 05-18-2010   #2
Michele
 
Join Date: Jun 2006
Posts: 274
Michele is on a distinguished road
Default

I don't think that there's a way to do that automatically.

The way I would attack it is to create a second description field. Put the 'teaser' description in the original description field to be displayed on the category pages and put the complete description in the new field and edit the view-listings.tpl to display the new field.
__________________
2 Great eSyndiCat Directories
Crafty Tips Arts & Crafts Directory & Pet Site Guides Pet Directory
Michele is offline   Reply With Quote
Old 08-22-2010   #3
TopWebNames
 
TopWebNames's Avatar
 
Join Date: May 2010
Location: Hawaii
Posts: 731
TopWebNames is on a distinguished road
Thumbs up Sort description for category pages, long for listings

Quote:
Originally Posted by Michele View Post
The way I would attack it is to create a second description field. Put the 'teaser' description in the original description field to be displayed on the category pages and put the complete description in the new field and edit the view-listings.tpl to display the new field.

Hi Michele. This is exactly what I'm looking for for my new directory, "The Best Of The Internet"! I just finished creating a listing for a friend's anthurium farm here in Hawaii. I quickly learned that 500 characters is way too few to describe their very unique business, so I scanned the forum and learned how to increase the number of characters in the description from 500 to 1,000.

Much to my shock, I then learned that the FULL description displays in the listing on the Category page! So, I started looking for how to have a SHORT description for Category pages, and a much longer description in the actual listing. And... you said it just right.

However, I'm not a programmer at all. HOW do I implement this? What actual steps do I take?

Thanks!

Steve
__________________
"The Best Of The Internet" - Premium, world class, paid only Internet directory - www.TheBestOfTheInternet.com

High quality, intuitive phrase, type-in keyword, "Top Web Names" for sale - www.TopWebNames.com
TopWebNames is offline   Reply With Quote
Old 08-22-2010   #4
Greg
Super Moderator
 
Greg's Avatar
 
Join Date: Oct 2005
Location: (California)
Posts: 5,299
Greg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the rough
Default

Quote:
Originally Posted by TopWebNames View Post

However, I'm not a programmer at all. HOW do I implement this? What actual steps do I take?

Thanks!

Steve
Look at what Alex posted in post #7.
Where you see in the code - "SYMBOLS_NUM" - set that to the number of letters/characters you want.

Should work.
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks!
Greg is offline   Reply With Quote
Old 08-22-2010   #5
TopWebNames
 
TopWebNames's Avatar
 
Join Date: May 2010
Location: Hawaii
Posts: 731
TopWebNames is on a distinguished road
Question

Hi Greg. That works just fine, and as I mentiioned in my post, that's what I did. However, what I need to know is:

1 - How to use the current Listing Description as a brief/short Listing Description that only displays on Category pages...

2 - and how to add a much longer Listing Description field that only displays in the actual listings.

Or visa-versa, whichever might work better, or be easier to set up.

Thanks



Quote:
Originally Posted by Greg View Post
Look at what Alex posted in post #7.
Where you see in the code - "SYMBOLS_NUM" - set that to the number of letters/characters you want.

Should work.
__________________
"The Best Of The Internet" - Premium, world class, paid only Internet directory - www.TheBestOfTheInternet.com

High quality, intuitive phrase, type-in keyword, "Top Web Names" for sale - www.TopWebNames.com
TopWebNames is offline   Reply With Quote
Old 05-20-2010   #6
Alex B.
Tech Support
 
Alex B.'s Avatar
 
Join Date: Oct 2008
Posts: 1,009
Alex B. is on a distinguished road
Default

That feature is not available, but I can give you a tip how to truncate descriptions for certain number of symbols.
If you need that, just let me know
__________________
Best Regards, Alex B.
HELPDESK
Alex B. is offline   Reply With Quote
Old 05-24-2010   #7
jeffrey69
 
Join Date: Mar 2010
Posts: 7
jeffrey69 is on a distinguished road
Default

Thanks Alex. If you don't mind, I will like to know your tip on how to truncate descriptions for certain number of symbols. Thanks
jeffrey69 is offline   Reply With Quote
Old 05-24-2010   #8
ovidiupal
 
Join Date: Jan 2010
Posts: 4
ovidiupal is on a distinguished road
Default

I have made a new field for short description and then i have put the field to show on listings page.
Another way to do it and more easy is from CSS, but i thing is not so good for google, you ca give a style to the description something like this style="height: 20px; overflow: hidden;" ...
ovidiupal is offline   Reply With Quote
Old 05-24-2010   #9
ovidiupal
 
Join Date: Jan 2010
Posts: 4
ovidiupal is on a distinguished road
Default

Quote:
Originally Posted by Alex B. View Post
That feature is not available, but I can give you a tip how to truncate descriptions for certain number of symbols.
If you need that, just let me know
What is the solution ?
ovidiupal is offline   Reply With Quote
Old 05-31-2010   #10
Alex B.
Tech Support
 
Alex B.'s Avatar
 
Join Date: Oct 2008
Posts: 1,009
Alex B. is on a distinguished road
Default

you should edit next files:
./templates/common/regular-listing-display.tpl
./templates/common/featured-listing-display.tpl
./templates/common/sponsored-listing-display.tpl
./templates/common/partner-listing-display.tpl

Find there this code:
HTML Code:
	<div class="description">
		{if $config.html_tags}
			{$listing.description}
		{else}
			{$listing.description|escape:"html"|replace:"\r\n":"<br />"}
		{/if}
	</div>
and replace it with this one:
HTML Code:
	<div class="description">
		{if $config.html_tags}
			{$listing.description}
		{else}
			{$listing.description|escape:"html"|replace:"\r\n":"<br />"|truncate:SYMBOLS_NUM}
		{/if}
	</div>
Where SYMBOLS_NUM is number of symbols you want to leave. Instead of the rest symbols "..." will be printed
__________________
Best Regards, Alex B.
HELPDESK
Alex B. is offline   Reply With Quote
Reply

Thread Tools
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

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


All times are GMT. The time now is 10:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources