Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-17 18:01:54

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#2 2010-04-17 19:15:40

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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

#3 2010-04-17 19:15:50

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: article custom without using a form

What about:

<txp:article_custom section="blog" limit="1">
<txp:title />
</txp:article_custom>

Offline

#4 2010-04-17 19:17:03

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: article custom without using a form

Victor was quicker!! Always check TextBook first…!!

Offline

#5 2010-04-17 19:20:57

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: article custom without using a form

container mode, perfect! thanks guys

Offline

#6 2010-04-17 19:22:24

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#7 2010-04-17 20:16:16

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#9 2010-04-17 22:23:44

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#10 2010-04-17 23:18:54

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#11 2010-04-18 17:02:37

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

Board footer

Powered by FluxBB