Generation de guid et pubdate si les champs n'existent pas pour

l'article ou le chapitre
This commit is contained in:
Frédéric Couchet 2021-10-07 09:34:35 +02:00 committed by root
parent 26b4aeb701
commit a4f9f7d82e

View File

@ -2,12 +2,14 @@
<item> <item>
<title>[(#TITRE|attribut_html|texte_backend)]</title> <title>[(#TITRE|attribut_html|texte_backend)]</title>
<link>[(#URL_ARTICLE|url_absolue)]</link> <link>[(#URL_ARTICLE|url_absolue)]</link>
[<guid isPermaLink="false">(#DRUPAL_GUID|supprimer_tags|texte_backend)</guid>]
[(#REM) [(#REM)
[<pubDate>(#DRUPAL_PUBDATE)</pubDate>] [<pubDate>(#DRUPAL_PUBDATE)</pubDate>]
] ]
[(#DRUPAL_PUBDATE|choixsivide{<pubDate>[(#DATE|date_822)]</pubDate>,<pubDate>#DRUPAL_PUBDATE</pubDate>})] [(#DRUPAL_PUBDATE|choixsivide{<pubDate>[(#DATE|date_822)]</pubDate>,<pubDate>#DRUPAL_PUBDATE</pubDate>})]
[(#DRUPAL_GUID|choixsivide{<guid isPermaLink="false">[(#URL_ARTICLE|url_absolue)]</guid>,<guid isPermaLink="false">#DRUPAL_GUID</guid>})]
[(#PODCAST_DUREE|choixsivide{"",<enclosure length="0" type="audio/ogg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].ogg"/> [(#PODCAST_DUREE|choixsivide{"",<enclosure length="0" type="audio/ogg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].ogg"/>
<enclosure length="0" type="audio/mpeg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].mp3"/>})] <enclosure length="0" type="audio/mpeg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#PODCAST_CODE)]/libre-a-vous-[(#PODCAST_CODE)].mp3"/>})]
@ -62,8 +64,8 @@
<item> <item>
<title>[(#TITRE|attribut_html|texte_backend)]</title> <title>[(#TITRE|attribut_html|texte_backend)]</title>
<link>[(#URL_ARTICLE|url_absolue)]</link> <link>[(#URL_ARTICLE|url_absolue)]</link>
[<guid isPermaLink="false">(#DRUPAL_GUID|supprimer_tags|texte_backend)</guid>] [(#DRUPAL_PUBDATE|choixsivide{<pubDate>[(#DATE|date_822)]</pubDate>,<pubDate>#DRUPAL_PUBDATE</pubDate>})]
[<pubDate>(#DRUPAL_PUBDATE)</pubDate>] [(#DRUPAL_GUID|choixsivide{<guid isPermaLink="false">[(#URL_CHAPITRE|url_absolue)]</guid>,<guid isPermaLink="false">[(#DRUPAL_GUID|supprimer_tags|texte_backend)]</guid>})]
<enclosure length="0" type="audio/ogg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg"/> <enclosure length="0" type="audio/ogg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].ogg"/>
<enclosure length="0" type="audio/mpeg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3"/> <enclosure length="0" type="audio/mpeg" url="https://media.april.org/audio/radio-cause-commune/libre-a-vous/emissions/[(#CODE_PODCAST)]/libre-a-vous-[(#CODE_PODCAST)]-[(#CODE_FICHIER)].mp3"/>
<description>[(#DESCRIPTION_RSS|propre|texte_backend)] Les références : [(#REFERENCES_SUJET|propre|texte_backend)] <description>[(#DESCRIPTION_RSS|propre|texte_backend)] Les références : [(#REFERENCES_SUJET|propre|texte_backend)]