- when a visitor is into a subcategorie :
not ok (it's hl1 = categorie name, hl2 = blog title, i'd like to have hl1 = parent categorie name, hl2 = categorie name)
This is one of the things that needs coding to work. The parent category just isn't set anywhere, so the template can't use it.
On the other hand, we could kludge around it: install the category-templates plugin, then make a different index.tpl for each subcategory, using its parent in the hl1.
- when a visitor is reading an entry :
not ok (it's hl1 = entry name, hl2 = blog title, i'd like to have h1 = categorie name, hl2 = entry name)
This is possible, and the current "Array" thing is a problem in the code I handed you. It's partly related to this:
what does mean $entry.categories[0] ??
because with the plugin_categorie.tpl, i've this : <li class="depth{$plugin_category.depth}" style="display: block;">
it can't help to do what i want ?
$entry.categories[0] means "the string in index 0 of the 'categories' portion of the entry array". Unfortunately, it's returning an array. I thought it would return a string, with the category name. To get the name, just use $entry.categories[0].category_name instead.
For the final question: the plugin_categories.tpl is only used to style the category template sidebar box, so the $plugin_category.depth isn't going to help out. It really just specifies how many parents that category has, anyway. (On the other hand, the category sidebar box may define other variables that
could help us. I just don't know what they are.