Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

Rendering problem with news's articles section and first page. [Solved]

Solution has been fully integrated

Solution Manager: Bernard

Issue description

I've put an article in the section news, wich automaticlyu compare on the first page. In the article there is a list of links like this

-  Label1
-  Label2

They are showed correctly on the news section but not on the first page where you get all the label on one line as simple text (no link) like:
Label1 Label2

You can see it at www.darviniano.eu

Comments

Fw_crocodile
Member
151 posts
registered on Jul. 17 2006

on Dec. 14 2006


It seems that this happen also with other codes like \[nl\], they didn't get interpreted on the first page while they are in the news section.
Bernard
avatar
from nearby-an-airport
Associate
6544 posts
registered on Sep. 12 2003

on Dec. 15 2006


This is a bug of the function Skin::cap().

You can remove the call of this function at line 174 of script skins/layout_home_articles_as_daily.php to get:

$box['content'] .= Codes::beautify($item['description'],
    
$item['options'])."n";

Bobthecheese
Member
3 posts
registered on Oct. 9 2006

on Jan. 29 2007


I tried this, but to no avail. It appears to be stripping out all formatting tags on the front page.

Any other suggestions?
Bernard
avatar
from nearby-an-airport
Associate
6544 posts
registered on Sep. 12 2003

inspired from bobthecheese on Jan. 29 2007


Bobthecheese: Maybe it was not clear in my comment, but you have to remove call of cap(), and to maintain call of beautify(). If you remove both, YACS codes won't be translated to XHTML anymore.
Christian
avatar
from Chonas l'Amballan
Associate
726 posts
registered on Mar. 23 2006

on June 9


I Close but keep the test for the 8.6 verions

Rate this page
Posted by Fw_crocodile on Dec. 11 2006, page edited by Christian on June 9, (popular)