Welcome Guest, Not a member yet? Register   Sign In
Pagination and index template conflict
#1

[eluser]Unknown[/eluser]
I currently have a news section with lots of stories and summaries. I'm using pagination at the the bottom. All is working but I need some advice on structuring the details page url

eg:

http://mysite.com/news

Title
Summary
read more >

Title two
Summary two
read more >

page 1 of 5

I want the "read more" url to look like this: http://mysite.com/news/title-two

However I'm running into conflicts because of pagination. Basically segment_2 is being used by pagination. eg http://mysite.com/P2

The work around I have is to create a landing template like so: news.group/news-story.html

then link my entry link this: <a href="{url_title_path='news/news-story'}">Read More ></a>

but that adds the unwanted "news-story" to the url

can I do all of this in my news/index.html template?




Theme © iAndrew 2016 - Forum software by © MyBB