CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Events Listing module - cross domain
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=78565
Page 1 of 1

Author:  Rolf [ Wed Jun 13, 2018 1:56 pm ]
Post subject:  Re: Events Listing module - cross domain

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/

Author:  Rolf [ Wed Jun 13, 2018 4:54 pm ]
Post subject:  Re: Events Listing module - cross domain

What is the output of each site? List, table? Have a link?

Author:  Rolf [ Thu Jun 14, 2018 9:26 am ]
Post subject:  Re: Events Listing module - cross domain

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:
\$1:
{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
\$1:
<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...

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/