Document Smart Object

N.B. This article refers to the legacy application Publish, used in versions below 8.1.
In modern versions, the Pages application has effectively replaced the need for Publish.
Continue reading if you are using Publish and wish to implement this smart object.

Please note that the image above is a generic representation of the smart object, and may not necessarily reflect the final product on your own intranet.

  Before proceeding, please read the overview of smart objects and components here.

Click here to download the source code. Switch to Source mode in CKeditor and paste in the code. The list can be controlled by modifying certain parameters.

Parameters

  • name: Object name must be unique among several objects within a content page. If only one smart object is used on a content page, the name can remain as it is.

  • folder_id: ID of the folder of which to show the contents (0 = root)

  • columns: Defines which columns to show (comma delimited list). Possible values are: icon_info, title, description, owner, size.

  • show_subfolders: Show subfolders. Possible values are: 1, 0 (1 = yes, 0 = no).

  • show_documents: Show documents. Possible values are: 1, 0 (1 = yes, 0 = no).

  • show_tree: Show the tree. Possible values are: 1, 0 (1 = yes, 0 = no).

  • show_headers: Show column headers of the documents list. Possible values are: 1, 0 (1 = yes, 0 = no).

  • page_size: The number of elements on one page (-1 = show all elements).

  • show_trace_path: Show trace path/breadcrumb trail.

  • sort: Which column to sort the list by, by default. Possible values are date_last_modified, title, owner.

  • sort_dir: Which direction to sort the list by, by default. Possible values are: desc, asc.

  • link_new_window: Opens link in new window. Possible values are: 1, 0 (1 = yes, 0 = no).

  • width: Frame width in pixels.

  • height: Frame height in pixels.

  • scrolling: Frame scrolling. Possible values are: auto, yes, no.

  • css_main_table="table_docs": This is the default CSS style used for the table structure. Do not change unless custom styling is being used.

  • css_paging_table="table_options": This is the default CSS style used for the table options. Do not change unless custom styling is being used.

Last modified on 7 June 2019 by Michael Christian
Created on 24 February 2013 by deleted user

Was this helpful?  

1 Like
Share

[Discuss]

photo
{{ comment.user.is_me ? cc.translations.my_comment : comment.user.name }} {{ comment.user.is_me ? cc.translations.my_comment : comment.user.name }} {{comment.user.name}} [wrote]...
[Reply] [Like] [Unlike]  {{comment.like_count}} [person] [people] [liked this] [Edit] [Delete] {{ comment.timestamp.date_str }}

[Loading...]