Article
Pizza
That's a little sentence just to show
some blabla
and more and more
until the end
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 (8) {
["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) "45 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(4) "main"
["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) "4"
["published"]=>
string(1) "1"
["required"]=>
string(1) "1"
["params"]=>
array(4) {
["multiple"]=>
string(0) ""
["first"]=>
int(1)
["last"]=>
int(10)
["step"]=>
int(1)
}
}
["more-information"]=>
array(10) {
["id"]=>
string(1) "4"
["name"]=>
string(16) "more-information"
["title"]=>
string(16) "More information"
["type"]=>
string(3) "url"
["label"]=>
string(16) "More information"
["default"]=>
string(0) ""
["value"]=>
string(70) "https://www.marmiton.org/recettes/recette_pate-a-pizza-fine_29544.aspx"
["published"]=>
string(1) "1"
["required"]=>
string(1) "0"
["params"]=>
array(2) {
["schemes"]=>
array(2) {
[0]=>
string(4) "http"
[1]=>
string(5) "https"
}
["relative"]=>
string(0) ""
}
}
["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(142) "
don't forget blabla
have also a look at this video
"
["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(12) "I hate it ;)"
["published"]=>
string(1) "1"
["required"]=>
string(1) "0"
["params"]=>
array(2) {
["filter"]=>
string(28) "JComponentHelper::filterText"
["maxlength"]=>
int(200)
}
}
["be-a-member"]=>
array(10) {
["id"]=>
string(1) "7"
["name"]=>
string(11) "be-a-member"
["title"]=>
string(11) "Be a member"
["type"]=>
string(4) "text"
["label"]=>
string(11) "Be a member"
["default"]=>
string(0) ""
["value"]=>
string(68) "Want to know the ingredients ? Create an account and see it for free"
["published"]=>
string(1) "1"
["required"]=>
string(1) "0"
["params"]=>
array(2) {
["filter"]=>
string(0) ""
["maxlength"]=>
string(0) ""
}
}
["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(35) "50.842995099999996,4.43528195676678"
["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"
}
}
}