Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 03:32 pm EST

Geeklog Forums

story_text_no_br versus story_introtext


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

In story template I can use {story_text_no_br} or {story_introtext} but render is different using advanced editor or plain text.


Using {story_introtext} Plain text
Intro Text

Body Text


Using {story_introtext} Advanced editor
Intro Text



Body Text


Using {story_text_no_br} Plain text
Intro Text Body Text


Using {story_text_no_br} Advanced editor
Intro Text

Body Text


How to solve this issue if we need the same render in both case (plain text and advenced editor)?

::Ben

I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
{story_introtext} traditionally adds two <br> tags between the intro and the body text. Where does the extra vertical space come from when using FCKEditor? Is it adding <p> tags or is it because you used <p> tags in your article text?

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Yes I'm using plain text or fckeditor (witch is adding <p> tags) in articles, but I would like to have nearly the same render.

One way could be to add a feature in lib-story.php where we can make a different render depending on the $postmode.

What do you thing about?

::Ben


I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EST. The time is now 03:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content