I create the custom fields list that I want (Text, subforms, sql etc).
There should be a premade function that I can give the custom field name and id and appear in that place.
Trying to show the custom field in my custom view in the place that I want is very time consuming.
I must add declaration in the form I must loop all fields search and find what i want. And this has to be done in a lot of places for each view.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
i want to be able to show it with code where i want because i want it outside from the others gor exappe i want to show them as tabs. in my vee i eiuld make a tab list and split them
Method 1: You can use the do not automatically display and in the editor top left click cms content and choose fields. Then the field you want.
Method 2: You can use article ovewrite to your template and use $this->item->jcfields[6] where 6 is your field id to access the custom field.
To get the value you can use echo $this->item->jcfields[6]; and to get the raw value $this->item->jcfields[6]->rawvalue.
There is a lot of data inside there to make use of them. If you are not familliar with php you can use the first method.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-11-27 17:05:43 |
Closed_By | ⇒ | pnkr |
Method 1: You can use the do not automatically display and in the editor top left click cms content and choose fields. Then the field you want.
Method 2: You can use article ovewrite to your template and use $this->item->jcfields[6] where 6 is your field id to access the custom field. To get the value you can use echo $this->item->jcfields[6]; and to get the raw value $this->item->jcfields[6]->rawvalue.
There is a lot of data inside there to make use of them. If you are not familliar with php you can use the first method.
That is what I wanted to know. Didnt knew I could just load them like this. Thanks!!!
It already exists in the field options