- Posts: 6977
- Thank you received: 746
How to rename a field
7 years 5 months ago #47383
by milos
How to rename a field was created by milos
When you want to change a field name, it's enough to change "Label". This is what's displayed on your site. Please don't change "Name" because you'll need to change it in template code as well. In an example, if you change the name of "property-id" you'll need to change it in 4 places in template files:
/templates/sparky_framework/html/com_content/article/default.php
/templates/sparky_framework/html/mod_articles_category/homesrandom.php
/templates/sparky_framework/html/mod_articles_category/homesrecent.php
/templates/sparky_framework/html/mod_articles_popular/homespopular.php
Other fields may have references in different files. You should use a code editor (such as Sublime Text) and search template folder for the old field name (i.e. "property-id") and change it everywhere.
Best regards,
Milos
/templates/sparky_framework/html/com_content/article/default.php
/templates/sparky_framework/html/mod_articles_category/homesrandom.php
/templates/sparky_framework/html/mod_articles_category/homesrecent.php
/templates/sparky_framework/html/mod_articles_popular/homespopular.php
Other fields may have references in different files. You should use a code editor (such as Sublime Text) and search template folder for the old field name (i.e. "property-id") and change it everywhere.
Best regards,
Milos
Please Log in to join the conversation.
-
paoloferri.1
Active member - Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
1 month 1 week ago #52196
by paoloferri.1
Replied by paoloferri.1 on topic How to rename a field
Hi, I downloaded and installed HOMES Joomla 6 template. I'm trying to rename some fields by changing "Label", but I Always receive an error message saying that "the field is not valid". Seem like fields are blocked. How can I I unblock them?
Please Log in to join the conversation.
1 month 1 week ago #52199
by milos
Replied by milos on topic How to rename a field
Hello,
I just tested that on our Joomla 6 installation of the Homes template. Go to Content > Fields. Click any field, for example, Property ID. I changed the label to any other text and saved the field successfully. We are running Joomla 6 on PHP 8.3.
Please provide superuser access to your site so we can check this on your installation.
You can post this on the forum privately if you select a part of the text and click the "lock" (confidential) icon.
Regards,
Milos
I just tested that on our Joomla 6 installation of the Homes template. Go to Content > Fields. Click any field, for example, Property ID. I changed the label to any other text and saved the field successfully. We are running Joomla 6 on PHP 8.3.
Please provide superuser access to your site so we can check this on your installation.
You can post this on the forum privately if you select a part of the text and click the "lock" (confidential) icon.
Regards,
Milos
Please Log in to join the conversation.
-
paoloferri.1
Active member - Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
1 month 1 week ago #52200
by paoloferri.1
Replied by paoloferri.1 on topic How to rename a field
Hi, thank very much for your reply,
I set php to 8.3 (previously it was 8.4) and I tried going to Content > Fields > Property ID, but it still doesn't work (as well as it doesn't work with any other field).
- site address is:
- super user username:
- super user password:
Regards
Paolo
I set php to 8.3 (previously it was 8.4) and I tried going to Content > Fields > Property ID, but it still doesn't work (as well as it doesn't work with any other field).
- site address is:
This message contains confidential information
(it's just a 3rd level that I use to develop the new site. The main site This message contains confidential information
was made with joomla 3 so it only works when php is set to 7.3).- super user username:
This message contains confidential information
- super user password:
This message contains confidential information
Regards
Paolo
Please Log in to join the conversation.
1 month 1 week ago #52201
by milos
Replied by milos on topic How to rename a field
Hello,
For each field, when editing it, you should go to the Publishing tab, in the Created By field, click the icon, and select your superuser. Then it will let you save the changes.
Regards,
Milos
For each field, when editing it, you should go to the Publishing tab, in the Created By field, click the icon, and select your superuser. Then it will let you save the changes.
Regards,
Milos
The following user(s) said Thank You: paoloferri.1
Please Log in to join the conversation.
Time to create page: 0.184 seconds