×

Notice

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

TOPIC: Being able to order hotspots in a category by a order number

Being able to order hotspots in a category by a order number 12 years 11 months ago #14687

  • blain Arnaud
  • blain Arnaud's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 0
Something interesting should be to be able to order hotspots in a category by a order number

cheers

Being able to order hotspots in a category by a order number 12 years 11 months ago #14689

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Go to the hotspot model
components/com_hotspots/models/hotspot.php

You'll find the getAllHotspots and getHotspots function
there you will see the query that gets the hotspots and there is also a ORDER by in this query. Change it to just m.id and you will be fine.

Cheers,
Daniel

Being able to order hotspots in a category by a order number 12 years 11 months ago #14722

  • blain Arnaud
  • blain Arnaud's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 0
hello ok thanks but it's preferable to have an "order column" and being able to change the order as contents in joomla for exemple.
Because with this "group by" we can't change the order once upon I've created a marker because id is autoincrement.

cheers
  • Page:
  • 1
Time to create page: 0.095 seconds