CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • changing sort order on subscribe form?
Pages: [1]

Author Topic: changing sort order on subscribe form?  (Read 1933 times)

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
changing sort order on subscribe form?
February 16, 2008, 08:49:41 am
Hi,

Is there a way to change the sort order on the subscribe form?

http://www.kabissa.org/subscribe

It seems to sort by group ID number. Can I change the ID number somewhere or do I need to delete the groups and recreate them in the order I want?

Cheers,

Tobias
Kabissa - Space for Change in Africa http://kabissa.org

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: changing sort order on subscribe form?
February 16, 2008, 10:13:19 am

no. There is currently no sort order associated with that query and hence it gets shown by id (mysql default). Your easiest bet would be to hack the code at: CRM/Mailing/Form/Subscribe.php

I've fixed the code to add an ORDER BY title for v2.0

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: changing sort order on subscribe form?
February 16, 2008, 10:34:00 am
thanks, lobo..

would it be imaginable to use phpmyadmin to change the ID number of the group - or would this mess up other things?

cheers,

tobias
Kabissa - Space for Change in Africa http://kabissa.org

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: changing sort order on subscribe form?
February 16, 2008, 10:51:16 am

can u file an issue for this and we'll fix it in 2.1. We just need to add weights to the group table and sort it on weight. I suspect thats a easier long term solution

regarding fixing the ids using PMA, that should work in most cases. However if u r using smart groups, you need to be a bit more careful since group ids might be used there. as always take a backup of the database etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: changing sort order on subscribe form?
February 16, 2008, 10:57:46 am
thanks for the quick reply.

cheers,

tobias
Kabissa - Space for Change in Africa http://kabissa.org

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • changing sort order on subscribe form?

This forum was archived on 2017-11-26.