Inscreva-se e colabore nesta página do Boletim Sambrasense, o site livre sobre São Brás de Alportel.

Diferenças entre edições de "Ajuda:Extensão RSS"

Da wiki Boletim Sambrasense
Ir para: navegação, pesquisa
(Criou nova página com 'A Extensão RSS permite inserir listas de conteúdos nas páginas do Boletim Sambrasense, a partir de ficheiros RSS. == Exemplo == <pre> <rss>http://rss.slashdot.org/Slash…')
 
 
Linha 6: Linha 6:
 
<rss>http://rss.slashdot.org/Slashdot/slashdot|charset=UTF-8|short|max=5</rss>
 
<rss>http://rss.slashdot.org/Slashdot/slashdot|charset=UTF-8|short|max=5</rss>
 
</pre>
 
</pre>
 +
 +
<code><nowiki>http://rss.slashdot.org/Slashdot/slashdot</nowiki></code> é o endereço do ''feed'' RSS do site [http://slashdot.org/ Slashdot].
  
 
== Lista de parámetros ==
 
== Lista de parámetros ==
Linha 11: Linha 13:
 
(Em inglês)
 
(Em inglês)
  
*charset=                The charset used by the feed. iconv is used to convert this.
+
<pre>
*short                  Do not show the description text for each news item.
+
charset=                The charset used by the feed. iconv is used to convert this.
*date                    Shows date/time stamp for each news item.
+
short                  Do not show the description text for each news item.
*max=x                  Shows x most recent headlines.
+
date                    Shows date/time stamp for each news item.
*highlight= term1 term2  The terms separated by a space are highlighted.
+
max=x                  Shows x most recent headlines.
*filter= term1 term2    Show only RSS items containing at least one of the terms.
+
highlight= term1 term2  The terms separated by a space are highlighted.
*filterout= term1 term2  Do not show any RSS items containing any terms
+
filter= term1 term2    Show only RSS items containing at least one of the terms.
*reverse                Display the RSS items in reverse order
+
filterout= term1 term2  Do not show any RSS items containing any terms
 +
reverse                Display the RSS items in reverse order
 +
</pre>
  
 
This extension supports '''filtering-out''' (i.e. <code>grep -v</code>) items based on title when in short list mode. It '''only displays unique titles'''
 
This extension supports '''filtering-out''' (i.e. <code>grep -v</code>) items based on title when in short list mode. It '''only displays unique titles'''

Edição atual desde as 14h55min de 21 de fevereiro de 2010

A Extensão RSS permite inserir listas de conteúdos nas páginas do Boletim Sambrasense, a partir de ficheiros RSS.

Exemplo

<rss>http://rss.slashdot.org/Slashdot/slashdot|charset=UTF-8|short|max=5</rss>

http://rss.slashdot.org/Slashdot/slashdot é o endereço do feed RSS do site Slashdot.

Lista de parámetros

(Em inglês)

charset=                The charset used by the feed. iconv is used to convert this.
short                   Do not show the description text for each news item.
date                    Shows date/time stamp for each news item.
max=x                   Shows x most recent headlines.
highlight= term1 term2  The terms separated by a space are highlighted.
filter= term1 term2     Show only RSS items containing at least one of the terms.
filterout= term1 term2  Do not show any RSS items containing any terms
reverse                 Display the RSS items in reverse order

This extension supports filtering-out (i.e. grep -v) items based on title when in short list mode. It only displays unique titles

Mais informação: