joomla custom field integration

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

it does not work

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

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

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

More
5 years 5 months ago #79330 by tataye

micker wrote: works in template wihtout any helper

do you speak about flexi or joomla template ??

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

More
5 years 5 months ago - 5 years 5 months ago #79331 by micker
any flexicontent template, i use default for exemple becarefull to put your code in good place (html or html5)

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]
Last edit: 5 years 5 months ago by micker.

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

More
5 years 5 months ago #79332 by tataye
I found what is missing
my flexi template does not execute joomla plugins ( for exemple shortcode to load module in it)
I guess I have to allow it in my template or in flexi config

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

More
5 years 5 months ago #79333 by micker
=> test with defaut template to be sure
=> edit description field and allow joomla plugin execution

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.

Moderators: vistamediajoomlacornerggppdk
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
Save