Welcome, Guest
Username Password: Remember me

Drop-downs order
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Drop-downs order

Drop-downs order 24 May 2010 12:57 #2204

  • memo
  • OFFLINE
  • Senior Boarder
  • Hi there !!
  • Posts: 75
is there a way to chage the order of the drop downs ?
drop.JPG
Last Edit: 24 May 2010 12:57 by memo.

Re: Drop-downs order 24 May 2010 13:08 #2205

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
No, there is not a way to order the filters at the moment (unless i'm missing something), because they're hard coded in the views. I can put it in as a feature request for the next version, but until then, you can go into the template of the view in question, and reorder them manually.

Re:Drop-downs order 24 May 2010 13:30 #2206

  • memo
  • OFFLINE
  • Senior Boarder
  • Hi there !!
  • Posts: 75
but doing this will affect all of the studies I already have right?

Re:Drop-downs order 24 May 2010 13:36 #2207

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
What do you mean?

If you reorder the filters in the code, everything should still function as expected, the only thing different will be the order of the filters.

Re:Drop-downs order 24 May 2010 14:21 #2208

  • memo
  • OFFLINE
  • Senior Boarder
  • Hi there !!
  • Posts: 75
I see what you mean, I was thinking on something else..
Can you point me out to the file im supposed to be editing?

Re:Drop-downs order 24 May 2010 15:27 #2209

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
For the studies list view, edit "components/com_biblestudy/views/studeslist/tmpl/default_main.php" (or default_custom.php)

At around lines 93-114, you will find:
 
if (($this->params->get('show_locations_search') > 0 && !($location_menu)) || $this->params->get('show_locations_search') > 1) { echo $this->lists['locations'];}
if (($this->params->get('show_book_search') > 0 && $book_menu == -1) || $this->params->get('show_book_search') > 1)
{
echo $this->lists['books'] .' ';
echo JText::_('From chapter: ').' <input type="text" id="minChapt" name="minChapt" size="3"';
if (JRequest::getInt('minChapt','','post')) {
echo 'value="'.JRequest::getInt('minChapt','','post').'"';
}
echo '> ';
echo JText::_('To chapter: ').' <input type="text" id=maxChapt" name="maxChapt" size="3"';
if (JRequest::getInt('maxChapt','','post')) {
echo 'value="'.JRequest::getInt('maxChapt','','post').'"';
}
echo '> ';
}
if (($this->params->get('show_teacher_search') > 0 && ($teacher_menu == -1)) || $this->params->get('show_teacher_search') > 1) { echo $this->lists['teacher_id']; }
if (($this->params->get('show_series_search') > 0 && ($series_menu == -1)) || $this->params->get('show_series_search') > 1) { echo $this->lists['seriesid']; }
if (($this->params->get('show_type_search') > 0 && ($messagetype_menu == -1)) || $this->params->get('show_type_search') > 1) { echo $this->lists['messagetypeid']; }
if ($this->params->get('show_year_search') > 0) { echo $this->lists['studyyear']; }
if ($this->params->get('show_order_search') > 0) { echo $this->lists['orders'];}
if (($this->params->get('show_topic_search') > 0 && ($topic_menu == -1)) || $this->params->get('show_topic_search') > 1) { echo $this->lists['topics'];}
if ($this->params->get('show_popular') > 0 ) { echo $this->popular;}
 


You have to reorder those IF statements the way that you want. Basically just move lines around.

Hope that helps. If you're having trouble, I can do it for you if you let me know that order.
  • Page:
  • 1
  • 2
Time to create page: 0.67 seconds