Quick question ... maybe I need coffee or it is getting late ...
I know how to display content on another page, all of it, or specific (based on name, etc).
How about specifying the other page name in the URL?
Say I have:
domain.com/blog/nice-article-1
I want to make a new file, where I only display some stuff in JSON format, like:
domain.com/API/nice-article-1
can I make the new page take the URL and output the content from blog.php "page name", based on the url that was called?
Should I be using Routes for this, or there is an easier way?
<cms:pages masterpage='blog.php' page_name='URLPARAMS'></cms:pages> or something
I know how to display content on another page, all of it, or specific (based on name, etc).
How about specifying the other page name in the URL?
Say I have:
domain.com/blog/nice-article-1
I want to make a new file, where I only display some stuff in JSON format, like:
domain.com/API/nice-article-1
can I make the new page take the URL and output the content from blog.php "page name", based on the url that was called?
Should I be using Routes for this, or there is an easier way?
<cms:pages masterpage='blog.php' page_name='URLPARAMS'></cms:pages> or something