Afficher le contenu d'un champ image

More
12 years 4 months ago #21209 by micker
hello
dans ton item.xml et category.xml
tu rajoute la position renderonly
apres ca sera dans ton admin
a+

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 4 months ago #21210 by ggppdk
Goto (backend) the templates manager tab, there you will see a list of the templates, click to open the category layout of your template , drag and drop the field into renderonly position.

-- If you have an old custom templatem then open in the folder: components/com_flexicontent/templates/mycustomtemplate/category.xml and put the renderonly position
Code:
... <fieldgroups> ... <group>somenname</group> <group>renderonly</group> </fieldgroups>

-- ALTERNATIVELY you can use:
Code:
<?php foreach ($this->items as $item) : ?> <?php FlexicontentFields::getFieldDisplay($item, 'field22'); ?> <?php echo $item->fields['field22']->label; ?> <?php echo $item->fields['field22']->display; ?> <?php endforeach ?>

Regards


-- 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 4 months ago #21216 by erehcab
i have done it but i don't find it in the backend ...
Code:
<fieldgroups> <group>renderonly</group> </fieldgroups>
i go in flexicontent -> template .. and it's after this that i'm lost.

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

More
12 years 4 months ago #21219 by ggppdk
Forgot to say , you must clean cache so that the position will appear.

Regards


-- 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 1 month ago #23558 by davids
Hello,

Is it possible to only get back the source of an image?

In fact I need to use jquery fancy box and I have to put the source image in my link.

Thanks

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

More
11 years 10 months ago #25574 by deck1187hw

davids wrote: Hello,

Is it possible to only get back the source of an image?

In fact I need to use jquery fancy box and I have to put the source image in my link.

Thanks


Hi Davids,
Try this:

Instead of:
Code:
<?php echo $item->fields['field22']->display; ?>

Use:
Code:
<?php echo $item->fields['field22']->display_small_src; ?>
or:
Code:
<?php echo $item->fields['field22']->display_medium_src; ?>
or:
Code:
<?php echo $item->fields['field22']->display_large_src; ?>

Miguel Puig
IT Engineer / UI Designer at FreebandTech LTD

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

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