The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Use field data in other widget?

Use field data in other widget? 3 years 4 months ago #35937

  • Marcus Stafford
  • Marcus Stafford's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I have a number of custom fields like date. Is it possible to pull this out so I can use this when integrating another widget?

Example : I want to show weather for a certain date contained in a custom field or I want to use the long/lat in another script.


Use field data in other widget? 3 years 4 months ago #35948

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Marcus,
the data for the custom field is saved in the Hotspot table (there is customfields column) so if you get the hotspots to display, you can display the values for this hotspots.
Look at /components/com_hotspots/views/hotspot/view.html.php and /components/com_hotspots/views/hotspot/tmpl/default.php
in the view.html.php we get the configuration of the custom fields for the category and in default.php you can see how we output the values.

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