ajout du champ podcast_sommaire

This commit is contained in:
chankalan 2021-09-07 10:28:39 +02:00
parent 3dfd8d1a12
commit d05c04a534
4 changed files with 18 additions and 2 deletions

View File

@ -9,6 +9,20 @@ function libreavous_declarer_champs_extras($champs = array()) {
$champs['spip_articles'] = array();
}
$champs['spip_articles']['podcast_sommaire'] = array(
'saisie' => 'textarea',
'options' => array(
'nom' => 'podcast_sommaire',
'label' => 'Sommaire',
'rows' => '10',
'cols' => '40',
'sql' => 'text DEFAULT \'\' NOT NULL',
'inserer_barre' => 'edition',
),
'verifier' => array(
),
);
$champs['spip_articles']['podcast_code'] = array(
'saisie' => 'input',
'options' => array(

View File

@ -61,6 +61,7 @@ function libreavous_upgrade($nom_meta_base_version, $version_cible) {
$maj['0.1.4'] = array(array('maj_tables', array('spip_articles')));
cextras_api_upgrade(libreavous_declarer_champs_extras(), $maj['0.1.5']);
cextras_api_upgrade(libreavous_declarer_champs_extras(), $maj['0.1.6']);
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);

View File

@ -1,8 +1,8 @@
<paquet
prefix="libreavous"
categorie="squelette"
version="0.5.0"
schema="0.1.5"
version="0.5.1"
schema="0.1.6"
etat="dev"
compatibilite="[3.2.8;4.0.*]"
>

View File

@ -53,6 +53,7 @@
</div>
]
[<div class="emission-sommaire #EDIT{podcast_sommaire}">(#PODCAST_SOMMAIRE|propre)</div>]
<BOUCLE_sl(CHAPITRES){id_article}{type_sujet=SL}>#SET{chapitres,oui}[(#REFERENCES_SUJET|oui)#SET{references,oui}]
<div class="sujet_principal">