Page Num and EntryName in one DS
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
Hi nexjsa.
As far as I can tell, to achieve this you have to write a bit of code.
First, I’d create two datasources, one for single articles and the other for pagination. Then I’d use a slightly modified version of Nils’ great tip to prevent one of the datasource to execute.
You can, for example, use is_numeric to determine wether your url param is a page or an article title.
Thanks, that really helped. :)
Create an account or sign in to comment.
Hello, I’m a bit new to symphony, and I’m not quite sure if what I want to do is possible the way I want it to.
For ease of explaining let’s say I have a list of articles across 5 pages. Each page is accessed by {$root}/articles/1, where 1 - page number.
What I need is two types of “views”:
Is that possible to do within one DS? I’m not quite sure how to form URL parameters for this case either.
Any suggestions? :)