Intechnic
Users Developers
Home / Forums / In-Portal CMS / FAQ / Displaying Custom Field (Front End) / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

Displaying Custom Field (Front End) (1)


Posted: 01/18/2005 7:40:13 PM

Reply Quoted  


Below posted example of how to print out values of the Link custom fields.

Displaying Link Custom Field:

a. in "inlink/detail.tpl" template

<inp:l_link_field _Field="custom" _Customfield="field_name_textfield" _Default="default value" />


or
b. in "inlink/detail/link.tpl" template

<inp:link _Field="custom" _Customfield="field_name_textfield" _Default="default value" />


Please note, the <inp:link tag should only be used in a template which is called for by a GLOBAL Link tag, such as l_list_links or whatver.

Similar way custom fields of other types can be displayed. Refer to the map below:
Categories - "cat" or "m_category_field"
Users - "user" or "m_user_field"
Articles - "article" or "n_news_field"
Topic - "topic" or "bb_topic_field"

Thank you.

[Edited By Dmitry on 01/18/05 7:43:09 PM]