Translations of this page:

Documents List

This code below can be embeded on the publish template or VI files

<component class="DocsSmartComponent"
name="docs_list_1"
use_iframe="0"
width="300"
height="400"
scrolling = "no"
columns = "icon_info,title"
folder_id="0"
show_subfolders="1"
show_documents="1"
show_tree="0"
show_headers="0"
link_new_window="1"
page_size="5"
show_trace_path="0"
sort="date_last_modified"
sort_dir="desc"
css_main_table="table_docs"
css_paging_table="table_options"
css_trace_path="plain_text"
>

Parameters description

1. name Object name, must be unique among several objects within a page, and is strongly recommended to be unique in the whole system, because the variables of PHP session are distinguished on the basis of object name.

2. width Frame width counted in pixels.

3. height Frame height counted in pixels.

4. scrolling Frame scrolling. Possible values – auto, yes, no.

5. columns Defines which columns to show, comma delimited list: icon_info,title,description,owner,size.

6. folder_id ID of the folder to show the content of (0 - root)

7. show_subfolder Show subfolders or not (1/0)

8. show_documents Показывать или нет документы (1/0)

9. show_tree Show the tree or not (1/0)

10. show_headers Show column headers of the documents list or not. (1/0)

11. link_new_window Open links in new window. (1/0)

12. page_size The number of elements on one page. –1 means to show all the elements.

13. show_trace_path show trace path or not

14. sort Column to sort by default (date_last_modified,title,owner).

15. sort_dir Default sorting type (desc,asc).

16. CSS styles for documents list main table, page numbers table and trace path. css_main_table=”table_docs”; css_paging_table=”table_options”; css_trace_path=”plain_text”; css_file=”/interface_default/common/style.css”

17. use_iframe Is used only for templater component. If set to 1, templater generates JS-code (given above), which creates iframe and loads documents list in it. If set to 0 - templater produces html-code of documents list framed by DIV.

Related topics

 
components/built-in/documents_list.txt · Last modified: 07/06/2011 10:49 by admin
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki