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


...

$<DirectAncestorId>=[112494396]
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:


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

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



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:

projectdoc-steps-macro


Section
titleSetting up the Display Table Macro

Choose a doctype, select and where statement.

Image Modified

Set the Identifier to filtered.

Image Modified


Section
titleTransclude the Filter Code

Use the transclusion macro to transclude

filter code

the HTML code for filtering (get the code) .

Image Modified

Add as replacement the initial where condition of the display table macro:

Image Removed

Transclusion
documentFilter Module
idsHTML-CODE
Display Table
doctypegeneric
selectName, Short Description
render-idfiltered
where


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>


Image Added


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

...