reverse date navigation?
Permalink
so at the moment, my date navigation displays all "calendar_event" page types and displays the navigation like so:
> NOVEMBER
OCTOBER
-- 10/31
-- 10/09
-- 10/01
> SEPTEMBER
any way to reverse this? to this:
> SEPTEMBER
OCTOBER
-- 10/01
-- 10/09
-- 10/31
> NOVEMBER
secondly, is there a way to have a link like "view full calendar" from the homepage open the current date's event or nearest event. so if i clicked this homepage link, it would go and open up the 10/09 date event
> SEPTEMBER
OCTOBER
-- 10/01
-- 10/09 (this one has been selected with page details on right)
-- 10/31
> NOVEMBER
> NOVEMBER
OCTOBER
-- 10/31
-- 10/09
-- 10/01
> SEPTEMBER
any way to reverse this? to this:
> SEPTEMBER
OCTOBER
-- 10/01
-- 10/09
-- 10/31
> NOVEMBER
secondly, is there a way to have a link like "view full calendar" from the homepage open the current date's event or nearest event. so if i clicked this homepage link, it would go and open up the 10/09 date event
> SEPTEMBER
OCTOBER
-- 10/01
-- 10/09 (this one has been selected with page details on right)
-- 10/31
> NOVEMBER
really could use some help on this. will pay $ if needed!
I'll try it.
But,I don't have calender add-in.
Therefore, I need the money to buy them.
But,I don't have calender add-in.
Therefore, I need the money to buy them.
its the "date navigation"
http://www.concrete5.org/marketplace/addons/date_navigation/...
do you have that?
http://www.concrete5.org/marketplace/addons/date_navigation/...
do you have that?
No, I do not have.
My guess is SQL used to get the date list is in the controller.php and if you edit that by adding something like ' ORDER BY `date` DESC' it would reverse the dates.
but,I thinks use custom template.
because, from both available.
because, from both available.
well your post got me in the right direction. i was looking at the view.php but it was the controller that i needed to modify.
instead of:
$pl->sortByPublicDateDescending();
i used this:
$pl->sortByPublicDate();
worked like a charm.
instead of:
$pl->sortByPublicDateDescending();
i used this:
$pl->sortByPublicDate();
worked like a charm.