Yes, that would be nice. Ticket here:
http://trac.apostrophenow.org/ticket/471
...I really only need plain text - inside of an <hX> - so that it will
be Cufon'ed as a headline easily
as prepared in my layouts.
How-To-Question:
How to get the raw value of a slot rendered without
the _area -> _slot -> yadda yadda wrappings?
In components.class.php I could "see" my almost-plain text as
$value["text"]
For the record: I also tried to simply create my own "justPlaintext"
type, but, oh
well: this is the <h2>....</h2> markup I ended up with.
<h2><div id="a-area-7-headline" class="a-area a-area-
headline">
<div id="a-slots-7-headline" class="a-slots">
<div class="a-slot justPlaintext " id="a-slot-7-headline-2">
<div class="a-slot-content" id="a-slot-content-7-headline-2">
----
This is a Plain TExt Slot!----
</div>
</div>
</div> </div> <!-- END SLOT -->
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
});
</script></h2>
Thanks,
-Lukas
On 6 Jul., 00:07, Tom Boutell <
t...@punkave.com> wrote:
> The simple_format_text helper does that. I think it would make sense
> for us to add options to strip it down and turn off things like
> links-to-URLs and line breaks to paragraphs, especially when you're
> not using the multiline option. A true plaintext slot ought to be
> available. I suggest that you open a ticket on
trac.apostrophenow.org.
>
>
>
> On Mon, Jul 5, 2010 at 4:07 PM, luk4s <
lukas.schroe...@code-mitte.de> wrote:
> > G'night everyone
>
> > I put something like this in my template:
>
> > <h2><?php a_slot('headline', 'aText'); ?></h2>
>
> > Why does it end up as
> > <h2><p>the text i entered via editing</p></h2>
>
> > And the <p> tag is written to the database. An empty edit field? Ends
> > up as <p></p>.
>
> > How do I make aText be *real* plaintext?
>
> > As a workaround for now I tried this:
> > <h2><?php a_slot('headline', 'aText', array('allowed-tags' =>
> > '<pre>')) ?></h2>
>
> > to have <p> removed.
>
> > Didn't work.
>
> > Versions:
> > symfony -- via svn external fromhttp://
svn.symfony-project.com/branches/1.4