Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2018-04-06 10:21:56
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
Re: Textile for titles... again, please.
:)
Offline
#14 2018-04-06 10:24:35
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,315
Re: Textile for titles... again, please.
greate new possibility!!
Offline
Re: Textile for titles... again, please.
The tidy
option also works for bodies? That would be … congenial.
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: Textile for titles... again, please.
jayrope wrote #311341:
The
tidy
option also works for bodies? That would be … congenial.
I was playing around with it a couple of weeks ago. I have a block of code (I’ve linked to it elsewhere – it quickly figures out whether the page is search, category, author or just a standard default page.) The problem is that it left a whole bunch of whitespace on the page. I solved that after years of finding it mildly annoying with:
<txp:output_form form="module-frontpage-type" escape="trim, tidy" />
Now the entire thing gets reduced to one line.
Offline
Re: Textile for titles... again, please.
jayrope wrote #311341:
The
tidy
option also works for bodies?
The escape
attribute is global for all tags, so yes, any tag can benefit. Even plugins, as long as they haven’t overridden the core functionality.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Textile for titles... again, please.
etc wrote #309648:
Not sure it’s the best way, but here we go:
<a href="<txp:site_url />articles/<txp:article_url_title />"...
Thank you Oleg you save my day!
I got a problem to remove all HTML tags contained into my description (especially the <span> within Caps):
<meta name="twitter:description" content="<txp:excerpt escape="textile,tags,html" />">
Perfect!
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Textile for titles... again, please.
Pat64 wrote #320516:
Thank you Oleg you save my day!
I got a problem to remove all HTML tags contained into my description (especially the <span> within Caps):
<meta name="twitter:description" content="<txp:excerpt escape="textile,tags,html" />">
Perfect!
This is great! So <txp:smd_wrap_all transform="strip_tags">
is no longer needed?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Textile for titles... again, please.
Yep. TXP become more and more flexible! One day we’ll never need any plugins 😜
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Textile for titles... again, please.
Pat64 wrote #320519:
Yep. TXP become more and more flexible! One day we’ll never need any plugins 😜
This is becoming true, and explains why the plugin craze has dropped off in recent years. There are the essential ones, but not really any need for new gadgets. And especially as people get more wise to cutting social garbage out of their websites.
Welcome the dawning age of themes development. (In fact, that website should get done first, a-hem.) I think Phil should make the default theme as ugly as he can — some 1995 creature — to encourage theme creation. ;)
Offline
Re: Textile for titles... again, please.
colak wrote #320518:
This is great! So
<txp:smd_wrap_all transform="strip_tags">
is no longer needed?
The number of things for which smd_wrap is useful is shrinking by the day. Love all the amazing stuff we can achieve with native tags now.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline