Keyword

Show items with current creation date

More
13 years 10 months ago #89407 by william white
Replied by william white on topic Show items with current creation date
This is good code and very helpfull in understanding how to get a custom item list!

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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
13 years 10 months ago #89408 by stavroch
Replied by stavroch on topic Show items with current creation date
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.

More
13 years 10 months ago #89409 by Jiliko.net
Replied by Jiliko.net on topic Show items with current creation date
Stavros,

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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
13 years 10 months ago #89410 by stavroch
Replied by stavroch on topic Show items with current creation date
Also I get RSS feed page instead of category page. The source code is on the file.
Attachments:

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

More
13 years 10 months ago #89411 by Jiliko.net
Replied by Jiliko.net on topic Show items with current creation date
Hi,

the category.php file which displays item image.

Olivier

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

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
13 years 10 months ago #89412 by stavroch
Replied by stavroch on topic Show items with current creation date
Great script ;)
Everything works fine ;)

Thank u Olivier.

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

  • stavroch
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
13 years 10 months ago #89413 by stavroch
Replied by stavroch on topic Show items with current creation date
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.

More
13 years 10 months ago #89414 by Jiliko.net
Replied by Jiliko.net on topic Show items with current creation date
Hi Stavros,

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.

More
13 years 10 months ago #89415 by Jiliko.net
Replied by Jiliko.net on topic Show items with current creation date
Hi Stavros,

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
  • stavroch's Avatar Topic Author
  • Offline
  • Elite Member
More
13 years 7 months ago #89416 by stavroch
Replied by stavroch on topic Show items with current creation date
I found one bug. When you are logged in it show this blank page

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.


Powered by Kunena Forum