#1 2008-09-06 22:20:01

Gocom
Moderator
omega
Real name: Jukka Svahn
From: Finland
Known languages: EN, FI
Website

rah_output_section_form

Outputs section based form.

More info and downloads


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

#2 2008-10-07 01:15:18

johnstephens
Plugin Author
mu
Real name: John Stephens
From: Harrisonburg, VA
Website

Re: rah_output_section_form

This is a great plugin.

Used in tandem with a conditional statement, you can use it to output a custom sidebar, header, footer, or other content block, with default content on reserve for sections with no dedicated form. Conditional’s are no longer needed with version 0.2.

4.0.6 (requires chh_if_data)

<txp:chh_if_data>
	<txp:rah_output_section_form prefix="my_prefix-" />
	<txp:else />
	...
</txp:chh_if_data>

4.0.7

<txp:variable name="section-info" value='<txp:rah_output_section_form prefix="my_prefix-" />' />
<txp:if_variable name="section-info" value="">
	...
	<txp:else />
	<txp:rah_output_section_form prefix="my_prefix-" />
</txp:if_variable>

The foregoing examples used version 0.1 of the plugin— this functionality is now built in to version 0.2 through the default attribute.

Last edited by johnstephens (2008-10-28 15:18:42)

Offline

 

#3 2008-10-28 12:06:03

douglgm
Member
epsilon
Real name: Doug Roberts
From: Bristol
Website

Re: rah_output_section_form

It would be really nice if there was the ability to select a default form to use if it can’t find a form that matched the prefix eg:

<txp:rah_output_section_form prefix=“side_” default=“common_form” />

Other than that – it’s already massively simplified my site.

Offline

 

#4 2008-10-28 12:32:23

Gocom
Moderator
omega
Real name: Jukka Svahn
From: Finland
Known languages: EN, FI
Website

Re: rah_output_section_form

douglgm wrote:

It would be really nice if there was the ability to select a default form…

Yep.

A new version, 0.2, released. Changelog:

  • Fixed minor doSlash bug (didn’t effect anything).
  • Added default attribute.

More info and downloads


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

#5 2008-10-28 13:46:13

thebombsite
Plugin Author
omega
Real name: Stuart
From: Walsall, England
Known languages: Doh!
Website

Re: rah_output_section_form

Before I throw this at a site Jukka, can I ask, as I am using SVN with the latest tag-parser, will I be able to use a txp tag as a value or part-value?


Stuart – the bombsiteJust Another Theme

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

#6 2008-10-28 14:06:03

douglgm
Member
epsilon
Real name: Doug Roberts
From: Bristol
Website

Re: rah_output_section_form

  • Added default attribute.

Wonderful! Thanks you very much!

Offline

 

#7 2008-10-28 14:21:46

Gocom
Moderator
omega
Real name: Jukka Svahn
From: Finland
Known languages: EN, FI
Website

Re: rah_output_section_form

thebombsite wrote:

Before I throw this at a site Jukka, can I ask, as I am using SVN with the latest tag-parser, will I be able to use a txp tag as a value or part-value?

Yes, if you use single quotes ('), then of course, ‘cause the new TXP parser can parse those tags :)

Last edited by Gocom (2008-10-28 14:22:40)


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

#8 2008-10-28 15:20:00

johnstephens
Plugin Author
mu
Real name: John Stephens
From: Harrisonburg, VA
Website

Re: rah_output_section_form

Awesome. I was using conditionals for this purpose, but this is much more elegant.

Offline

 

#9 2008-10-28 15:54:50

thebombsite
Plugin Author
omega
Real name: Stuart
From: Walsall, England
Known languages: Doh!
Website

Re: rah_output_section_form

Oh good. I’ll give it a whirl then. :)


Stuart – the bombsiteJust Another Theme

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

#10 2008-11-03 16:41:38

douglgm
Member
epsilon
Real name: Doug Roberts
From: Bristol
Website

Re: rah_output_section_form

Any chance of “rah_output_category_form” ?

Or a parameter in the existing plugin to allow the use of category name instead of section?

Offline

 

Powered by PunBB
© Copyright 2002 – 2005 Rickard Andersson