Trigger custom field in description

More
5 years 6 months ago #79018 by ggppdk
Hello

maybe you have written something i missed or forgot

which text field ?
please explain because were talking about the image-gallery field


-- 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 review. Thanks!

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

More
5 years 6 months ago #79019 by milind.purandare
Hi

I have added new text field Boxes. I am trying to replace it in description. But I am getting replacement error.

tenfurlongsmagazine.com/carnivals-races/...-with-a-purpose.html

REPLACEMENT NOT FOUND:
{flexi_field:Boxes item:current method:display;}

Login amber pwd are same and active as shared earlier on pm.. If needed.

Regards

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

More
5 years 6 months ago - 5 years 6 months ago #79026 by ggppdk
Hello

in the replacement field you have used the label of the field which is "Boxes"
but the field name of the field is "boxes" (without capital)

also you used
display; correct is display without the comma (in this case it did not make a difference but because when a "method" the default HTML of the field is returned)

so correct code is
Code:
{flexi_field:boxes item:current method:display}


-- 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 review. Thanks!
Last edit: 5 years 6 months ago by ggppdk.

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

More
5 years 6 months ago #79027 by milind.purandare
Thank you. That was very bad of me to make that mistake.

If text field has allow multiple.. I still cannot access with boxes##0 etc?

If not supported you can add feature for ## support for text as well as image? Otherwise one has to create many fields to support each position.

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

More
5 years 6 months ago - 5 years 6 months ago #79031 by ggppdk
Hello


the way to do custom display is not to modify the replacements plugin

custom display and getting such individual data is not the purpose of the plugin

- you can create an display that matches your exact needs
by creating a custom layout for the image-gallery field or any other field

(the above is done by duplicating an existing layout , see instructions on the view layout parameter description in field configuration, and then coding) what you need

also you can use the following inside the
item.php
of your FC template
Code:
Thumbnail URLs of all images (gallery mode) (all thumbnail sizes) $item->fields['imgfieldname']->thumbs_src['backend'][0] $item->fields['imgfieldname']->thumbs_src['small'][0] $item->fields['imgfieldname']->thumbs_src['medium'][0] $item->fields['imgfieldname']->thumbs_src['large'][0] $item->fields['imgfieldname']->thumbs_src['original'][0]

These are arrays
Code:
$item->fields['imgfieldname']->thumbs_src['backend'] $item->fields['imgfieldname']->thumbs_src['small'] $item->fields['imgfieldname']->thumbs_src['medium'] $item->fields['imgfieldname']->thumbs_src['large'] $item->fields['imgfieldname']->thumbs_src['original'][

if you do not know PHP and if you do not really need such custom display, i suggest to avoid doing such customizations


-- 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 review. Thanks!
Last edit: 5 years 6 months ago by ggppdk.

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