Article

JUG Vlaanderen

Custom Fields

Custom Field displayed directly ("->label" and "->value" directly taken from the database, ie "rawvalue")

:

:

:

Custom Field rendered through Joomla (without "->value" so it renders the Joomla way)

URL Custom Field

URL Custom Field

YouTube (Tassos) CF it renders as a video but it seems it does not take into account the Options defined in the CF

Custom Field displayed via a Partial using rawvalue (simple URL CF)

url transformed into a button via a Partial in embeds folder

Custom Field displayed via a Partial using rawvalue (simple URL CF)

Custom Field displayed via a Partial which fetches data from external site via json

Data coming from social.brussels

id:

legalStatus->labelFr:

address->streetNl:

Only visible for hasRole or hasGroup (but crashes for the moment the way I implement it

before test after

A var_dump of all Custom Fields

object(ExtJoomlaModelEntityFields)#2502 (2) {
  ["open-street-map"]=>
  array(10) {
    ["id"]=>
    string(1) "9"
    ["name"]=>
    string(15) "open-street-map"
    ["title"]=>
    string(15) "Open Street Map"
    ["type"]=>
    string(6) "acfosm"
    ["label"]=>
    string(15) "Open Street Map"
    ["default"]=>
    string(0) ""
    ["value"]=>
    string(65) "{"coordinates":"51.20400535000002,4.44098567056452","tooltip":""}"
    ["published"]=>
    string(1) "1"
    ["required"]=>
    string(1) "0"
    ["params"]=>
    array(8) {
      ["width"]=>
      string(4) "100%"
      ["height"]=>
      string(5) "450px"
      ["zoom"]=>
      string(2) "12"
      ["marker_image"]=>
      string(38) "media/plg_fields_acfosm/img/marker.png"
      ["show_tooltip"]=>
      string(1) "1"
      ["scale"]=>
      string(1) "0"
      ["show_address_input"]=>
      string(1) "1"
      ["default_coords"]=>
      string(35) "50.84671435000001,4.352514119250888"
    }
  }
  ["country"]=>
  array(10) {
    ["id"]=>
    string(2) "10"
    ["name"]=>
    string(7) "country"
    ["title"]=>
    string(7) "Country"
    ["type"]=>
    string(4) "text"
    ["label"]=>
    string(7) "Country"
    ["default"]=>
    string(0) ""
    ["value"]=>
    string(7) "Belgium"
    ["published"]=>
    string(1) "1"
    ["required"]=>
    string(1) "0"
    ["params"]=>
    array(2) {
      ["filter"]=>
      string(0) ""
      ["maxlength"]=>
      string(0) ""
    }
  }
}