Calling custom forum field
Posted
#2863
(In Topic #559)
Any assistance with this would be appreciated.
Similar to: https://composr.app/forum/topicview/browse/designing/custom-fields.htm but for forums
Last edit: by Paul Flavel
Posted
{+START,IF,{$IS_ADMIN}}{+START,PARAM_INFO}{+END}{+END}
This will show a table of parameter names and their values. The above code will only display this table for admins (good if working on a live site), so be sure you are logged in as admin. If you working on a test site or need to test against non-admins, remove the first +START block and last +END block and just use {+START,PARAM_INFO}{+END}.
Posted
Even in: https://compo.sr/forum/topicview/browse/designing/custom-fields.htm it didn't show the custom fields.
Posted
Code
{+START,IF_NON_EMPTY,{$CATALOGUE_ENTRY_FOR,forum,{ID}}}{$CATALOGUE_ENTRY_ALL_FIELD_VALUES,{$CATALOGUE_ENTRY_FOR,forum,{ID}}}{+END}
Posted
Nice find! Gotta love the flexibility of Composr Tempcode
Posted
I am doing a template edit, using a custom field and conditions. This will allow custom icons for the forums, and when there is no custom icon it will fallback to the default forum icon.
Once I have this finished I will share in the design forum.
7 guests and 0 members have recently viewed this.