Article

Pasta

this is my description of my pasta

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)#2448 (7) {
  ["preparation-time"]=>
  array(10) {
    ["id"]=>
    string(1) "1"
    ["name"]=>
    string(16) "preparation-time"
    ["title"]=>
    string(16) "Preparation time"
    ["type"]=>
    string(4) "text"
    ["label"]=>
    string(16) "Preparation time"
    ["default"]=>
    string(0) ""
    ["value"]=>
    string(10) "10 minutes"
    ["published"]=>
    string(1) "1"
    ["required"]=>
    string(1) "1"
    ["params"]=>
    array(2) {
      ["filter"]=>
      string(0) ""
      ["maxlength"]=>
      string(0) ""
    }
  }
  ["type-of-dish"]=>
  array(10) {
    ["id"]=>
    string(1) "2"
    ["name"]=>
    string(12) "type-of-dish"
    ["title"]=>
    string(12) "Type of dish"
    ["type"]=>
    string(4) "list"
    ["label"]=>
    string(12) "Type of dish"
    ["default"]=>
    string(0) ""
    ["value"]=>
    string(5) "first"
    ["published"]=>
    string(1) "1"
    ["required"]=>
    string(1) "0"
    ["params"]=>
    array(2) {
      ["multiple"]=>
      string(0) ""
      ["options"]=>
      array(3) {
        ["options0"]=>
        array(2) {
          ["name"]=>
          string(12) "First course"
          ["value"]=>
          string(5) "first"
        }
        ["options1"]=>
        array(2) {
          ["name"]=>
          string(11) "Main course"
          ["value"]=>
          string(4) "main"
        }
        ["options2"]=>
        array(2) {
          ["name"]=>
          string(7) "Dessert"
          ["value"]=>
          string(7) "dessert"
        }
      }
    }
  }
  ["number-of-persons"]=>
  array(10) {
    ["id"]=>
    string(1) "3"
    ["name"]=>
    string(17) "number-of-persons"
    ["title"]=>
    string(17) "Number of persons"
    ["type"]=>
    string(7) "integer"
    ["label"]=>
    string(17) "Number of persons"
    ["default"]=>
    string(0) ""
    ["value"]=>
    string(1) "1"
    ["published"]=>
    string(1) "1"
    ["required"]=>
    string(1) "1"
    ["params"]=>
    array(4) {
      ["multiple"]=>
      string(0) ""
      ["first"]=>
      int(1)
      ["last"]=>
      int(10)
      ["step"]=>
      int(1)
    }
  }
  ["ingredients"]=>
  array(10) {
    ["id"]=>
    string(1) "5"
    ["name"]=>
    string(11) "ingredients"
    ["title"]=>
    string(11) "Ingredients"
    ["type"]=>
    string(6) "editor"
    ["label"]=>
    string(11) "Ingredients"
    ["default"]=>
    string(0) ""
    ["value"]=>
    string(60) "
  • pasta
  • cheese
  • sauce
" ["published"]=> string(1) "1" ["required"]=> string(1) "0" ["params"]=> array(4) { ["buttons"]=> string(0) "" ["width"]=> string(0) "" ["height"]=> string(0) "" ["filter"]=> string(8) "safehtml" } } ["quote"]=> array(10) { ["id"]=> string(1) "6" ["name"]=> string(5) "quote" ["title"]=> string(5) "Quote" ["type"]=> string(4) "text" ["label"]=> string(5) "Quote" ["default"]=> string(25) "I just llllove that one !" ["value"]=> string(25) "I just llllove that one !" ["published"]=> string(1) "1" ["required"]=> string(1) "0" ["params"]=> array(2) { ["filter"]=> string(28) "JComponentHelper::filterText" ["maxlength"]=> int(200) } } ["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(34) "50.84717044999999,4.35198095255952" ["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" } } ["date"]=> array(10) { ["id"]=> string(2) "12" ["name"]=> string(4) "date" ["title"]=> string(4) "Date" ["type"]=> string(8) "calendar" ["label"]=> string(4) "Date" ["default"]=> string(0) "" ["value"]=> string(19) "2019-08-31 22:00:00" ["published"]=> string(1) "1" ["required"]=> string(1) "0" ["params"]=> array(1) { ["showtime"]=> int(0) } } }