Is there a way to create an @URL for the ListPages module with dropdown boxes? Basically, I want to allow people to select from five drop down boxes that have various lists of tags in them and then click a button that creates a list of all the pages within a category that have those tags.
If you wish to combine the five selected tags… no there is no easy way… the forms module is beeing made, but is not ready
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
@Steven: Steven, you're confusing this with the NewPage module. SkyCaptain seems to be asking about the ListPages module… from what I can tell.
@SkyCaptain: Why not just have five links?
[/page/tags/one Tag1] | [/page/tags/two Tag2] | [/page/tags/three Tag3]
[[module ListPages category="mycategory" tags="one|@URL"]]
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Because there are more than five links. I want to take a combination of the following "meta-tags": role, level, keywords, origin, and type and make a ListPages @URL link based on those combinations. For example, suppose they wanted to find some level 6 soldiers of the cold variety. They would select Level 6, Cold, Soldier and then click a link that would generate a ListPages page, with the @URL of /cold/soldier/level-6 or however it's done.
Well, that is only possible with links. You could use a popup or collapsible block, e.g. "click here for menu". Once they click on that link, a box appears with a bunch of options, e.g.
Of course, that leaves some serious limitations that combo boxes would solve.
The problem is, data forms are for entering data, not for sorting ListPages results. So waiting for data forms to be completely implemented won't help you at all, unfortunately :(
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
but how could you combine the choise? I was not confused with the NewPage module. I saw the complexity in my head so I was brief.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
If these data forms enter data somehow, I can add them to an include page or template that turns the selected data into an @URL for ListPages.
Hmm…. perhaps you could do that. It would be a very long work-around though.
You mean something like this?
[[module ListPages category="%%field{category}%%" tags="%%field{tags}%%" order="%%field{order}%%"]]
* %%title_linked%% (%%tags%% %%_tags%%)
[[/module]]
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Not exactly like that…
Passing arguments via URL
ListPages lets you create variations of a single list using specially constructed links, consisting of the page URL (link) followed by arguments and values. These are mainly useful to invoke new selectors, and change the ordering or display.
You can pass any arguments in the URL by specifying argument="@URL|default-value" as the argument value and then appending "/name/value" to the URL used to invoke the page. If the URL does not contain a value for the argument, the default is used. Arguments that do not have @URL in their value cannot be set via the URL. The default value is optional: if you use only argument="@URL" and do not provide a value on the URL, then the argument behaves as if it was not set.
The two main ways of using arguments-by-URL are (a) to create links to a page explicitly, on another page and (b) to generate links within the ListPages itself, so it will reshow itself with different configurations.
I just can't figure out how to allow the player to select different "links" to apply to the @URL argument.
Edit: http://www.wikidot.com/doc:mailform-module
This has the form stuff I want! Drop down menus and everything… but I don't have a way to get the send button to "send" the user to a page with a specific URL instead of emailing it.
Oh well. I'll wait 'til that's available for finagle some other way.





