Jump to content

What is the best way to achieve this


roelof
 Share

Recommended Posts

Hello,

Suppose I have a url like this : sitename/category/year/month/pagenumber.

Now I want to set the number of articles on a page based on values of the url.

So like this :

if year=2005 and month = 8 and pagenumber < 8 then number_of_articles = 1

if year = 2005 and month = 8 and pagenumber >=8 then number_of_articles = 3

if year = 2005 and month = 4 then number_of_articles= 4

If none of the above is true then number_of_articles = 3

What is the best way to achieve this in Processwire ?

Roelof

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...