current
With the attribute current you can preselect a node of the tree or options of a selectbox. By setting the attribute expandcurrent="true" you could expand the tree/menu from this given current item.
Trees: current="nodeid"
The <li> - tag wich has the ID of "current" will become an id="instanceName_active".
<li id="instanceName_active">
<cf_dbtree action="get" type="linked" datasource="datasource name" table="table name" instancename="instance id" contentfield="column name" current="node id">
Selects: current="nodeid,nodeid,.."
Every node in the comma delimited list "current=" will be selected:
<option value="nodeid" selected>
<cf_dbtree datasource="datasource name" table="table name" action="get" type="select" current="nodeid,nodeid,.." instancename="instance id" contentfield="column name">
Checkbox Trees: current="nodeid,nodeid,.."
Every node in the comma delimited list "current=" will be checked:
<input name="instanceName" type="checkbox" value="nodeid" checked />
<cf_dbtree datasource="datasource name" table="table name" action="get" type="checkbox" current="nodeid,nodeid,.." instancename="instance id" contentfield="column name">
Add Comment
Join for a free account, or login if you are already a member.
Search
Attributes A-Z
- A
- B
- C
- D
- E
- F
- I
- J
- L
- M
- N
- P
- Q
- R
- S
- T
- U
