Loading ...

Article Teaser Size

Board index / PHP Melody - Video CMS / PHP Melody 1.6.x (old version)

Forums for the previous PHP Melody version (1.6.x)

Postby phpguy98 on Jan 18, 2012 9 pm


Not sure what happened, but on my article landing page, it displays the full article. On the PHP Melody demo, it shows the teasers on the article landing page, then the full article on the main article page. Is there a setting somewhere that I need to set so the full article doesn't display on landing and category pages? thanks.
phpguy98
Verified Customer
Verified Customer
 
Posts: 31
Joined: Nov 12, 2010 10 pm
Reputation points: 0

Postby phpguy98 on Jan 27, 2012 4 am


here's an update to a discovery of the solution I found.

{$article.content}
Places entire article content in that area, including the 1st photo and formatting of links, style, etc.

{$article.excerpt}
Places the excerpt of the article in the area. No formatting or pictures come through

{smarty_fewchars s=$article.content length=500}
Brings in the content, along with the photos and style, link, etc. But you can limit it by the enclosed attribute. 500 seems like a decent size.
phpguy98
Verified Customer
Verified Customer
 
Posts: 31
Joined: Nov 12, 2010 10 pm
Reputation points: 0

Postby chatflash on Jan 29, 2012 12 pm


When you make a article in your admin panel, use "Delimeter" (The button on the right side of the "HTML" button).
Everything on top of this line will show on your article landing page, everything show on the article detail page.
User avatar
chatflash
Verified Customer
Verified Customer
 
Posts: 977
Joined: Nov 24, 2007 1 pm
Location: Netherlands
Reputation points: 132

Postby phpguy98 on Jan 29, 2012 7 pm


Thanks Chatflash!
phpguy98
Verified Customer
Verified Customer
 
Posts: 31
Joined: Nov 12, 2010 10 pm
Reputation points: 0


Who is online

Users browsing this forum: No registered users and 3 guests