url, url_type, url_param, url_suffix
If you plan to create a tree with links or a jumpmenu, it is needed to choose wich type of url you want to create. There are two different values for the url_type:
- url_type="db"
- url_type="param"
url_type="db"
In this case you will take the whole link/url for each node from a given table column. This table column is represented by the attribute url.
<cf_dbtree datasource="datasource name" table="table name" action="get" type="linked" instancename="id of the list" contentfield="column name" url_type="db" url="column name">
url_type="param"
In this case you must define an url and indicate with the attribute url_param wich table column to use as the url parameter behind your url.
<cf_dbtree datasource="datasource name" table="table name" action="get" type="linked" instancename="id of the list" contentfield="column name" url_type="param" url="sample.cfm?id=" url_param="id">
url_suffix
The url_suffix was made to give you the possibility to add a suffix at the end of each link. This is useful when you want to create search engine friendly urls with DBTree. In that case, a url handler script will be required.
<cf_dbtree datasource="datasource name" table="table name" action="get" type="linked" instancename="id of the list" contentfield="column name" url_type="param" url="http://www.megalingo.com/gotopage.cfm/id/" url_param="id" url_suffix=".cfm">
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
