Keyword

Get path only from Extra fields with type image

  • mmedia
  • mmedia's Avatar Topic Author
  • Offline
  • New Member
More
9 years 4 months ago #134515 by mmedia
Hello,

is there a possibility to get only the path from an extra field with the type image?

Thanks in advance.

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

  • mmedia
  • mmedia's Avatar Topic Author
  • Offline
  • New Member
More
9 years 4 months ago #134548 by mmedia
Any idea?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #134583 by Krikor Boghossian
Replied by Krikor Boghossian on topic Get path only from Extra fields with type image
Hello.
If you use jQuery's attr() function to dynamically populate images or you can get the value using str_replace in your template.

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

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

  • mmedia
  • mmedia's Avatar Topic Author
  • Offline
  • New Member
More
9 years 4 months ago #134585 by mmedia
Hello,

Thanks for your reply.

I would like to avoid JS at this point, but about the PHP solution I've already thought. I was hoping there is a better solution. In the database the value for my extra field is only the path, so it must be possible to get only the path.

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


Powered by Kunena Forum