relation between fields image field to a "Link to a URL"

More
10 years 4 months ago #47883 by webiedesign
This item page looks exactly how we want:
reggaefusion.info/reggaefusion-f ... Itemid=164

Each image in the item has a "Link to a URL" entered manually for each image to display in a popup.

The client has the urls entered in database columns, and changing the thousands of database entries to the format suggested ( [-propertyname-]=propertyvalue, and separate mutliple properties) would be very time consuming.

Is there a way to create a relation between fields in the Prefix/Suffix area to accomplish this ?
(the things I have tried have not worked)

Other ideas ?

Mary
webie design

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

More
10 years 4 months ago #47887 by micker
maybe you can create a rule with rereplacer component ?

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
10 years 4 months ago #47956 by webiedesign
ooh, great idea. I am not super proficient with the rereplacer component, but I will try some things. I will follow up with my success (or failure).

Mary
webie design

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

More
10 years 4 months ago #47974 by ggppdk
Hello

propably you can use rereplacer component as Micker suggested to achieve what you need

you ask of this:

Is there a way to create a relation between fields in the Prefix/Suffix area to accomplish this ?
(the things I have tried have not worked)

i am not sure that i understand you well



if the field name of you flexicontent image field is:
imgfield45

then you can use this:
{{imgfield45##0##imglink}}

inside the prefix / suffix of another field

e.g. inside the prefix of text field that has default value: "Click to open image"

you can add to the prefix of it:
<a src="{{imgfield45##0##imglink}}" target="_blank">
and to the suffix:



see more here:
How to use raw field values inside the value of other fields


-- 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
10 years 3 months ago #48333 by webiedesign
I continue to struggle with this.

I want the url entered in the field "Bio3_url" to be used in the "Link to a URL:" field (currently added within each item) for the field "Bio#_image". As the component currently works, it would open a larger image unless an entry is made in the item of "Link to a URL:"

If you go to
reggaefusion.info/reggaefusion-f ... Itemid=164

Click on any of the top 3 images, they load a website url in a model popup window - that is what I am trying to automate.

The bottom image is the one I have been trying to get to work...

I believe this could be accomplished if the the database was coded for multi-value fields, however we are talking about thousands of entries.

At this point I would really like to hire somebody to get assistance with this, as this is the only thing preventing this project from moving forward.

I have added an image to help explain what is needed.

Mary
webie design
Attachments:

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

More
10 years 3 months ago #48356 by ggppdk
Hello


ALTERNATIVE 1

a. add some CSS to hide the link property of image field in item form

b. use some Javascript / jQuery to copy the value entered in the weblink field to the hidden property of image field



ALTERNATIVE 1

a. disable the link property in image field

b.you may edit the template files
compoents/com_flexicontent/templates/TMPL_NAME/item(_html5).php
and
compoents/com_flexicontent/templates/TMPL_NAME/category_items(_html5).php

and create the links around the images of image field
see FAQ article:

Using the raw value of a field inside a template file or inside a new custom field type


-- thus you can use the properties of weblink field:
$v
$v

the command:
var_dump($v);

will show you the properties of each weblink field value, please see the FAQ article



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.

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