[SOLVED] Using Font Awesome in Field Elements

More
8 years 5 months ago #62612 by ggppdk
it is not about awesome icons, it can be any class

classes can be
iconmoon, fontawesome, or other

about something being clickable, it looks like this:
<input .../>
<label>
<span class="icon-download"></span>
</label>

so it is clickable , because we are not changing any FORM HTML,
- form HTML will remain the same, just will replace <img> with <span>


-- 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
8 years 5 months ago #62613 by ggppdk
Hello

here is a picture with the result.
you can see that the field does not change in anyother way than just replacing

<img>
with
<span class="...."></span>




-- 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...
Attachments:

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

More
8 years 5 months ago #62620 by micker
Great need to check my code to remove checkbox with image and it will be perfect

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
8 years 5 months ago #62631 by ggppdk
Hello

yes, 1 more improvement would be to remove the checkbox and only show the IMAGE or ICON

about testing font-based icons:

click "download zip"
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

then Install via Joomla extension manager in a testing website


-- 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
8 years 5 months ago #62637 by Mahmood
Hi,

1. Did you need to change some structural code to achieve that or can I just use <span... instead of <i... and get the same results??

2. Also I agree with ggppdk, it would be nice to remove the radio or checkbox and make the image or font select-able itself. This would make for very stylish filters.

3. It would also be nice if you could use the check box/radio images as buttons you can toggle. So a tick shows specific filtered values and no tick shows everything else. e.g. "Only show red items" and if they select it then results are filtered by red and if not then all the results are shown. Like a toggle button.

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

More
8 years 5 months ago #62641 by ggppdk
Hello

instead of image-filename: myimage.png

you just use:
icon-download

there is 1 new parameters in the field configuration:
- Image or Font-based icon



Then there are 2 more parameters: size and color
- which existing in 4 places:
edit form
viewing
category view filtering
search view filtering


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

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

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