Json/XML: List items and have a detail pages
Posted: Mon Nov 19, 2018 1:02 pm
Hi,
I'm currently making a website where i have sync with an external JSON or XML file.
i have done this before for video's (like here), but now, there are multiple elements that complicate things.
A: pagination:
The json/xml file will list up to 250 items. We can't all put them on 1 page.
B: detail page
Now the customer wants a detail page for each item in the xml/json file with an url like http://www.example.com/video/video-alias
I'm thinkin for point B i need to make a detail page that loads a scipt. and with a htaccess rewrite i'll have to rewrite all links for "video/*" to use the detail page and give the video alias as a variable.
Then i just need to find out how i can do the pagination on the list.
any thoughts or experiences?
I'm currently making a website where i have sync with an external JSON or XML file.
i have done this before for video's (like here), but now, there are multiple elements that complicate things.
A: pagination:
The json/xml file will list up to 250 items. We can't all put them on 1 page.
B: detail page
Now the customer wants a detail page for each item in the xml/json file with an url like http://www.example.com/video/video-alias
I'm thinkin for point B i need to make a detail page that loads a scipt. and with a htaccess rewrite i'll have to rewrite all links for "video/*" to use the detail page and give the video alias as a variable.
Then i just need to find out how i can do the pagination on the list.
any thoughts or experiences?