Jump to content

AtkTagAttribute: Difference between revisions

From NusaATK
Harrie (talk | contribs)
No edit summary
Harrie (talk | contribs)
Line 7: Line 7:


The name of the attribute, can be anything you like. This name will be displayed to the user, but has no effect on the behaviour of the attribute.
The name of the attribute, can be anything you like. This name will be displayed to the user, but has no effect on the behaviour of the attribute.


* '''Destination''' ''String''
* '''Destination''' ''String''


The name of the destinationnode in the format "module.node", so this is NOT the in-between node but the target node containing our tags.
The name of the destinationnode in the format "module.node", so this is NOT the in-between node but the target node containing our tags.


* '''Destinationfield''' ''String''
* '''Destinationfield''' ''String''


The name of the field in the destinationnode containing the tag names.
The name of the field in the destinationnode containing the tag names.


* '''Link''' ''String''
* '''Link''' ''String''


The name of the intermediate node, linking our owner- and destinationnode together.
The name of the intermediate node, linking our owner- and destinationnode together.


* '''Mode''' ''Flag'' (optional)
* '''Mode''' ''Flag'' (optional)
Line 26: Line 30:
When the tag entered already exists, ....
When the tag entered already exists, ....


TA_ADD (default): ...add the tag.
**TA_ADD (default): ...add the tag.
TA_ERROR: ...trigger an error.
 
TA_IGNORE: ...ignore tag.
**TA_ERROR: ...trigger an error.
 
**TA_IGNORE: ...ignore tag.
 


* '''Flags''' ''Flag'' (optional)
* '''Flags''' ''Flag'' (optional)


The common [atkNode] flags.
The common [atkNode] flags.
= Examples =

Revision as of 14:43, 16 November 2007

Description

The tag attribute allows users to assign tags (tags as in 'keywords' and 'tagcloud') to records of an atkNode. The inputfield is probably familiair: there is a textfield where you can type several tags (comma seperated) and a list of already used keywords above it. In fact, this attribute should be a relation, because in the database the tagAttribute is just like a m2m relation with a different way of entering the values.

Parameters

  • Name String

The name of the attribute, can be anything you like. This name will be displayed to the user, but has no effect on the behaviour of the attribute.


  • Destination String

The name of the destinationnode in the format "module.node", so this is NOT the in-between node but the target node containing our tags.


  • Destinationfield String

The name of the field in the destinationnode containing the tag names.


  • Link String

The name of the intermediate node, linking our owner- and destinationnode together.


  • Mode Flag (optional)

Indicates the behaviour of the atkTagAttribute when the tag entered already exists. Can have one of the following values:

When the tag entered already exists, ....

    • TA_ADD (default): ...add the tag.
    • TA_ERROR: ...trigger an error.
    • TA_IGNORE: ...ignore tag.


  • Flags Flag (optional)

The common [atkNode] flags.

Examples