Universal FC module hyperlink question

More
10 years 3 months ago #43910 by rottenberg
Hello
I need to display distinct type of articles in a Universal FC module.
I want to display only an image in the module.

Following the type of article some image have an hyperlink to open the complete article and some other not.

Can I do that automatically from module options or do I need to do it manually. I think about not using the image display in the module but only a text which is composed from the image and create the hyperlink in the text.

Thank you for advices

best regards
Michel

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

More
10 years 3 months ago #44014 by rottenberg
I have found a solution to my problem :

In the Universal module option I don't display the image field.

I have added in the article types used a hiddn field which concatanate the image, the hyperlink if any, and othoer fields (title to be used in the alt image parameter).

I have put the field in the list of fields to be displayed.

Then, with Nonumber rereplacer I explode the field and I display each value (image and if any the hyperlink of the image).

If any better solution, I am interested to use it

best regards
Michel

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

More
10 years 3 months ago #44043 by ggppdk

rottenberg wrote: Hello
I need to display distinct type of articles in a Universal FC module.
I want to display only an image in the module.

Following the type of article some image have an hyperlink to open the complete article and some other not.

Can I do that automatically from module options or do I need to do it manually. I think about not using the image display in the module but only a text which is composed from the image and create the hyperlink in the text.

Thank you for advices

best regards
Michel


Do what automatically?
you said that some items do not have image field assigned to their content type


-- 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 #44069 by rottenberg
In the article type there are :
    image files which is mandatory
    Link to a pdf file which may be empty
    Core description field which may also be empty
.

In the selected article for the Universal module I want only to display the image field.
If the pdf field and/or the description field are not empty I want to do an hyperlink to the article.
If both pdf and description fields are empty I don't want to create an hyperlink to the article.

the template of the article displays :
    image field
    pdf file in an iframe
    description field

Presently if I put in the Universal FC module than I want a link from the image and if the article contains only the image field I get the article with the same image (which is not usefull).


As explained in my previous post for this topics, I don't activate the display image option in the Universal module. I display a html text containing the image and if necessary the hyperlink.

I just want to know if my solution is good.

best regards

Michel

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

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