Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Document Properties Marker
overridefalse


Short DescriptionIn this example a display table macro is used and filtered using a transclusion and the remote controlled feature.
Doctypetopichide
NameDisplay Table Example Using Filters
Short Name
Parent
Parent Property
property-nameName
hide
Audience
Name List
doctyperole
render-no-hits-as-blanktrue
propertyAudience
empty-as-nonetrue

Subject
Name List
doctypesubject
propertySubject

Categories
Name List
doctypecategory
propertyCategories

Tags
Tag List
propertyTags

Flagshide
Iteration

Iteration
valuefocused


Type
Name List
doctypetopic-type
render-no-hits-as-blanktrue
propertyType

Level of Experience
Name List
doctypeexperience-level
render-no-hits-as-blanktrue
propertyLevel of Experience

Expected Duration
Sponsors
Name List
doctypestakeholder
render-no-hits-as-blanktrue
propertySponsors

Sort Keyhide



Section
titleDescription

Using the Display Table Macro by setting the Identifier to filtered in conjunction with the Transclusion Macros Replacement feature and the Remote Control (Feature) for filtering.

Section
titleTry It Yourself

Start to try it out:


Transclusion
documentFilter Module
idsHTML-CODE
tableid=filtered
datalists={"selectsfiltered": [{"name":"Name only","value":"Name"},{"name":"With Iteration","value":"Name, Short Description, Iteration"}],"wheresfiltered": [{"name":"Facade","value":"$<Iteration>=[Facade]"},{"name":"Filled","value":"$<Iteration>=[Filled]"}]}



Display Table
doctypegeneric
selectName, Short Description, Iteration
render-idfiltered
where$<DirectAncestorId>=[112494396]


Transclusion
documentFilter Module
idsHTML-CODE
tableid=other
datalistselects=
datalistwhere=

Display Table
doctypegeneric
selectName, Short Description, Iteration
render-idother
where$<DirectAncestorId>=[112494396]


Section
titleConfigure a Filter Yourself

Now you can follow the steps and use a filter for your own:

Steps


Section
titleSetting up the Display Table Macro

Choose a doctype, select and where statement.

Set the Identifier to filtered.


Section
titleTransclude the Filter Code

Use the transclusion macro to transclude the HTML code for filtering (get the code) .


Provide the options:

datalistselects=<datalist id="selects"><select><option value="Name">Name only</option><option value="Name, Short Description, Iteration">With Iteration</option></select></datalist>
datalistwhere=<datalist id="wheres"><select><option value="$<Iteration>=[Facade]">Facade</option><option value="$<Iteration>=[Filled]">Filled</option><option value="$<Iteration>=[Finished]">Finished</option></select></datalist>




As alternative empty options can be used if the dropdown functionality is not needed:

datalistselects=<datalist id="selects"></datalist>
datalistwhere=<datalist id="wheres"></datalist>





Section
titleSummary


Section
titlePrerequisites


Section
titleSubordinate Topics
Display Table
doctypetopic
render-no-hits-as-blanktrue
render-modedefinition
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name


Section
required-permissionswrite-access
titleNotes


Section
titleReferences


Tour
render-no-hits-as-blanktrue
render-as-definition-listtrue
marker-column-property-nameTitle
replace-title-with-nametrue


TitleShort Description





Section
titleResources


Tour
render-no-hits-as-blanktrue
render-as-definition-listtrue
marker-column-property-nameTitle
replace-title-with-nametrue


TitleShort Description