settags command
nav_first.pngFirst: thread:131
HTML Block
Edited: 11 Oct 2012 12:06 by: GoVegan
Comments: 0
Tags:
nav_prev.pngPrevious: thread:250
Usability proposals
Edited: 17 Mar 2010 12:02 by: leiger
Comments: 1
Tags:
Last: thread:112
Image Module
Edited: 12 Nov 2009 12:22 by: pieterh
Comments: 0
Tags:
nav_last.png
Next: thread:327
Members Module Improvements
Edited: 10 Mar 2010 00:45 by: leiger
Comments: 0
Tags:
nav_next.png

pieterhpieterh wrote on 02 Feb 2010 11:55

This is a design sketch for the settag command, which automates the task of setting tags on pages. It is analogous to iftag but shows a button or text link that the user can click. The concept was originally suggested by James KanjoJames Kanjo in his design

The tag button automates a very common scenario:

  1. Navigate to a page
  2. Click on the 'tags' action
  3. Remove unwanted old tags
  4. Add wanted new tags
  5. Save resulting tags
  6. Enter comment text
  7. Save comments
  8. Return to parent page

It would become:

  1. Click on tag button
  2. Enter comment text
  3. Save comment

Syntax:

[[settags arguments...]]

Arguments:

  • button="text string" — specifies the text for the button, which is the 'tags' argument by default.
  • class="css-class" — specifies CSS class for the div element containing the button, allowing custom styling
  • iftags="taglist" — only shows if this tag condition is true
  • tags="taglist" — specify new tags to set, by default is empty
  • remove="taglist" — specify tags to remove, where '*' is a wildcard. So "_*" means remove all hidden tags.
  • comment="yes|no" — if 'yes', Wikidot asks for a page comment and only retags if the comment is saved, by default is "no"
  • source="pagename" — if specified, this page will be tagged, otherwise it is the current page
  • target="pagename" — if specified, the user is moved to this page after tagging is completed

The iftags argument works exactly as the [[iftags]] command.

Example:

[[settags button="Close" tags="_closed" iftags="-_closed" source="%%fullname%%" target="product:_start" comment="yes" remove="_*"]]

Settags with custom styling:

[settags class="my-settags-class"]]

If you use custom styling, remember to define the class in your custom CSS. The default class for settags is ".settags" and you can style this using custom CSS like this:

.settags {
    background-image: url(yourimage.png)
}

Start a new sub-thread

Consistency of style on buttons By Gabrys 2 Comments 02 Feb 2010 15:57
Name of the settag button (closed) By pieterh 1 Comments 02 Feb 2010 11:56

We discourage direct comments on this thread: to discuss it, please start a sub-thread.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License