Page 1 of 1

Re: Events Listing module - cross domain

Posted: Wed Jun 13, 2018 1:56 pm
by Rolf
RSS Feed(Reader) or use Cache Remote File tag? http://cms.ms/7S86

Example:
CGBlog content from main website made available as plain HTML "file" https://www.zeijen.nu/feeds/feed-svz-nieuws
With CacheRemoteFile tag read, stored and displayed at another site https://sportvereniging.zeijen.nu/

Re: Events Listing module - cross domain

Posted: Wed Jun 13, 2018 4:54 pm
by Rolf
What is the output of each site? List, table? Have a link?

Re: Events Listing module - cross domain

Posted: Thu Jun 14, 2018 9:26 am
by Rolf
I am playing in my mind with the idea it could be possible with something like a table or list.
You can sort them at the receiving website.

Very quick example using a table:

Client websites, 4 times something like:

Code: Select all

{foreach from=$events item='event'}
  <tr>
    <td>{$the_date_tags}</td>
    <td>{$the_description_tags}</td>
  </tr>
{/foreach}
Call the Event Listing module at a hidden page and no template, so plain HTML. Like described in my tutorial http://cms.ms/7S86

At the receiving website

Code: Select all

<table>
  <th>
    <td>Date</td>
    <td>Description</td>
  </th>
  {cache_remote_file url='http://www.website-1.com/index.php?page=some-alias'}
  {cache_remote_file url='http://www.website-2.com/index.php?page=some-alias'}
  {cache_remote_file url='http://www.website-3.com/index.php?page=some-alias'}
  {cache_remote_file url='http://www.website-4.com/index.php?page=some-alias'}
</table>
With jQuery table sorting you can put them in the correct order... At least that is how it could work in my brain right now :)
You should setup a test small test install to see how (if!) it works in real life...