Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
article custom without using a form
sometimes i’d like to make an article_custom snippet, but i think adding forms is adding bulk. with javascript there is a way to write a script inside your browser’s location field, for example.
let’s say i want to make an article custom of my blog section that only shows the title. the form would just be title, when i could easily just write something like
<txp:article_custom section=“blog” shortForm=”<txp:title />” />
is this possible?
Offline
Re: article custom without using a form
Try this (such mode is named as “container mode”
<txp:article_custom section="blog">
<txp:title />
</txp:article_custom>
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: article custom without using a form
What about:
<txp:article_custom section="blog" limit="1">
<txp:title />
</txp:article_custom>
Offline
Re: article custom without using a form
Victor was quicker!! Always check TextBook first…!!
Offline
Re: article custom without using a form
container mode, perfect! thanks guys
Offline
Re: article custom without using a form
jstubbs wrote:
Victor was quicker!! Always check TextBook first…!!
yes, i should’ve checked but in the few years i have been using this i had no idea forms can be embedded right in the page. i will likely not use many forms moving forward :)
Offline
Re: article custom without using a form
Elliott, I almost never use forms anymore except for repeating items like footers/headers or when it is required by a plugin. Your mileage may vary…
Offline
#8 2010-04-17 20:20:24
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: article custom without using a form
mrtunes wrote:
in the few years i have been using this i had no idea forms can be embedded right in the page.
From Textbook:
Genealogy
- Version 4.0.7
- Can be used as a container tag.
That was 28 Nov 2008. Sometimes things change… ;) 4.0.7 was a revolutionary release :)
Offline
Re: article custom without using a form
that explains it Els! btw i consistently can’t figure out quoting here. i think it’s too much coding for a forum. is there any way they can implement something like tiny mce?
Offline
Re: article custom without using a form
mrtunes wrote:
btw i consistently can’t figure out quoting here. i think it’s too much coding for a forum. is there any way they can implement something like tiny mce?
No editor is going to make Textile’s syntax act any different and the syntax isn’t really making friends with editors. You just really can’t quote block elements :-)
Offline
Re: article custom without using a form
jstubbs wrote:
Elliott, I almost never use forms anymore except for repeating items like footers/headers or when it is required by a plugin. Your mileage may vary…
Strange how people work so differently. I use a lot of forms.
I prefer to do this so I can see the logic/flow easily esp. if I’m using lots of if/else statements.
I find it easier to debug.
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Pages: 1