article title + icon in select field

More
6 years 8 months ago - 6 years 8 months ago #72727 by aminweb
hi,
I create a select field for hotel name. and use sql query for load article title in hotel category(id=10) :
Code:
SELECT DISTINCT id as value, title as text FROM #__content AS i JOIN #__flexicontent_cats_item_relations AS rel ON rel.itemid = i.id AND rel.catid= 10 WHERE i.state IN (1, -5)
now I have 2 problem:
1 - how value this field(hotel name) linked to article?
2- how show hotel star grade icon in value field?

like this :
www.booking.com/searchresults.en-gb.html...idr=1&;ilp=1;d_dcp=1

please help me
so thanks
Last edit: 6 years 8 months ago by aminweb.

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

More
6 years 8 months ago #72728 by micker
why you didn't relation field ?

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
6 years 8 months ago #72729 by aminweb
becuse can not use releation field in field group :(

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

More
6 years 8 months ago #72730 by micker
ok you need to use prefix and suffix to create your render ...
1 use remove space option
2 use html in prefix, like <a href="yourlink....=
3 finishing html link in suffix " class="yourclass"> your texte </a>
read popup description for more information

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]
The following user(s) said Thank You: aminweb

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

More
6 years 8 months ago #72731 by aminweb

2 use html in prefix, like <a href="yourlink....=

what insert code in yourlink for linked to article?
I use sql query for load article title . how linked this title to self article?

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

More
6 years 8 months ago #72732 by micker
check url syntax
like this index.php?option=com_flexicontent&view=item&id=134
id=yourvalue

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]
The following user(s) said Thank You: aminweb

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

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