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


...

tableid=filtered-other
datalistselects=
datalistwhere=

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.

tableid=

Section
titleTry It Yourself

Start to try it out:


projectdoc-

transclusion

html-span-macro

documentFilter Module
ids11
span<span id="span-wheres-filtered-mytable


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]"}]}

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

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

Transclusion
documentFilter Module
idsHTML-CODE



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) .


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>




...