Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hello everybody...I have a question, can I use master page variables from another CouchCMS site in another similar CouchCMS site?

I have designed a CouchCMS website, I created a template for replays of a weekly training video that we do, I have then used pages to create another page that shows the last 5 training videos. Would it be possible to use pages to display this same page on another CouchCMS site similar to an RSS feed?
Hi and welcome, intdirjp.

Couch variables and templates etc. are site specific so they cannot be used directly on another site (though that too might be Couch managed).

However, I think you may have already answered your own question -
suppose SiteA has the video pages and you want to show the latest 5 on SiteB.
We can do this by creating a template on SiteA that uses cms:pages to loop through the videos and output XML (or JSON).

Now SiteB can invoke SiteA's URL of the template above and display the received XML or JSON after appropriately formatting it - possibly using JavaScript.

This is how APIs work (and so does RSS).

Hope this helps.
sounds like a great idea, thanks!
3 posts Page 1 of 1
cron