Board Display Template HTML Tags
The View Listings page for Job, Announcement or Classified Ad Boards can be customized by customizing the Listing Summary HTML Template and the Listing Page HTML Template. These HTML templates are located under the board's Display Template tab. Note that only fields used on the form template can be applied.
The following are tags supported in the HTML templates:
- [uid] - Account ID
- [nam] - Account name
- [ctc] - Contact name
- [biz] - Organization name
- [pos] - Position
- [adr] - Address (formatted as 2 lines)
- [phn] - Phone
- [cel] - Mobile
- [fax] - Fax
- [web] - Website
- [sky] - Skype
- [cnm] - Tagline
- [pfl] - Profile description
- [nte] - Admin note
- [ttl] - Listing title
- [dtl] - Listing description
- [ico] - Image (icon)
- [lgo] - Image (small)
- [lgx] - Image (large)
- [erl] - Listing/application URL
- [lrq] - Listing requirements
- [lsr] - Listing price/salary range
- [lsb] - Listing benefits
- [lty] - Listing type
- [lwl] - Listing location type
- [lwa] - Listing address (formatted as 2 lines)
- [x??] - Custom field - use the 2-letter identifier (in lower case) after the "x". For example for "LF", the shortcode would be [xlf]
- [_dp] - Date listing was posted [_de] - Days since listing was posted [adr.ads] - Address - second line (city/state/zip/country) only
- [_ms] - Embeds a "Send Message" link that allows users to send a message to listing owner using our messaging system (similar to directory). Listing Page template only.
- [lwa.ads] - Listing address - second line (city/state/zip/country) only
- [x??.ads] - Custom address fields - second line (city/state/zip/country) only
You can also insert HTML based on whether a field is set or empty using conditional tags:
- [xxx?This HTML or text will be inserted if field xxx is set]
- [xxx!This HTML or text will be inserted if field xxx is not set or empty]
You
cannot use the closing "]" bracket within the HTML or text you want to
appear, so you would have to escape it as "]".
You cannot nest tags inside the conditional tags.
Special function tags cannot be used for conditional tags.