b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Developer Reference
  3. Website Skins/Themes
  4. Skin Tags / API
  5. Item Tags
  6. Template Tag: Item Custom Fields

Template Tag: Item Custom Fields

Displays all Custom Fields of the Item as HTML code.

Examples

Quick Template

[Item:custom_fields|fields_source=all]

PHP Template

$Item->custom_fields( array(
    'fields'        => 'custom_field_1,custom_field_2,custom_field_3',
    'fields_source' => 'include ',
  ) );

Parameters

Param

Default

Usage

fields

''

Empty string to display ALL fields, OR fields names separated by a comma to show/hide only the requested fields in the order you want

fields_source

include

Possible values: all - All item’s custom fields; exclude - All except fields listed in the param fields; include - Only fields listed in the param fields

custom_fields_table_start

<div class="evo_content_block"><table class="item_custom_fields">

HTML for the start of the custom fields table

custom_fields_row_start

<tr$row_attrs$>

HTML for the start of custom fields row

custom_fields_topleft_cell

<td style="border:none"></td>

custom_fields_col_header_item

<th class="$col_class$ center" width="$col_width$"$col_attrs$>$item_link$$item_status$</th>

custom_fields_row_header_field

<th class="$header_cell_class$">$field_title$$field_description_icon$</th>

custom_fields_item_status_template

<div><div class="evo_status evo_status__$status$ badge" data-toggle="tooltip" data-placement="top" title="$tooltip_title$">$status_title$</div></div>

custom_fields_description_icon_class

grey

CSS class for custom field description icon

custom_fields_value_default

<td class="$data_cell_class$"$data_cell_attrs$>$field_value$</td>

custom_fields_value_difference_highlight

<td class="$data_cell_class$ bg-warning"$data_cell_attrs$>$field_value$</td>

custom_fields_value_green

<td class="$data_cell_class$ bg-success"$data_cell_attrs$>$field_value$</td>

custom_fields_value_red

<td class="$data_cell_class$ bg-danger"$data_cell_attrs$>$field_value$</td>

custom_fields_edit_link_cell

<td class="center"$edit_link_attrs$>$edit_link$</td>

custom_fields_edit_link_class

btn btn-xs btn-default

CSS class for custom field edit link

custom_fields_row_end

</tr>

custom_fields_table_end

</table></div>

HTML for end of custom fields table

custom_fields_separator_row_header_field

<th class="$header_cell_class$" colspan="$cols_count$">$field_title$$field_description_icon$</th>

Return value

This tag displays content only, it does not have a return value.

Tags: 7.1.2
Created by winskie • Last edit by fplanque on 2020-08-07 22:11 • •

No feedback yet

On this page

  • Examples
  • Quick Template
  • PHP Template
  • Parameters
  • Return value

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
    • Website Skins/Themes
      • Skin Development Primer
      • Loading additional resources into a skin
      • Where are the skin files?
      • CSS Guidelines
      • Targeted CSS Selectors
      • Introducing evoSkins
      • Modifying evoSkins
      • Creating evoSkins
      • Skin Tags / API
        • Template functions
        • Template Tags
        • Tag Plugins Call By Code
        • Tag User Subs Link
        • Tag User Register Link
        • Tag User Profile Link
        • Tag User Logout Link
        • Tag User Login Link
        • Tag Skin Get URL
        • Tag Skin Get Path
        • Tag Skin Container
        • Tag Powered By
        • Tag Is Logged In
        • Include Disp
        • Tag Display If Empty
        • Tag Comment Allowed Tags
        • Tag Blog Tagline
        • Tag Blog Name
        • Tag Blog Longdesc
        • Tag Blog Home Link
        • Tag Blog Footer
        • Tag Blog Contact Link
        • app_version();
        • Tag Request Title
        • Include Item Content
        • User::get_identity_link()
        • Item Tags
          • Anchor -
          • Author +
          • Categories +
          • Category Name+
          • Content Teaser +
          • Contents Last Updated +
          • Creation Time +
          • Custom Fields +
          • Edit Link +
          • Excerpt +
          • Extra Status -
          • Feedback Feed Link -
          • Feedback Link +
          • Files +
          • Flag +
          • Footer +
          • Has Feedback Raw -
          • History Link +
          • ID +
          • Image URL +
          • Images +
          • Intro-Tag
          • Lang Raw -
          • Locale Flag +
          • Locale Raw -
          • Main Category -
          • Mod Time -
          • More Link +
          • Msgform Link +
          • Msgform Link Assigned !
          • Page Links +
          • Permanent Link +
          • Permanent URL -
          • Priority -
          • Propose Change Link +
          • Publish Link !
          • Read Status +
          • Tag Item Can Comment
          • Tag Item Can Rate
          • Tag Item Can Recieve Pings
          • Tag Item Deadline Date
          • Tag Item Deadline Time
          • Tag Item Deprecate Link
          • Tag Item Feedback Moderation
          • Tag Item Language
          • Tag Item Locale Temp Switch
          • Tags +
          • Template Tag: Item Background Image CSS
          • Template Tag: Item Content Extension
          • Template Tag: Item Custom
          • Template Tag: Item Issue Date
          • Template Tag: Item Issue Time
          • Template Tag: Item Last Edit User
          • Template Tag: Item Last Touched
          • Template Tag: Item Mod Date
          • Template Tag: Item Refresh Contents Last Updated Link
          • Title +
          • Trackback RDF Raw -
          • Trackback URL Raw -
          • Type Raw -
          • Visibility Status +
          • Visibility Status Raw -
          • Wordcount Raw -
        • Category Tags
        • User Tags
        • Other Tags
      • Styling widgets
      • Skin Quality Control
      • Using HTML 5 tags
      • Using Custom Item Templates
      • Using bootstrap classes in footers
      • Using Grunt
      • Dev Menu
      • How to add a Google Font (WebFont) ?
      • Custom Fields in a Template
      • Site Skins
    • Email Skins/Themes
    • b2evolution Files
    • Website Integration
    • Plugins
    • Debugging
    • Technical Reference
    • Hacks
    • Credits
    • Development
    • How to... (Customize)
    • Scheduled Tasks Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Complete website engine

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque