joomla custom field integration

More
4 years 3 months ago #79319 by tataye
Hello,

I'd like to either :

- render the value of joomla custom field in flexicontent

or

- catch the value of this joomla custom field in a flexi field

thanks for helping

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

More
4 years 3 months ago #79323 by micker
hello solution 1
did you test the code about this
docs.joomla.org/J3.x:Adding_custom_fields/Overrides
this code will be works i thinks (adapte id)
Code:
<?php if (!empty($this->item->jcfields[4]->value)): ?> <?php echo $this->item->jcfields[4]->value; ?> <?php endif; ?>

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
4 years 2 months ago #79326 by tataye
yes,

it does not work

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

More
4 years 2 months ago #79327 by micker
i think you need to load joomla function like helper
test 1 : try to load field in description with editor button
test 2 : add
Code:
<?php JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); ?>

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
4 years 2 months ago #79328 by micker
hello i tested without any adding
if your field have id 1
Code:
<?php if (!empty($this->item->jcfields[1]->value)): ?> <?php echo $this->item->jcfields[1]->value; ?> <?php endif; ?>
works in template wihtout any helper

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
4 years 2 months ago #79329 by tataye
what is your template flexi ??

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.395 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