Test /
SelectPageSpaced
Problem
When you populate an input select with page link values it only works if you use a non-spaced link aliases. If you try to use spacing, generated by the page variables $Namespaced
or $Titlespaced
the spacing breaks the displayed input values (by causing the closing link markup ]]
to display)
Solved
If the returned value will have spaces then you need to enclose in quotations the underlying value argument (variable) even if that entered value does not, itself, have any spaces.
Sample input select boxes
Select Name (ok)
Select Name Spaced (broken)
Select Name Spaced (fixed with quotes)
Select Title Spaced (broken)
Select Title Spaced (fixed with quotes)
Templates used for test
[[#selectname]] (:template each:)(:input select pagelink [[{=$FullName}|{=$Name}]] "{=$Titlespaced}":) (:template last:)(:input submit post Ok:) [[#selectnameend]] [[#selectnamespaced]] (:template each:)(:input select pagelink [[{=$FullName}|{=$Namespaced}]] "{=$Titlespaced}":) (:template last:)(:input submit post Ok:) [[#selectnamespacedend]] [[#selectnamespacedfixed]] (:template each:)(:input select pagelink "[[{=$FullName}|{=$Namespaced}]]" "{=$Titlespaced}":) (:template last:)(:input submit post Ok:) [[#selectnamespacedfixedend]] [[#selecttitlespaced]] (:template each:)(:input select pagelink [[{=$FullName}|{=$Titlespaced}]] "{=$Titlespaced}":) (:template last:)(:input submit post Ok:) [[#selecttitlespacedend]] [[#selecttitlespacedfixed]] (:template each:)(:input select pagelink "[[{=$FullName}|{=$Titlespaced}]]" "{=$Titlespaced}":) (:template last:)(:input submit post Ok:) [[#selecttitlespacedfixedend]]