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.
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
Could we set some kind of public target, so that if we get, say, 100
of these 'what on earth is all this markup and why on earth do we need
it' threads, then it will get changed? :))
It would just be helpful to know how much more pressure we need to
apply :)
Pete
On Jul 6, 5:05 am, luk4s <lukas.schroe...@code-mitte.de> wrote:
> 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
On Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> wrote: > Hey Tom
> Could we set some kind of public target, so that if we get, say, 100 > of these 'what on earth is all this markup and why on earth do we need > it' threads, then it will get changed? :))
> It would just be helpful to know how much more pressure we need to > apply :)
> > 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 Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> wrote: > Hey Tom
> Could we set some kind of public target, so that if we get, say, 100 > of these 'what on earth is all this markup and why on earth do we need > it' threads, then it will get changed? :))
> It would just be helpful to know how much more pressure we need to > apply :)
> > 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
> Count me in for the public demonstration on the streets in front of P'unk Ave's offices... :P
> Cheers, Daniel
> On 07.07.2010, at 15:52, Alex Gilbert wrote:
>> Ha! I like it.
>> On Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> wrote: >> Hey Tom
>> Could we set some kind of public target, so that if we get, say, 100 >> of these 'what on earth is all this markup and why on earth do we need >> it' threads, then it will get changed? :))
>> It would just be helpful to know how much more pressure we need to >> apply :)
>> > ...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.
>> > 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:
> On Jul 7, 2010, at Jul 7,10:51 AM, Daniel Lohse wrote:
> > Count me in for the public demonstration on the streets in front of P'unk Ave's offices... :P
> > Cheers, Daniel
> > On 07.07.2010, at 15:52, Alex Gilbert wrote:
> >> Ha! I like it.
> >> On Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> wrote:
> >> Hey Tom
> >> Could we set some kind of public target, so that if we get, say, 100
> >> of these 'what on earth is all this markup and why on earth do we need
> >> it' threads, then it will get changed? :))
> >> It would just be helpful to know how much more pressure we need to
> >> apply :)
> >> > ...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.
> >> > 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 Jul 7, 2010, at Jul 7,10:51 AM, Daniel Lohse wrote:
> > > Count me in for the public demonstration on the streets in front of P'unk Ave's offices... :P
> > > Cheers, Daniel
> > > On 07.07.2010, at 15:52, Alex Gilbert wrote:
> > >> Ha! I like it.
> > >> On Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> wrote:
> > >> Hey Tom
> > >> Could we set some kind of public target, so that if we get, say, 100
> > >> of these 'what on earth is all this markup and why on earth do we need
> > >> it' threads, then it will get changed? :))
> > >> It would just be helpful to know how much more pressure we need to
> > >> apply :)
> > >> > ...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.
> > >> > 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.
One quick way to do this with Apostrophe is to override the _normalView.php template of the aText module at the project level and call strip_tags there (leave the entities alone, just strip the tags).
Another approach is to use apostrophe:generate-slot-type and make a new slot in which you can do exactly as you please.
>> > On Jul 7, 2010, at Jul 7,10:51 AM, Daniel Lohse wrote:
>> > > Count me in for the public demonstration on the streets in front of P'unk Ave's offices... :P
>> > > Cheers, Daniel
>> > > On 07.07.2010, at 15:52, Alex Gilbert wrote:
>> > >> Ha! I like it.
>> > >> On Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> wrote: >> > >> Hey Tom
>> > >> Could we set some kind of public target, so that if we get, say, 100 >> > >> of these 'what on earth is all this markup and why on earth do we need >> > >> it' threads, then it will get changed? :))
>> > >> It would just be helpful to know how much more pressure we need to >> > >> apply :)
>> > >> > ...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.
>> > >> > 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.
Or you wind up just hardcoding the stinkin' text in the template because 90% of the time, the client not only doesn't change it, but asks you to change it.
On Fri, Jul 9, 2010 at 8:16 AM, Tom Boutell <t...@punkave.com> wrote: > One quick way to do this with Apostrophe is to override the > _normalView.php template of the aText module at the project level and > call strip_tags there (leave the entities alone, just strip the tags).
> Another approach is to use apostrophe:generate-slot-type and make a > new slot in which you can do exactly as you please.
> On Fri, Jul 9, 2010 at 7:35 AM, luk4s <lukas.schroe...@code-mitte.de> > wrote: > > I'll start a CMS contest in the next days:
> > Steps necessary to get your really cool CMS to output really plain > > text.
> > How much code is necessary to make your CMS output just plain text
> > to start: > > years ago i wrote my own cms. you need two template: > > page template and block template.
> > the pagetemplate would say: > > {lukks_container name="content"}
> > the blocktemplate would say: > > {lukks_text name="text1"}
> > e voila. the rendered page would contain no markup at all. no byte > > even as long as text1 > > was an empty slot ;-)
> > On 7 Jul., 17:24, Pete Sisson <petes...@gmail.com> wrote: > >> Hehe
> >> A stateside protest would be a bit expensive for any of us Euro's but > >> I'd settle for a totaliser ( > http://www.bbc.co.uk/cbbc/bluepeter/img/c/getinvolved/appeal/totalise... > >> ) on the front page of the googlegroup to keep track of how far away > >> we are from the target.
> >> > On Jul 7, 2010, at Jul 7,10:51 AM, Daniel Lohse wrote:
> >> > > Count me in for the public demonstration on the streets in front of > P'unk Ave's offices... :P
> >> > > Cheers, Daniel
> >> > > On 07.07.2010, at 15:52, Alex Gilbert wrote:
> >> > >> Ha! I like it.
> >> > >> On Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> > wrote: > >> > >> Hey Tom
> >> > >> Could we set some kind of public target, so that if we get, say, > 100 > >> > >> of these 'what on earth is all this markup and why on earth do we > need > >> > >> it' threads, then it will get changed? :))
> >> > >> It would just be helpful to know how much more pressure we need to > >> > >> apply :)
> >> > >> > ...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.
> >> > >> > 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.
Good suggestions, Tom. Overriding aText/_normalView.php with strip_tags is dead easy and could probably the stock response for this one until there is a more elegant solution out of the box.
On Fri, Jul 9, 2010 at 8:19 AM, Abraham Block <atbl...@gmail.com> wrote: > Or you wind up just hardcoding the stinkin' text in the template because > 90% of the time, the client not only doesn't change it, but asks you to > change it.
> On Fri, Jul 9, 2010 at 8:16 AM, Tom Boutell <t...@punkave.com> wrote:
>> One quick way to do this with Apostrophe is to override the >> _normalView.php template of the aText module at the project level and >> call strip_tags there (leave the entities alone, just strip the tags).
>> Another approach is to use apostrophe:generate-slot-type and make a >> new slot in which you can do exactly as you please.
>> On Fri, Jul 9, 2010 at 7:35 AM, luk4s <lukas.schroe...@code-mitte.de> >> wrote: >> > I'll start a CMS contest in the next days:
>> > Steps necessary to get your really cool CMS to output really plain >> > text.
>> > How much code is necessary to make your CMS output just plain text
>> > to start: >> > years ago i wrote my own cms. you need two template: >> > page template and block template.
>> > the pagetemplate would say: >> > {lukks_container name="content"}
>> > the blocktemplate would say: >> > {lukks_text name="text1"}
>> > e voila. the rendered page would contain no markup at all. no byte >> > even as long as text1 >> > was an empty slot ;-)
>> > On 7 Jul., 17:24, Pete Sisson <petes...@gmail.com> wrote: >> >> Hehe
>> >> A stateside protest would be a bit expensive for any of us Euro's but >> >> I'd settle for a totaliser ( >> http://www.bbc.co.uk/cbbc/bluepeter/img/c/getinvolved/appeal/totalise... >> >> ) on the front page of the googlegroup to keep track of how far away >> >> we are from the target.
>> >> > On Jul 7, 2010, at Jul 7,10:51 AM, Daniel Lohse wrote:
>> >> > > Count me in for the public demonstration on the streets in front of >> P'unk Ave's offices... :P
>> >> > > Cheers, Daniel
>> >> > > On 07.07.2010, at 15:52, Alex Gilbert wrote:
>> >> > >> Ha! I like it.
>> >> > >> On Wed, Jul 7, 2010 at 9:45 AM, Pete Sisson <petes...@gmail.com> >> wrote: >> >> > >> Hey Tom
>> >> > >> Could we set some kind of public target, so that if we get, say, >> 100 >> >> > >> of these 'what on earth is all this markup and why on earth do we >> need >> >> > >> it' threads, then it will get changed? :))
>> >> > >> It would just be helpful to know how much more pressure we need to >> >> > >> apply :)
>> >> > >> > ...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.
>> >> > >> > 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.