Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'd probably have an external script somewhere that parses the RSS feed into json, then you can use ajax to load that into yr RSS div. This way you have more control over the layout and content.</p> <p>This should be a comment but I can't post them yet! Sorry, I'll try and post some example code here when I'm not on my phone too:</p> <p>EDIT:</p> <p>ok - here is an incomplete answer but hopefully should point you in the right direction.</p> <p>PHP example to parse rss:</p> <pre><code>&lt;?php header('Content-type: application/json'); $feed = file_get_contents('http://www.essent.nl/content/system/xml/rss_nieuws.rss'); $xml = new SimpleXmlElement($feed); foreach($xml-&gt;channel-&gt;item as $i){ echo json_encode($i); } ?&gt; </code></pre> <p>You'd want to create your own data structure out of this rather than just echo'ing it to the screen. Make the output available:</p> <p>Example Output</p> <pre><code>{ "title": "this is a title", "description": "this is the description", "link": "this is the link to the content" }, { "title": "this is another title", "description": "this is another description", "link": "this is another link to the content" }, { "title": "etc", "description": "etc", "link": "etc" } </code></pre> <p>Now in your javascript you load in what you want:</p> <pre><code>&lt;script&gt; $.get('myphpoutput.php', function(){ //do stuff with the json for display }) &lt;/script&gt; </code></pre> <p>With this approach you have total control over the content during the php and javascript stages. hope this helps!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload