- Posts: 3
COMMUNITY FORUM
category page by date
- Andre
-
Topic Author
- Offline
- New Member
Less
More
10 years 2 months ago #141162
by Andre
category page by date was created by Andre
Hi there,
I need to create a category page, by date, that shows only the items that have been inserted on the last day.
Like:
page 1 - items of day x
page 2 - items previous to day x
page 3 - ..
I need the possibility to switch between date, probably using the bottom "previous/next" buttons.
I guess the logic is, to put all items in that page while date is equal to the date of the previous item. Else it belongs to a new page.
I've been working on category.php trying to figure it out, but i just cant seem to get it.
This is the date value I'm using:
echo JHTML::_('date', $this->item->publish_up , JText::_('K2_DATE_FORMAT_LC'));
I hope i made myself clear, if not please ask.
Thanks!
I need to create a category page, by date, that shows only the items that have been inserted on the last day.
Like:
page 1 - items of day x
page 2 - items previous to day x
page 3 - ..
I need the possibility to switch between date, probably using the bottom "previous/next" buttons.
I guess the logic is, to put all items in that page while date is equal to the date of the previous item. Else it belongs to a new page.
I've been working on category.php trying to figure it out, but i just cant seem to get it.
This is the date value I'm using:
echo JHTML::_('date', $this->item->publish_up , JText::_('K2_DATE_FORMAT_LC'));
I hope i made myself clear, if not please ask.
Thanks!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #141178
by Krikor Boghossian
Replied by Krikor Boghossian on topic category page by date
Hello Andre,
By default K2 does not offer this functionality.
I think you should look for an extension because I do not think that this is possible with overrides.
By default K2 does not offer this functionality.
I think you should look for an extension because I do not think that this is possible with overrides.
Please Log in or Create an account to join the conversation.
- Andre
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
10 years 2 months ago #141179
by Andre
Replied by Andre on topic category page by date
Hi Krikor,
Thanks for your answer.
What if i just want to have a date indication above the items of the same date, whould it be possible?
Exemple:
20-02-2015
item 1
item 2
19-02-2015
item 3
item 4
Thanks for your answer.
What if i just want to have a date indication above the items of the same date, whould it be possible?
Exemple:
20-02-2015
item 1
item 2
19-02-2015
item 3
item 4
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #141278
by Krikor Boghossian
Replied by Krikor Boghossian on topic category page by date
I am not sure that this is easy to accomplish either.
You could compare and insert the Dates with jQuery when the document loads. This would have to a completely custom jQuery script.
You could compare and insert the Dates with jQuery when the document loads. This would have to a completely custom jQuery script.
Please Log in or Create an account to join the conversation.