# Les pages publiées pourraient hériter du paramètre d'image d'arrière-plan des catégories

**URL:** https://meta.discourse.org/t/published-pages-could-inherit-categories-background-image-setting/243851
**Category:** Feature
**Tags:** page-publishing
**Created:** [Novembre 1, 2022, 11:07 UTC](https://meta.discourse.org/t/published-pages-could-inherit-categories-background-image-setting/243851 "2022-11-01T23:07:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [Novembre 1, 2022, 11:07 UTC](https://meta.discourse.org/t/published-pages-could-inherit-categories-background-image-setting/243851/1 "2022-11-01T23:07:11Z")

</div>

Presque tout est dans le titre. Si ce n’est pas possible, est-il possible de stocker les images d’arrière-plan des catégories dans des variables CSS que nous pourrions utiliser dans notre propre CSS personnalisé ? Ce serait plus pratique que d’utiliser l’URL complète de l’image.

Voir :

> [@Adding a category class to a Published Page](https://meta.discourse.org/t/adding-a-category-class-to-a-published-page/246404?u=canapin):
>
> If we can’t use type="text/discourse-plugin" in a script tag, is there a way to get the current category slug of a published page? The purpose is to add a new class containing the slug in a page HTML tag.

Et les messages suivants.
