Automatic title

More
3 months 1 week ago #84840 by Nora ali
Automatic title was created by Nora ali
Hi ,
i want to create titles automatically 
i noticed that there is an option in the item type

but i don't know how to use.

i have 2 fields country and capital
How to make the title show the value of these two fields automatically?

thanks
   

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #84841 by micker
Replied by micker on topic Automatic title
you need to adapt the code and replace fieldname01 by your name field

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #84849 by Nora ali
Replied by Nora ali on topic Automatic title
Thanks for your reply
I already tried that
It only shows the item id as title , just a number

That's why I am asking how the correct code would be ?

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #84850 by micker
Replied by micker on topic Automatic title
Sorry WE didnt have cristal ball
Put your code hère and name of your field

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago - 3 months 1 week ago #84859 by Nora ali
Replied by Nora ali on topic Automatic title

Sorry WE didnt have cristal ball
Put your code hère and name of your field
thanks

this is my code
Code:
[code]$F = &$item->fields; $countryValue = isset($F['country'])     ? $F['country']->postdata[0]     : 'country field not found'; $capitalValue = isset($F['capital'])     ? $F['capital']->postdata[0]     : 'capital field not found'; return "$countryValue, $capitalValue";
[/code]

capital and country are 2 fields of the select type and they depends on each others "country is master field"

The code works but it shows the values , i need it to show the label like " France , Paris"
How to do this ? thanks       
Last edit: 3 months 1 week ago by Nora ali.

Please Log in or Create an account to join the conversation.

More
3 months 6 days ago #84876 by Nora ali
Replied by Nora ali on topic Automatic title
This message contains secure information

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.292 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline