Posted in

Widget para entradas rss

Para insertar un widget con entradas rss o atom.

Parameters

Parameter Required Description
url Yes The complete url to the RSS feed ie http://feeds.reuters.com/reuters/oddlyEnoughNews
options No Optional settings for the plug-in (see below).

Plug-in options

Parameter Default Description
limit 10 The number of feeds to return.
header true If true, includes the header section containing the feed name and link.
titletag h4 Specifies the HTML tag for the feed title.
date true If true, includes the feed date section.
content true If true, includes the feed description.
snippet true If true, the snippet short description is shown available when available.
showerror true If true and an error is returned from the Google Feeds API, the error message is shown.
errormsg Replaces the default friendly message when an error occurs.
key null Optionally use a Google API key.

 

Devuelve si todo ok:

<div id="test">
 <div><
 <a>... (heading) ...</a>
 </div>
 <div></div>
 <ul>
 <li>
 <h4><a>... (title) ...</a></h4>
 <div>... (date) ...</div>
 <p>... (description) ...</p>
 <li>
 <li>...<li>
 ...
 </ul>
 </div>
 </div>

Si hay cualquier error devuelve:


<div id="test">
 <div>
 <p>... (error message) ...</p>
 </div>
 </div>

zrssfeed-101

Deixa un comentari

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *


The reCAPTCHA verification period has expired. Please reload the page.