[pmwiki-users] Problem with 2+ inline "input select"s
Patrick R. Michaud
pmichaud at pobox.com
Wed Jan 24 15:42:49 CST 2007
On Wed, Jan 24, 2007 at 04:37:57PM +0100, Jiri Hladůvka / OBUTEX wrote:
> There is a simmilar problem - a blank line or somesthing else between
> two options creates 2 selectboxes though the selectbox-name is the same.
> It was reported several days ago but with no response - see
> http://www.pmwiki.org/wiki/Test/InputSelectJiri
>
> (:input select name=abc value=1:)
>
> (:input select name=abc value=2:)
The problem with the (:input select:) markups on that page is that
there's an anchor in between the (:input:) markups (coming from
the (:include:) directive). The markup on that page reads:
(:if true:)
(:include {$Group}.{$Name} #a1#a1e:)
(:if:)
(:input select name="A" 1 A1:)
(:input select name="A" 2 A2:)
(:input select name="A" 3 A3:)
(:if true:)
(:include {$Group}.{$Name} #a2#a2e:)
(:if:)
After PmWiki processes the (:if:) directives, we have
(:include {$Group}.{$Name} #a1#a1e:)
(:input select name="A" 1 A1:)
(:input select name="A" 2 A2:)
(:input select name="A" 3 A3:)
(:include {$Group}.{$Name} #a2#a2e:)
Then, the (:include:) statements are processed, resulting in
[[#a1]]
(:input select name="A" 4 insertedA4:)
(:input select name="A" 1 A1:)
(:input select name="A" 2 A2:)
(:input select name="A" 3 A3:)
[[#a2]]
(:input select name="A" 5 insertedA5:)
Because of the [[#a2]] anchor (coming from the included text), the
(:input select:) gets displayed as two separate input controls.
I'm not classifying this as a bug just yet -- I'm not sure that
(:input select:) really needs to be able to work across (:includes:)
like this.
Pm
More information about the pmwiki-users
mailing list