Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 14:27:35

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,601
Bitbucket GitHub

Using output_form with multiple targets - what's the formula?

I would like to use output_form with multiple forms, with bonus points for an efficient (or most efficient) route in.

In this case I have 7 misc forms (named plaintext_location_1of7 […] plaintext_location_7of7). If I chain >1 of them together with a single output_form scaffold and separate commas, it errors out:

<txp:output_form form="plaintext_location_1of7,plaintext_location_2of7" />
Tag error: <txp:output_form form="plaintext_location_1of7,plaintext_location_2of7" /> ->  Textpattern Notice: No form data found for: manifesto-v1.plaintext_location_1of7,plaintext_location_2of7. Issue detected while parsing form html_diagnostics on page default
textpattern/lib/txplib_misc.php:3619 trigger_error()
textpattern/lib/txplib_misc.php:3651 fetch_form()
textpattern/publish/taghandlers.php:446 parse_form()
output_form()
textpattern/vendors/Textpattern/Tag/Registry.php:140 call_user_func()
textpattern/lib/txplib_publish.php:540 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:429 processTags()
textpattern/lib/txplib_misc.php:2300 parse()
textpattern/lib/txplib_publish.php:528 splat()
textpattern/lib/txplib_publish.php:429 processTags()

Both forms exist as plaintext miscellaneous forms, they’re both callable individually, but chaining them with a comma doesn’t work. I can work around with one output_form per form, but I’m wondering if there’s another broadly sane way of approaching this.

Thank you.

Last edited by gaekwad (Today 14:39:37)

Offline

Board footer

Powered by FluxBB