[pmwiki-devel] markup advice needed: (:select:) tag?
Kathryn Andersen
kat_lists at katspace.homelinux.org
Fri Jun 8 17:43:39 CDT 2007
On Fri, Jun 08, 2007 at 05:16:35PM -0500, Ben Stallings wrote:
> Hi, folks. I'm in the process of adding a function to the DataQuery
> recipe that will generate select (drop-down menu) inputs based on a
> previously configured database query, and I could use some advice about
> the markup to avoid conflicts with other recipes.
> So, my question: Is (:select:) too general a tag name for this specific
> function? If so, what would you suggest instead? Thanks in advance for
> the feedback. --Ben S.
How about (:dataquery select name=eventid label=eventname:)?
The advantages of this are:
- guaranteed not to conflict
- expandable to other custom markup you might want to add in future,
just use a different "command" rather than "select"
- only one Markup needed -- match on (:dataquery command args:) and use
ParseArgs to parse the args.
Kathryn Andersen
--
_--_|\ | Kathryn Andersen <http://www.katspace.com>
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe
More information about the pmwiki-devel
mailing list