Value=br ? 
Posted: 09 April 2008 08:14 AM   [ Ignore ]
Member
RankRankRank
Total Posts:  97
Joined  2008-03-04

In the Form Helper instructions we have the following example:

<input type="text" name="{exp:form_helper:field_grabber field_name='summary'}" value="{summary}" />

<
input type="hidden" name="{exp:form_helper:field_grabber field_name='summary' which='format'}" value="br" />

What is the intent of the value="br"?

Thanks.

Profile
 
 
Posted: 09 April 2008 08:30 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2180
Joined  2006-10-18

It auto adds
formatting to linebreaks smile

Oh, I wish I were an Oscar Mayer wiener

That is what I truly want to be

‘Cause if I were an Oscar Mayer wiener

Everyone would be in love with me.

Would format as:

Oh, I wish I were an Oscar Mayer wiener
<br />
That is what I truly want to be
<br />
Cause if I were an Oscar Mayer wiener
<br />
Everyone would be in love with me.

And would render on your template like this:

Oh, I wish I were an Oscar Mayer wiener

That is what I truly want to be

‘Cause if I were an Oscar Mayer wiener

Everyone would be in love with me.

 Signature 
Profile
 
 
Posted: 09 April 2008 08:35 AM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  97
Joined  2008-03-04

So if I really don’t want line breaks between my stanzas (because I am a horrible singer anyway) then I would remove value="br" ?

Thanks.

Profile
 
 
Posted: 09 April 2008 08:38 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2180
Joined  2006-10-18

Your options are:

xhtml
br
none

xhtml will basically put paragraph tags around your paragraphs/linebreaks:

<p>
Oh, I wish I were an Oscar Mayer wiener
</p>
<
p>
That is what I truly want to be
</p>
<
p>
Cause if I were an Oscar Mayer wiener
</p>
<
p>
Everyone would be in love with me.
</
p>

If you want no formatting, choose “none” smile

 Signature 
Profile
 
 
Posted: 12 May 2008 01:34 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  1
Joined  2007-06-18

It is possible to use other formatting plugins such as markdown or are the options limited to the default EE options (ie, xhtml, br or none)?

Profile
 
 
Posted: 13 May 2008 06:05 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2180
Joined  2006-10-18
Grant - 12 May 2008 01:34 PM

It is possible to use other formatting plugins such as markdown or are the options limited to the default EE options (ie, xhtml, br or none)?

Grant,

You might be able to use something like Markdown, though I’ve never tested it wink
I would just omit the Parse pair from the field, and wrap it with the Markdown tags…

See if that works wink

People have also used stuff like TinyMCE, so I don’t see this being too much a problem wink

 Signature 
Profile