- Posts: 3722
COMMUNITY FORUM
Show items with current creation date
- william white
-
- Offline
- Platinum Member
Olivier Nolbert said:Stavors,
In attachment, a category.php modified file that retrieves the x items of the day and displays them before the core item list.
You can configure in the file the number of items of the day to display. The items are sorted the same way as other files.
Sure, all this could be done in a nice K2 plugin but the essential is here.
Olivier
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
But it doesn't show the image of each item on the category.php
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
You'll have it tomorrow,
Olivier
Stavros said:Yes, it is very nice job ;)
But it doesn't show the image of each item on the category.php
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
the category.php file which displays item image.
Olivier
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Everything works fine ;)
Thank u Olivier.
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I'll make the modifications for monday.
Olivier
Stavros said:Another issue of category.php is with the pagination. If you click on the second page you will see again the same items with the current date as you could see on the first page. So the items with the current date is displaying in the whole pages. I would prefere to display only in the first page and in the following pages to display the rest of items.
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I've added a test and this should work as you want.
Olivier
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Category
Add category
Rss feed
When you see the category page as a public user you can see the web page normally.
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I've update the file, could you test it ?
Olivier
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
It display also twice the specific item on current items list and on the rest items list.
Please Log in or Create an account to join the conversation.
- stavroch
-
Topic Author
- Offline
- Elite Member
- Posts: 295
When the public user will see the current items the images are displayed normally.
Please Log in or Create an account to join the conversation.
- Tyania
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.