Loading


Advertisement:

Author Topic: Order of regions in twitter theme  (Read 1650 times)

goodidea

  • Newbie
  • *
  • Posts: 25
Order of regions in twitter theme
« on: April 25, 2015, 08:56:33 am »
Hi all,

Friends I am using twitter theme for my project. By default the regions are arranged alphabetically in this theme (and perhaps in all other themes). Is there a way to keep the order of regions in which they are added from the admin area (dashboard) of osclass.

For example if three regions are added in the following order:

Beta
Alpha
Gama

The twitter theme will show the regions in the following order (alphabetical arrangement)

Alpha
Beta
Gama

But I want them in the following order (the order in which they are originally entered or added from the dashboard)

Beta
Alpha
Gama

Please help as it will assure the completion of my project. Thanks in advance.

teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: Order of regions in twitter theme
« Reply #1 on: April 25, 2015, 02:14:20 pm »
Hi,

Those locations, are they added manually one at a time, no automatic population? ???

Regards

goodidea

  • Newbie
  • *
  • Posts: 25
Re: Order of regions in twitter theme
« Reply #2 on: April 25, 2015, 03:55:02 pm »
Thank you for your help teseo. :)

If I include a country the regions and cities automatically appear under it. I shall however modify them (some additional regions and cities shall be included and some will be removed). But it does not matter whether the are already included or manually added, the arrangement is alphabetical. I simply want to be able to change the order of the regions. screen shots are attached.
« Last Edit: April 25, 2015, 03:56:54 pm by goodidea »

teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: Order of regions in twitter theme
« Reply #3 on: April 25, 2015, 04:16:52 pm »
But it does not matter whether the are already included or manually added

It does matter. See, if you add them automatically, their ID's are automatically set as well (usually with a long number such as 405678), while if you add them one at a time, the first location will have ID = 1, the second ID = 2 and so on. Then it would be a matter to get them not by Name (alphabetical order) but by ID (order in what they were added to the database). Also, this would benefit final URL's format, they would be shorter (http://yoursite.com/islamabad-r1 instead of, for instance, http://yoursite.com/islamabad-r405678).

So, again, there is at least some locations you added automatically or all of them were added manually? ???

Regards

goodidea

  • Newbie
  • *
  • Posts: 25
Re: Order of regions in twitter theme
« Reply #4 on: April 28, 2015, 02:54:10 pm »
Dear teseo your help is much appreciated. :)

I included one only one country and that is "Pakistan". The regions and cities automatically appeared under it.
Should I delete all regions and cities and include them again one by one?
« Last Edit: April 28, 2015, 02:56:12 pm by goodidea »

teseo

  • Hero Member
  • *****
  • Posts: 5642
Re: Order of regions in twitter theme
« Reply #5 on: April 28, 2015, 02:59:45 pm »
Th best strategy would depend on the real amount of "privileged" locations you want to add and the current status of your site (if it's new then no problems here, if on the contrary you already have ads that you need to keep, that would change things).

So, would you want to have total control of the order of every location, or just a few? ???

Regards

goodidea

  • Newbie
  • *
  • Posts: 25
Re: Order of regions in twitter theme
« Reply #6 on: April 28, 2015, 07:45:06 pm »
The site is being constructed so no real ads. There are only a few test ads.
Actually I want to include some new regions and also want them at the top of others that are automatically included.

Example:

New region 1
New region 2
New region 3
New region 4
New region 5
Regions that are automatically added

 
« Last Edit: April 28, 2015, 08:09:08 pm by goodidea »