Re: Patch styliser_par_z pour des dist-composition

nicod_ <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Le 04/03/2019 à 21:47, nicod_ a écrit :
> Le top serait en plus que ça ne nécessite pas la création d'un 
> footer/article.html et footer/rubrique.html, qui ne sont pas utiles non 
> plus, mais le patch serait un peu plus gros.

Voilà, mieux :

http://spip.pastebin.fr/56211

pour une page article avec une compo, ça remonte 
footer/article-compo.html si footer/article.html existe, sinon ça 
remonte footer/dist-compo.html même si footer/article.html n'existe pas, 
sinon comme d'hab.

On peut donc avoir un dossier footer de ce type :

footer/dist.html
footer/dist-compo1.html
footer/dist-compo2.html

avec des squelettes bien distincts, au lieu de :

footer/dist.html
footer/article.html
footer/rubrique.html
footer/article-compo1.html
footer/rubrique-compo1.html
footer/article-compo2.html
footer/rubrique-compo2.html

avec des squelettes dupliqués ou qui s'incluent.

-- 
nicod_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.