When I switch on the Route planning feature, there are TWO things that are not acceptable. Maybe there is a solution, or maybe these are simple feature requests.
The drop list of the "To" destinations (ie our resellers) appears sorted by the order in which we created them. It needs to be sorted alphabetically. We do NOT want to be involved in SQL or PHP or any other tinkering under the bonnet. There was a forum discussion on this in 2011, and Jan concluded it by saying "fixed". Maybe it was fixed then, but it isn't now.
When the page opens the first item on the list is already populated into teh "To" field. This gives unreasonable extra publicity for that reseller, and is probably wrong anyway for 99% of visitors. The box should show the last item clicked in the list OR the last marker clicked on the map. Until then it remains empty.
Otherwise great module that suits us well.
Route to a) sort and b) default empty
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Route to a) sort and b) default empty
Hi,
- it is ordered by order you can set in administration - you easily set the ordering in administration - you can order it by your criteria.
- adding e.g. "select reseller" value should be customized directly in the php code - in the select box.
Jan
- it is ordered by order you can set in administration - you easily set the ordering in administration - you can order it by your criteria.
- adding e.g. "select reseller" value should be customized directly in the php code - in the select box.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Jul 2014, 16:53
Re: Route to a) sort and b) default empty
In Ordering I can select from 3 things (0 Order First | 1. AU | 2 Order Last), but whichever I select nothing actually changes the order.
I have about 100 items in the list. The first item created always appears at top of list. The list is not sorted.
I have no idea about customizing the php code or even where that is. The whole point of Joomla is that users do NOT need to code.
I tried here to insert screen shot images, but can't understand that. I just get .
I have about 100 items in the list. The first item created always appears at top of list. The list is not sorted.
I have no idea about customizing the php code or even where that is. The whole point of Joomla is that users do NOT need to code.
I tried here to insert screen shot images, but can't understand that. I just get .
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Route to a) sort and b) default empty
Hi, just order the items in the list of markers - the same way like you can order articles or categories in Joomla!
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Jul 2014, 16:53
Re: Route to a) sort and b) default empty
Sounds simple, and I'm sure the problem is with me. I've been in CZ a few times in last 2 years. Drove right across, stayed at Brno, Praha. One of our websites is for CZ!
I am at the list of Markers and on the top right I see Title and Ascending drop lists. It even appears in that correct order in the very same page. So I would expect my list for the public (front end) to appear in ascending order based on Title. But it doesn't! It appears in the order the markers were created.
you haven;t answered how to have a blank field without PHP tweaking, but I expect I can create a "dummy" marker that says "Choose your distributor" or similar, so no big deal.
So what is it I do not understand?
I really do appreciate your program and the many hours you put into it and the support. Maybe we can share a beer one day.
I am at the list of Markers and on the top right I see Title and Ascending drop lists. It even appears in that correct order in the very same page. So I would expect my list for the public (front end) to appear in ascending order based on Title. But it doesn't! It appears in the order the markers were created.
you haven;t answered how to have a blank field without PHP tweaking, but I expect I can create a "dummy" marker that says "Choose your distributor" or similar, so no big deal.
So what is it I do not understand?
I really do appreciate your program and the many hours you put into it and the support. Maybe we can share a beer one day.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Route to a) sort and b) default empty
Hi, not the "select ..." should be done directly in the php code:
components/com_phocamaps/views\map\tmpl\default.php
cca line: 57 - one option with value "" needs to be added before foreach. (Joomla! 3, in other versions, the line number will be different)
The ordering:
components/com_phocamaps/\models\map.php
cca line: 76:
is ordered by ordering - ordering which is set in administration.
So the markers needs to be ordered in administration - but the ordering needs to be changed (moving ordering) not only sorted in administration:
a) sorting - administration ordering means - you order/sort the items in administration so you can view it differently - but this you can view only in administration
b) ordering for frontend - you order the items in administration - e.g. in Joomla! 3 - you move them over each other
Ordering items for administration view does not order the items in frontend, see image:
Phoca Maps - Marker ordering:
components/com_phocamaps/views\map\tmpl\default.php
cca line: 57 - one option with value "" needs to be added before foreach. (Joomla! 3, in other versions, the line number will be different)
The ordering:
components/com_phocamaps/\models\map.php
cca line: 76:
Code: Select all
.' ORDER BY a.ordering ASC';
So the markers needs to be ordered in administration - but the ordering needs to be changed (moving ordering) not only sorted in administration:
a) sorting - administration ordering means - you order/sort the items in administration so you can view it differently - but this you can view only in administration
b) ordering for frontend - you order the items in administration - e.g. in Joomla! 3 - you move them over each other
Ordering items for administration view does not order the items in frontend, see image:
Phoca Maps - Marker ordering:
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Jul 2014, 16:53
Re: Route to a) sort and b) default empty
So I sort by "ordering", then I can MANUALLY drag them into the order I want them to appear. I am sitting at a computer, but need to sort a table MANUALLY!!! OK, so I now understand how it works, but find that rather primitive for managing long lists. Thanks for explaining it.
Then the PHP code bit. Is this what I do to make the ordering automatically alphabetical, or is this what I do to present a blank box on opening?
This really does involve going behind the scenes (into the engine room) to do some coding. It is not done from Joomla backend? I think I am going to need something which does more of the work FOR us. Phoca Maps is a nice component with a good following, but seems just a little too geeky for me to manage. My fault - not yours. Thanks.
Then the PHP code bit. Is this what I do to make the ordering automatically alphabetical, or is this what I do to present a blank box on opening?
This really does involve going behind the scenes (into the engine room) to do some coding. It is not done from Joomla backend? I think I am going to need something which does more of the work FOR us. Phoca Maps is a nice component with a good following, but seems just a little too geeky for me to manage. My fault - not yours. Thanks.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Route to a) sort and b) default empty
Hi,
I am not developer of the ordering feature in Joomla! so this needs to be asked by Joomla! core developers.
Of course when you edit the php is much more easier - just change:
components/com_phocamaps/\models\map.php
cca line: 76:
FROM:
TO:
OR:
etc.
Jan
I am not developer of the ordering feature in Joomla! so this needs to be asked by Joomla! core developers.
Of course when you edit the php is much more easier - just change:
components/com_phocamaps/\models\map.php
cca line: 76:
FROM:
Code: Select all
.' ORDER BY a.ordering ASC';
Code: Select all
.' ORDER BY a.title ASC';
Code: Select all
.' ORDER BY a.title DESC';
Jan
If you find Phoca extensions useful, please support the project