I’m trying to build out a weblog for a news section and i’d like it to work like this:
my-site/news/ = a list of all news weblog entries, with pagination
my-site/news/my-article/ = a single entry
I started off with an if statement that said if segment_3 == “” show the list, but that all fell apart when I introduced the pagination. I’d have to think I’m just missing something because adding OR if segment_3 == “P1” and so on sounds ridiculous.
Can anyone share any code samples of how to make this work without making the url more complex?
Thanks,
Marc