No Code Attached Yet
avatar pnkr
pnkr
26 Nov 2024

Steps to reproduce the issue

I create the custom fields list that I want (Text, subforms, sql etc).

Expected result

There should be a premade function that I can give the custom field name and id and appear in that place.

Actual result

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.

System information (as much as possible)

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar pnkr pnkr - open - 26 Nov 2024
avatar pnkr pnkr - change - 26 Nov 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Nov 2024
avatar brianteeman
brianteeman - comment - 26 Nov 2024

It already exists in the field options

Image

avatar pnkr
pnkr - comment - 27 Nov 2024

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

avatar niosme
niosme - comment - 27 Nov 2024

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.

avatar pnkr pnkr - change - 27 Nov 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-11-27 17:05:43
Closed_By pnkr
avatar pnkr pnkr - close - 27 Nov 2024
avatar pnkr
pnkr - comment - 27 Nov 2024

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!!!

Add a Comment

Login with GitHub to post a comment