內容簡介
一款可以輕鬆上傳文件、建立自定義分類並儲存檔案、顯示自訂的檔案清單、產生文字或可自訂按鈕的外掛程式。此外掛還允許在您的選單項目中建立 shortcode!
Shortcode 選項:
[dtc-doc-documents-list] - 允許顯示目前上傳的檔案完全動態且可自訂的清單。
參數名稱:orderby
參數描述:指定按哪個屬性排序。大小寫不敏感。
參數選項:id、title、filetype、created、category、description、status
參數預設值:id
參數範例 1:[dtc-doc-documents-list orderby=”category”]
參數範例 2:[dtc-doc-documents-list orderby=”category,created”]
參數名稱:sortorder
參數描述:指定清單的排序方向。asc 表示升序,desc 表示降序。大小寫不敏感。
參數選項:asc、desc
參數預設值:asc
參數範例:[dtc-doc-documents-list sortorder=”desc”]
參數名稱:hidedisableddocs
參數描述:指定是否要列出已停用的文件。true 表示隱藏已停用的文件,false 表示顯示它們。大小寫不敏感。
參數選項:true、false
參數預設值:true
參數範例:[dtc-doc-documents-list hidedisableddocs=”false”]
參數名稱:hidedisabledcats
參數描述:指定是否要列出已停用的分類所歸類的文件。true 表示隱藏已停用的分類的文件,false 表示顯示它們。大小寫不敏感。
參數選項:true、false
參數預設值:true
參數範例:[dtc-doc-documents-list hidedisabledcats=”false”]
參數名稱:category
參數描述:指定要在此清單中顯示哪些分類。大小寫不敏感。
參數選項:all、Uncategorized、所有用戶建立的分類
參數預設值:all
參數範例 1:[dtc-doc-documents-list category=”Forms”]
參數範例 2:[dtc-doc-documents-list category=”Forms,Meeting Agenda”]
參數名稱:itemsatatime
參數描述:保留高度的項目數。此數乘以 50px(一個條目的高度)後設為清單視窗的最大高度。
參數選項:所有 X > 0
參數預設值:10
參數範例:[dtc-doc-documents-list itemsatatime=”10”]
[dtc-doc-recent-button] - 顯示一個名為「Latest」並後面跟著選定分類的按鈕,或者根據輸入顯示「All」。如果未在給定的分類下找到文件,則顯示錯誤。生成帶有此文本的格式化按鈕,該按鈕然後鏈接到給定分類的最新文檔。
參數名稱:category
參數描述:指定要使用最新文件的分類。大小寫不敏感。
參數選項:all、Uncategorized、所有用戶建立的分類
參數預設值:all
參數範例 1:[dtc-doc-recent-button category=”Forms”]
參數名稱:cssstyles
參數描述:設置按鈕 div 和文本的 CSS 樣式。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
A plugin that allows you to easily upload files, create custom categories to store them in, display a customizable file list, generate text or a customizable button that
automatically links to the most recent file of all of them or of a specific category. This plugin also allows for the creation of shortcode in your Menu items!
Shortcode Options:
[dtc-doc-documents-list] – Allows the displaying of a fully dynamic and customizable list of currently uploaded files.
Parameter Name: orderby
Parameter Desc: Specifies the attribute to order the list by. Input is case-insensitive.
Parameter Options: id, title, filetype, created, category, description, status
Parameter Default: id
Parameter Example 1: [dtc-doc-documents-list orderby=”category”]
Parameter Example 2: [dtc-doc-documents-list orderby=”category,created”]
Parameter Name: sortorder
Parameter Desc: Specifies the direction to sort the list in. That being ‘asc’ for ascending order or ‘desc’ for descending order. Input is case-insensitive.
Parameter Options: asc, desc
Parameter Default: asc
Parameter Example: [dtc-doc-documents-list sortorder=”desc”]
Parameter Name: hidedisableddocs
Parameter Desc: Specifies whether to list disabled documents or not. ‘true’ hides disabled documents, ‘false’ shows them. Input is case-insensitive.
Parameter Options: true, false
Parameter Default: true
Parameter Example: [dtc-doc-documents-list hidedisableddocs=”false”]
Parameter Name: hidedisabledcats
Parameter Desc: Specifies whether to list documents categorized under disabled categories or not. ‘true’ hides documents that are part of disabled categories, ‘false’ shows them. Input is case-insensitive.
Parameter Options: true, false
Parameter Default: true
Parameter Example: [dtc-doc-documents-list hidedisabledcats=”false”]
Parameter Name: category
Parameter Desc: Specifies which categories to display in this list. Input is case-insensitive.
Parameter Options: all, Uncategorized, ALL USER CREATED CATEGORIES
Parameter Default: all
Parameter Example 1: [dtc-doc-documents-list category=”Forms”]
Parameter Example 2: [dtc-doc-documents-list category=”Forms,Meeting Agenda”]
Parameter Name: itemsatatime
Parameter Desc: The number of items to leave height for. This number is multiplied by 50px (the height of one entry) and set as the maximum height of the list window.
Parameter Options: ALL X > 0
Parameter Default: 10
Parameter Example: [dtc-doc-documents-list itemsatatime=”10”]
[dtc-doc-recent-button] – Displays a button with the word ‘Latest’ followed by the name of the selected category, or ‘All’ depending on the input. Or, displays an error if no documents are found under the given category. Generates a formatted button with this text that then links to the most recent document of the given category.
Parameter Name: category
Parameter Desc: Specifies the category to use the most recent document from. Input is case-insensitive.
Parameter Options: all, Uncategorized, ALL USER CREATED CATEGORIES
Parameter Default: all
Parameter Example 1: [dtc-doc-recent-button category=”Forms”]
Parameter Name: cssstyles
Parameter Desc: Sets the CSS style of the button div and text.
Parameter Options: Any valid CSS style code.
Parameter Default: BLANK
Parameter Example: [dtc-doc-recent-button cssstyles=”background-color=’#ff0000′”]
Parameter Name: cssclasses
Parameter Desc: Sets the CSS class of the button div.
Parameter Options: Any valid CSS classes.
Parameter Default: BLANK
Parameter Example: [dtc-doc-recent-button cssclasses=”customexampleclass”]
Parameter Name: hidewhenempty
Parameter Desc: Determines whether the error message indicating that no documents were found should show or not.
Parameter Options: true, false
Parameter Default: false
Parameter Example: [dtc-doc-recent-button hidewhenempty=”true”]
[dtc-doc-recent-redirect] – Displays the selected category name, and error, or ‘All’ depending on the input. Links this text to the most recent document from the specified category, or all categories if category is set to ‘all’.
Parameter Name: category
Parameter Desc: Specifies the category to use the most recent document from. Input is case-insensitive.
Parameter Options: all, Uncategorized, ALL USER SPECIFIED CATEGORIES
Parameter Default: all
Parameter Example 1: [dtc-doc-recent-redirect category=”Forms”]
Parameter Name: cssclasses
Parameter Desc: Allows the application of CSS classes to this shortcode element.
Parameter Options: ANY VALID CUSTOM OR PRE-BUILT CSS CLASS
Parameter Default: BLANK
Parameter Example 1: [dtc-doc-recent-redirect cssclasses=”cssclass1”]
Parameter Example 2: [dtc-doc-recent-redirect cssclasses=”cssclass1 cssclass2 cssclass3”]
Parameter Name: cssstyles
Parameter Desc: Sets the CSS style of the redirect text.
Parameter Options: Any valid CSS style code.
Parameter Default: BLANK
Parameter Example: [dtc-doc-recent-redirect cssstyles=”background-color=’#ff0000′”]
Parameter Name: displaytext
Parameter Desc: Allows the user to specify what text should be displayed for the redirect text. This defaults to the category name or an error.
Parameter Options: ANY VALID STRING
Parameter Default: BLANK
Parameter Example: [dtc-doc-recent-redirect displaytext=”testing one two three!”]
Parameter Name: hidewhenempty
Parameter Desc: Determines whether the error message indicating that no documents were found should show or not.
Parameter Options: true, false
Parameter Default: false
Parameter Example: [dtc-doc-recent-redirect hidewhenempty=”true”]
[dtc-doc-auto-redirect] – Automatically redirects visitors to the most recent document from the specified category, or all categories if category is set to ‘all’.
Parameter Name: category
Parameter Desc: Specifies the category to use the most recent document from. Input is case-insensitive.
Parameter Options: all, Uncategorized, ALL USER SPECIFIED CATEGORIES
Parameter Default: all
Parameter Example 1: [dtc-doc-auto-redirect category=”Forms”]
Parameter Name: seconds
Parameter Desc: The time in seconds to wait before redirecting the user.
Parameter Options: Any valid, positive integer, or zero.
Parameter Default: 5
Parameter Example: [dtc-doc-auto-redirect seconds=”0”]
Plugin Features
Upload any documents like pdf, word, jpg, png, etc.
Display a dynamic and custom file list.
Add / Edit custom categories for documents.
Add a button or href text that automatically points to the latest file in a specified category or all categories.
