Keyword

extra fields to icons

  • Eric Hoegee
  • Eric Hoegee's Avatar Topic Author
  • Offline
  • New Member
More
10 years 4 months ago #128424 by Eric Hoegee
extra fields to icons was created by Eric Hoegee
Hi All,

I made extra fields to display social media icons per item. So, i can select per k2 item which icons i would like to display.
This is what i have done so far and it neatly outputs in text.
<?
if($_SESSION['catid'] !=38){
?>
<span class="desc_h" style="padding-left: 5px;"> Social icons: </span>
<span class="param"><?php echo $e['Icons'] ?></span>
<br/>
<?
}
?>

How could i replace this text for an icon? So, if people select facebook and twitter those icons show up instead of text?

Thanks in advance!

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

More
10 years 4 months ago #128425 by Lefteris
Replied by Lefteris on topic Re: extra fields to icons
Hi. This is up to you. I would try to add a different class name and style accordingly using CSS.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Eric Hoegee
  • Eric Hoegee's Avatar Topic Author
  • Offline
  • New Member
More
10 years 4 months ago #128426 by Eric Hoegee
Replied by Eric Hoegee on topic Re: extra fields to icons
Ok, i thought about that. The thing is how. I made the input a Multi-Select list.
But it just outputs like this:
Log in  or Create an account to join the conversation.

  • Eric Hoegee
  • Eric Hoegee's Avatar Topic Author
  • Offline
  • New Member
More
10 years 4 months ago #128427 by Eric Hoegee
Replied by Eric Hoegee on topic Re: extra fields to icons
Sorry, but i am still struggling with this, this is the only and last time i will bump it. Please people, who can advice? :)

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

More
10 years 4 months ago #128428 by Lefteris
Replied by Lefteris on topic Re: extra fields to icons

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Eric Hoegee
  • Eric Hoegee's Avatar Topic Author
  • Offline
  • New Member
More
10 years 4 months ago #128429 by Eric Hoegee
Replied by Eric Hoegee on topic Re: extra fields to icons
Thanks, i have seen that post but truly don't understand how that can help me. I am sorry my php is not my best feature ;)

Could you please clarify?

Thanks

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