- Posts: 295
COMMUNITY FORUM
Show items with current creation date
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
14 years 2 days ago #89387
by stavroch
Show items with current creation date was created by stavroch
How can I show items in category list with current creation date?Note: I have items from the past and from the feature :) but I would like to show on the category page the items with the current date.
Please Log in or Create an account to join the conversation.
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
13 years 11 months ago #89388
by stavroch
Replied by stavroch on topic Show items with current creation date
Any news about the above?
Please Log in or Create an account to join the conversation.
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
13 years 11 months ago #89389
by stavroch
Replied by stavroch on topic Show items with current creation date
Hy Leigh,
My site is an entertainment portal. For example I have category with the cinema movies. I have define on the creation date the date where the movie will start. So I would like to display on the category page the whole items where start today. (creation date = current date).
My site is an entertainment portal. For example I have category with the cinema movies. I have define on the creation date the date where the movie will start. So I would like to display on the category page the whole items where start today. (creation date = current date).
Please Log in or Create an account to join the conversation.
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
13 years 11 months ago #89390
by stavroch
Replied by stavroch on topic Show items with current creation date
and how can I sort the items on the category page?
Please Log in or Create an account to join the conversation.
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
13 years 11 months ago #89391
by stavroch
Replied by stavroch on topic Show items with current creation date
I don't want manually I would like to sort the items through the creation date, where the creation date = current date.
Please Log in or Create an account to join the conversation.
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
13 years 11 months ago #89392
by stavroch
Replied by stavroch on topic Show items with current creation date
The Oldest first display the oldest items for example items where the creation date is 28 of Oct. it doesn't display the current date items ex 18 Oct.
Please Log in or Create an account to join the conversation.
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
13 years 11 months ago #89393
by stavroch
Replied by stavroch on topic Show items with current creation date
you are right. but it will not display the items with the current date. I could delete the old items So to display the current date items but I would like to have as a movie library. If the user choose horror film then they can see the whole movies.
Please Log in or Create an account to join the conversation.
- Jiliko.net
- Offline
- Platinum Member
Less
More
- Posts: 567
13 years 11 months ago #89394
by Jiliko.net
Replied by Jiliko.net on topic Show items with current creation date
Hi Stavros,
What you can do is creating a K2 template override and add some code in the 'category.php' file to filter items by current date before they're being displayed.
Olivier
What you can do is creating a K2 template override and add some code in the 'category.php' file to filter items by current date before they're being displayed.
Olivier
Please Log in or Create an account to join the conversation.
- stavroch
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 295
13 years 11 months ago #89395
by stavroch
Replied by stavroch on topic Show items with current creation date
What kind of code do I have to write?
Please Log in or Create an account to join the conversation.
- troponin
- Offline
- Platinum Member
Less
More
- Posts: 398
13 years 11 months ago #89396
by troponin
Replied by troponin on topic Show items with current creation date
should be something similiar to --> see attachment
but I think Olivier aka Yoda should correct me - could be that the code isn't 100% correct. Didn't tried it.
Stavros said:What kind of code do I have to write?
but I think Olivier aka Yoda should correct me - could be that the code isn't 100% correct. Didn't tried it.
Stavros said:What kind of code do I have to write?
Please Log in or Create an account to join the conversation.