Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Image in button, radio button with bootstrap 06 Jul 2013 21:15 #7897

  • VeCrea
  • VeCrea's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
I have a fk displaying it's data with RADIO as control.
Boostrap takes it and transforms it in a button group : nice, it works. But what if the field pointed by the fk is an image ? Could i display the image instead of the name of the image in thebutton ?
Thanks for any help.

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

Image in button, radio button with bootstrap 07 Jul 2013 12:54 #7902

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I never tried that.
You can try to create a new JDom class for that, using the bootstrap buttons.
Of course, you will need to call html.fly.image inside in order to get the right image url.
It should not be difficult.
Coding is now a piece of cake

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

  • Page:
  • 1
Time to create page: 0.083 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started