Welcome, Guest
Username: Password: Remember me
This is the support for EventList 1.1.x, available here in the downloads section.

For all support requests, please provide your current versions of joomla, and of the extensions.
  • Page:
  • 1
  • 2

TOPIC:

Reverse archive output 7 years 2 months ago #11483

Hi!
I'm having JEL 1.1beta3.2.3-6.
Anyone can tell how to display archive output from last to first?
sorry for my bad english

Please Log in or Create an account to join the conversation.

Reverse archive output 7 years 2 months ago #11484

@UksusoFF

question:
do you only need it for the archive?

if so the code in the model needs to be adjusted by adding the task "archive" and the DESC statement (instead of ASC). Think it also needs to be addressed in the view.

Have to take a look at it to be certain but don't have the time right now.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3
The following user(s) said Thank You: UksusoFF

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.

Reverse archive output 7 years 2 months ago #11485

ok, found it
// Get the filter request variables
		$this->setState('filter_order', JRequest::getCmd('filter_order', 'a.dates'));

		$task 		= JRequest::getWord('task');
		if ($task == 'archive') {
			$this->setState('filter_order_dir', JRequest::getWord('filter_order_Dir', 'DESC'));
		} else {
		   $this->setState('filter_order_dir', JRequest::getWord('filter_order_Dir', 'ASC'));
		}
components/com_eventlist/models/eventlist.php
sorry for my bad english

Please Log in or Create an account to join the conversation.

Reverse archive output 7 years 2 months ago #11486

:) good to hear you found the solution.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

Reverse archive output 7 years 2 months ago #11487

I think it will be very correctly to make as default in new version. ;)
Only for archive
sorry for my bad english

Please Log in or Create an account to join the conversation.

Reverse archive output 7 years 2 months ago #11488

:) it can be added to the to-do list.

//
it's for several views.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.
  • Page:
  • 1
  • 2
Time to create page: 0.405 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......