Page 1 of 1

Few formating quoestions

Posted: Thu 19. Feb 2004, 01:39
by Marko
Hi again!

While I was playing with my latest release I encountered few problems with PhpWcms and its way to format pages. Here's one of them.

When I use Text w / image block in editor, it seems that I don't have any control over the linebreaks. At least all of my articles are formatted as plain html. Of course I could use good old <br /> tags to include linebreaks into my text, but this seems a bit odd to me.

SOLVED, at least for my purposes...

Posted: Fri 20. Feb 2004, 00:29
by Marko
Open /include/inc_front/content.article.inc

On row 111 the definitions for block Text W / Image begins. There is all together 7 separate clauses for switch operator, find rows:
(div_class($crow["acontent_text"],$template_default["article"]["text_class"])
Change this into
nl2br(div_class($crow["acontent_text"],$template_default["article"]["text_class"]))
and you'll get your linebreaks right