show field in flexicontent module

More
12 years 6 months ago #25948 by pabro
Hi,

i wish to call a specific field in template of flexicontent module within the a tag for title.

original code:
Code:
[url=<?php echo $item->link; ?>]<?php echo $item->title; [POSITION for SPECIFIC FIELD] ?> [/url]
I know in item.tpl of flexicontent i can display fields with
Code:
$this->fields['fieldname']->display
but this dont work for module. How i can call a field in flexicontent module?

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

More
12 years 6 months ago #25953 by micker
why you didn't use administration of flexicontent universal module ? (only use name of field and it do)
after use css to place it..
not ?

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
12 years 6 months ago #25954 by pabro
The field is an addition for title (a subtitle) and should be able to use with the same link as title. I want to place the field on any position I wish ;)

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

More
12 years 6 months ago #25968 by ggppdk
You can use:
Code:
<?php echo FlexicontentFields::getFieldDisplay($item, 'fieldname'); ?>


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 6 months ago #25985 by pabro
With
Code:
<?php echo FlexicontentFields::getFieldDisplay($item, 'fieldname'); ?>
i get the message:

Warning: Invalid argument supplied for foreach() in /www/htdocs/xxxxx/cms/components/com_flexicontent/classes/flexicontent.fields.php on line 224


Is the code also for joomla 1.5?

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

More
12 years 6 months ago #25987 by micker
witch version of flexicontent ? ;)

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
Time to create page: 0.347 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