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


...

HTML-CODE

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

At first you can Start to try it here yourselfout:


projectdoc-

transclusion

html-span-macro

documentFilter Module
span<span id="span-wheres-filtered-mytable" data-wheres-filtered-mytable='{"chrome1":"Chrome1","firefox1":"Firefox1"}'></span>

ids

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



projectdoc-

transclusion-macro
documentFilter Module
idsHTML-CODE

projectdoc-display-table
doctypegeneric
selectName, Short Description, Iteration
render-idfiltered-other
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) .


Add as replacement the initial where condition of the display table macro and provide Provide the options:initialwhere=$<DirectAncestorId>=[112494396]

datalistselects=<datalist id="selects"><option><select><option value="Name">Name only</option><option value="Name, Short Description, Iteration">With Iteration</option></select></datalist>

datalistwhere=<datalist id="wheres"><option><select><option value="$<Iteration>=[Facade]">Facade</option><option value="$<Iteration>=[Filled]">Filled</option><option value="$<Iteration>=[Finished]">Finished</option></select></datalist>
Image Removed


Image Added


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

initialwhere=$<DirectAncestorId>=[112494396]

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




...

Section
titleResources


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


TitleShort Description

...