Calling custom forum field
Posted
#2843
(In Topic #514)

Standard member

Any assistance with this would be appreciated.
Similar to: https://compo.sr/forum/topicview/browse/designing/custom-fields.htm but for forums
Last edit: by Paul Flavel
Posted

Standard member

{+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}.
Regards,
Jason
My ocPortal Sites: Holleywood Studio / Tech Fusion Online
My Composr Sites: NEWBotics Labs
Jason
My ocPortal Sites: Holleywood Studio / Tech Fusion Online
My Composr Sites: NEWBotics Labs
Posted

Standard member

Even in: Custom fields - Composr it didn't show the custom fields.
Posted

Standard member

Code
{+START,IF_NON_EMPTY,{$CATALOGUE_ENTRY_FOR,forum,{ID}}}{$CATALOGUE_ENTRY_ALL_FIELD_VALUES,{$CATALOGUE_ENTRY_FOR,forum,{ID}}}{+END}
Posted

Standard member


Nice find! Gotta love the flexibility of Composr Tempcode

Regards,
Jason
My ocPortal Sites: Holleywood Studio / Tech Fusion Online
My Composr Sites: NEWBotics Labs
Jason
My ocPortal Sites: Holleywood Studio / Tech Fusion Online
My Composr Sites: NEWBotics Labs
Posted

Standard member

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.
1 guest and 0 members have just viewed this.