How to insert into the field description ( maintext )

More
7 years 11 months ago #61775 by micker

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
7 years 11 months ago #61787 by tadzio
Something is wrong:

<?php
$item= JRequest::getVar('id');
$img = FlexicontentFields::getFieldDisplay($item, 'articleimgmain', null, 'display_small');
echo $img;
?>

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

More
7 years 11 months ago #61799 by micker
you put this code where ?

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
7 years 11 months ago #61803 by tadzio
plugin jumi for php source
and I put this as {jumi *ID} in article tekst when ID is ID for code
Never mind. Bull...t

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

More
7 years 11 months ago - 7 years 11 months ago #61806 by ggppdk

How to insert into the field description ( maintext ) field of image / gallery or same some images eg. nr 1, 2, 3.


Hello

why don't you browse from inside your HTML editor,
then select them and insert them as images ?

Please note that:
Using the PHP CODE that is describe in this FAQ article:
www.flexicontent.org/documentation/faq/7...e-gallery-field.html

is meant to be used only inside a PHP template file:
item(_html5).php
category_items(_html5).php


-- 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...
Last edit: 7 years 11 months ago by ggppdk.

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

More
7 years 11 months ago #61807 by tadzio
In article text works:
<?php
// Connect to database
$db = JFactory::getDbo();
$query = $db->getQuery(true);

// Build the query
$query->select($db->quoteName(array('field_id', 'value')));
$query->from($db->quoteName('#__flexicontent_fields_item_relations'));
$query->where($db->quoteName('item_id') . ' LIKE '. $db->quote('%1005%'). ' AND '.$db->quoteName('field_id') . ' LIKE '. $db->quote('%15%'));
$query->setLimit('1');

$db->setQuery($query);
$results = $db->loadObjectList();

// Print the result
foreach($results as $result){
echo '<h3>' . $result->field_id . '</h3>';
echo $result->value;
}
?>

jumi has parameters and I can put everything to my article without template.

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

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