Wednesday, May 23rd

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Not able to order Modules in Joomla 1.6
(1 viewing) (1) Guest
Tips and tricks only - please put all other posts in another forum!
  • Page:
  • 1

TOPIC: Not able to order Modules in Joomla 1.6

Not able to order Modules in Joomla 1.6 1 year, 1 month ago #3977

  • robertf
  • OFFLINE
  • Senior Boarder
  • Posts: 50
  • Karma: 3
For those of you just getting into Joomla 1.6, this tip could save you a bit of time and frustration :

www.joomlahackers.net/joomla-1.6-tutoria...es-in-joomla-16.html

Once followed, ordering worked for me just as in 1.5 .

Regards,
Robert

Re: Not able to order Modules in Joomla 1.6 1 year, 1 month ago #3979

  • Laurie
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 3
Thanks Robert. I discovered that the hard way but didn't realize till now that there has been a change. I just thought I'd forgotten how to do it. So many mysteries in Joomla, huh!

How are you going with Joomla 1.6 generally? I saw your other post where you'd had some trouble with the migration. I had my own set of troubles.

Looking for freebie templates for Joomla 1.6, I've found several that have missed out on the template parameters.

The 1.6 version of Xmap is working, sort of, but missing all the variables.

I went to a lot of trouble learning and configuring the access permissions, only to find I couldn't lock up the image folders. Maybe there's a way but I couldn't find it.
On the way to being a basic Joomla user.
www.australianexplorers.com.au/

Re: Not able to order Modules in Joomla 1.6 1 year, 1 month ago #3982

  • dex
  • OFFLINE
  • Moderator
  • Posts: 779
  • Karma: 12
Who knew eh? That was an inscrutable one.
It would be lovely if someone had written a cheatsheet - things you dont know about 1.6
Dex Randall
Joomla! web design and production
Sydney JUG organiser + joomla.org.au site admin
www.spikesystems.com.au
www.twitter.com/dexx

Re: Not able to order Modules in Joomla 1.6 1 year, 1 month ago #3985

  • robertf
  • OFFLINE
  • Senior Boarder
  • Posts: 50
  • Karma: 3
Makes you wonder how we survived without Google and user forums !

Re: Not able to order Modules in Joomla 1.6 1 year, 1 month ago #3986

  • robertf
  • OFFLINE
  • Senior Boarder
  • Posts: 50
  • Karma: 3
PS Laurie: I'm using Artisteer to create a Joomla 1.6 site - learning both as I go along! One good thing about Artisteer is that you don't have to worry about template parameters ... there aren't any!! So far I like the look and feel of 1.6 from an Admin point of view, but I haven't delved deeply into permissions. I think I'll just block everyone from the site
Last Edit: 1 year, 1 month ago by robertf.

Re: Not able to order Modules in Joomla 1.6 1 year, 1 month ago #3987

  • Laurie
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 3
Thanks Robert.

Dex:

It would be lovely if someone had written a cheatsheet - things you dont know about 1.6


Well, I could make a start on the article but I'd be a bit short on the answers.

I have two more issues, or maybe it's the same issue, with the site architecture. I'll do a new post, rather than confuse this one.
On the way to being a basic Joomla user.
www.australianexplorers.com.au/

Re: Not able to order Modules in Joomla 1.6 1 year, 1 month ago #4026

  • tuum
  • OFFLINE
  • Moderator
  • Posts: 46
  • Karma: 0
This wasn't obvious to me either, and took me a while to figure out. Here is some technical details for developers that may help.

You need to click on the column title "ordering" to sort by that column before you will see the up and down arrows.

If you look at com_weblinks, it is sorted by title by default. If you wanted to change this to default to sorting by ordering, you could edit
/administrator/components/com_weblinks/models/weblinks.php
Disclaimer: I'm not suggesting that you modify ANY core files, just giving other 3rd party developers reading this a tip to where you can play with this functionality.

//line 90
parent::populateState('a.title', 'asc');

//change to
parent::populateState('a.ordering', 'asc');


If you look at the view
/administrator/components/com_weblinks/views/weblinks/tmpl/default.php

//line 136
<?php if ($listDirn == 'asc') : ?>
<span><?php echo $this->pagination->orderUpIcon($i, ($item->catid ==@$this->items[$i-1]->catid), 'weblinks.orderup', 'JLIB_HTML_MOVE_UP',$ordering); ?></span>
<span><?php echo $this->pagination->orderDownIcon($i,$this->pagination->total, ($item->catid == @$this->items[$i+1]->catid),'weblinks.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
<?php elseif ($listDirn == 'desc') : ?>
<span><?php echo $this->pagination->orderUpIcon($i, ($item->catid ==@$this->items[$i-1]->catid), 'weblinks.orderdown', 'JLIB_HTML_MOVE_UP',$ordering); ?></span>
<span><?php echo $this->pagination->orderDownIcon($i,$this->pagination->total, ($item->catid == @$this->items[$i+1]->catid),'weblinks.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
<?php endif; ?>


You'll see that the move up and move down buttons are only shown when it's sorted ascending or decending.


regards

Tim
  • Page:
  • 1
Moderators: austega
Time to create page: 0.48 seconds
You are here: Forum