Loading...
 
Features / Usability

Features / Usability


plugin LIST and multiple FORMAT display categories

posts: 3 United States

Hello! I am new to Tiki and have searched the docs and the forums for an answer, but if I missed the answer please point me to how you found it so I can search better next time.

My issue is that I am trying to use a LIST to display details of wiki pages. I have put in two FORMAT commands that display assigned categories. When the list renders the output shows only the results of one of the formats.

Here is the LIST:

{LIST()}
   {filter deepcategories="1"}
   {filter type="wiki page"}

{OUTPUT(template="table")}
   {column field="name"          label="Name"            mode="raw"}
   {column field="description" label="Description"}
   {column field="craft"            label="Craft Type"        mode="raw"}
   {column field="status"    label="Status"                   mode="raw"}
{OUTPUT}

{FORMAT(name="name")}
   {display name="title" format="objectlink"}
{FORMAT}

{FORMAT(name="description")} 
   {display name="description" default="No description"} 
{FORMAT}

{FORMAT(name="craft")} 
   {display name="categories" format="categorylist" requiredParents="18"  singleList="y" default="Not set"}
{FORMAT}

{FORMAT(name="status")}
   {display name="categories" format="categorylist" requiredParents="6" singleList="y" default="No flight status"}
{FORMAT}

{LIST}

Here is an example of the output:

NameDescriptionCraft TypeStatus
AmazonNo descriptionRocketRocket
CrossfireNo descriptionRocketRocket


To be clear, the "Status" column should not contain the word Rocket.

Thank you!

Nathan

posts: 1817 Catalan Countries

Include all display calls within the same FORMAT subplugin, maybe?

And use something different for your status categoey field to avoid potential interferences with the trackers' own status feature and keyword?

Just some guesses, hth


posts: 1817 Catalan Countries
Ah, forgot it: and welcome to the Tiki Community, Nathan! smile
posts: 3 United States

Thank you for the welcome!

I tried both of those ideas and it seems as though things are even worse than I thought. I removed all content from the page, saved, and then rebuilt the list to have only the name and status columns and I still get the data from the other category. I have cleared both the tiki and browser caches. There must be something I am missing.

Any other ideas to try?