Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-09-17 02:00:35

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: [howto] A list of tags

Thanks Jeff,

that explains it.
Are you saying I should be able to run the script on publish.php to catch any tags that were missing, except for those without attributes?

Offline

#14 2009-09-17 09:46:59

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: [howto] A list of tags

masa wrote:

Are you saying I should be able to run the script on publish.php to catch any tags that were missing, except for those without attributes?

No, article and article_custom are the only ones in publish.php, and the script won’t pick them up there either. As to tags without attributes, there are more than I thought:

taghandlers.php:274:  	function yield()
taghandlers.php:483:  	function link_url()
taghandlers.php:559:  	function link_id()
taghandlers.php:1299:  	function next_title()
taghandlers.php:1306:  	function prev_title()
taghandlers.php:1313:  	function site_name()
taghandlers.php:1320:  	function site_slogan()
taghandlers.php:1445:  	function article_id()
taghandlers.php:1456:  	function article_url_title()
taghandlers.php:1616:  	function comments_count()
taghandlers.php:1888:  	function comment_id()
taghandlers.php:1934:  	function comment_email()
taghandlers.php:1944:  	function comment_web()
taghandlers.php:1971:  	function comment_message()
taghandlers.php:1981:  	function comment_anchor()
taghandlers.php:2056:  	function body()
taghandlers.php:2083:  	function excerpt()
taghandlers.php:2331:  	function keywords()
taghandlers.php:2636:  	function meta_keywords()
taghandlers.php:2645:  	function meta_author()
taghandlers.php:2840:  	function lang()
taghandlers.php:3186:  	function site_url()
taghandlers.php:3206:  	function error_message()
taghandlers.php:3212:  	function error_status()
taghandlers.php:3620:  	function file_download_id()
taghandlers.php:3629:  	function file_download_name()
taghandlers.php:3661:  	function file_download_downloads()
taghandlers.php:3692:  	function hide()
taghandlers.php:3699:  	function rsd()

I believe every function in taghandlers.php is a tag, hence finding these is a simple search.


Code is topiary

Offline

#15 2009-09-17 09:56:21

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: [howto] A list of tags

Great – thanks again!

Offline

#16 2010-03-04 10:00:27

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: [howto] A list of tags

I’m trying to add a Contact Form using the Textpattern Solutions example and they call out the following tags: <txp:article status=“sticky” form=“simple” /> <txp:output_form form=“contact_form” />

Is “form=“simple” some sort of standard call-out? In the book, I could not find an instance where we are told to make a form called “simple”.


Living the Location-Independent Life: www.NuNomad.com

Offline

#17 2010-03-04 10:25:32

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [howto] A list of tags

laptophobo wrote:

Is “form=“simple” some sort of standard call-out? In the book, I could not find an instance where we are told to make a form called “simple”.

There has to be a form called “simple” for this to work. IIRC it should be part of the standard setup of TXP in the default installation. If not, you have to create such a form which should contain at least the tags <txp:title /> and <txp:body />

Offline

#18 2010-03-05 03:34:47

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: [howto] A list of tags

Andres, thank you. Though there was no “simple” form supplied, I created one. Now my contact form views.

Have a fine weekend.


Living the Location-Independent Life: www.NuNomad.com

Offline

Board footer

Powered by FluxBB