I'm having trouble with line breaks in my flexinode. Ideally, I want my users to have no access to formatting options, so I'm not using a WYSIWYG. When I type in multiple paragraphs, line breaks are not showing up as
. When I view source, there are line breaks present, just no tags, and the output shows no breaks at all. Now I'm not sure if this has anything to do with it, but I'm calling the text directly from the database, instead of calling the flexinode. There's a long story as to why I'm doing that, but its really unimportant. Does anyone have any suggestions?

Mike

Comments

Marc Bijl’s picture

... but can it be it has something to do with (not) using "Full HTML" when filling the flexinode fields with content?

In case you want to be absolutely sure about the flexinodes presentation, you can also create a file called node-flexinode-n.tpl.php (where n is the flexinode's type id). In this file you can define your very own design for the flexinode's data presentation, just the way you want.

More about this here: http://drupal.org/node/31646#comment-63439

Hope this is what you're actually looking for.

___________________
discover new oceans
lose sight of the shore

platypus media’s picture

Basically, I'm creating an article type here with a bunch of different attributes. In addition to the article content itself, there's also a quote. This is going to go in a div tag in between the first and second paragraph. Herein lies the problem. I've been having difficulty with the flexinode template to theme it, so I'm writing it into the page, and calling for everything from the database. This also allows me to parse the string, because in order to place the div tag where I want it, I need to place it like such:

<p>First Paragraph</p>
<div class='callout'>quote</div>
<p>Second Paragraph</p>
etc.
mkpaul’s picture

I had the same problem and i solved it as follows:

In the node-flexinode-x.tpl.php, i used:
print check_output($node->flexinode_2, $check=TRUE);

I hope you are using phptemplate for theming your site.

Paul

wubbonius’s picture

Thank you! This worked for me as well - it took me 10 minutes solving this issue thanks to your reply. Hero!

Rosamunda’s picture

It didn´t worked for me...
It seems like php doesn´t recognize check_output

Rosamunda
Buenos Aires | Argentina
www.ligadelconsorcista.org

potential’s picture

I think you want to use check_markup() in drupal 4.7

Rosamunda’s picture

YES! I wanna do that indeed!!
IT WORKED!!!
I love you, potential!!
:-)
THANKS!!

Rosamunda
Buenos Aires | Argentina
www.ligadelconsorcista.org

platypus media’s picture

The checkoutput works, but it has to be on its own line.

Mike