dokuwiki-plugin-bureaucracy icon indicating copy to clipboard operation
dokuwiki-plugin-bureaucracy copied to clipboard

Dynamic Drop Downs

Open RMSwope opened this issue 9 years ago • 0 comments

I'm looking for the ability (like pagesuggest), that will populate a dropdown with the titles of pages in a namespace. Page suggest doesn't work because it is using the pageid (which are always lower case and replaces spaces with underscores) and the display pages use data tables with case sensitive filters that are created from the user's entry on a form and have spaces instead of underscores.

Here's an example:

A there is a form that asks for the team name. The team name is: The All Stars, so a display page and a record are created and the the pageid is: the_all_stars for both the record and the display page (in different namespaces). On the display page there is a data table for listing all the players has a filter that is like this:

filter : Team=The All Stars

When adding a player to this team, using the pagesuggest feature I select 'The All Stars (the_all_stars)' from the page suggest entry box and the resulting team name on the players record is: the_all_stars.

Back on the team page, the players table is empty because the filter is 'Team=The All Stars' and the player records all have 'the_all_stars'

I'm trying to automate this as much as possible and can only think of one other way to do this and that would be to use a field alias of the tag type and then have a pagemod action that adds the new team name to the field alias's valid values section, but I have no idea how to do that.

Any ideas?? Let me know if this doesn't make sense.

RMSwope avatar Nov 16 '15 22:11 RMSwope