How can I choose an entry from xml ?
This is an open discussion with 1 reply, filed under General.
Search
If you go down this route you'll end up needing to manually create a new page each time you create a new entry.
Depending on what you're trying to achieve, a better way to do this might be:
- Add a new field called 'name' to your articles section
- Edit your two entries and enter the names 'articleOne' and 'articleTwo'
- Create a page called 'article' and give it one parameter – e.g. 'foo'.
- In your datasource, add a filter for 'name' and enter
{$foo}
as the value.
This means that when you visit /article/articleOne/ your data source will be filtered to only include the article with the name 'articleOne'.
Create an account or sign in to comment.
Hi, let's say I made a articles' section with 2 entries.
Now, I've created 2 pages let's say articleOne.html and articleTwo.html
How can I choose which entry should be associated with a page ?
Thanks.