Dotclear

Ticket #702 (closed enhancement: fixed)

Opened 17 years ago

Last modified 14 years ago

Ajout d'un behavior 'templateInsideBlock'

Reported by: bruno Owned by: olivier
Priority: normal Milestone: 2.4
Component: module:public Version: 2.1
Severity: normal Keywords:
Cc:

Description

Actuellement, si on veut "enrichir" un balise tpl type bloc, on peut ajouter du code avant le bloc ou après le bloc, mais pas dans le bloc.

Cela pourrait être intéressant à implémenter.

Je pense notamment au cas d'utilisation où dans tpl:Entries on voudrait ajouter un certain nombre d'informations dans le contexte en fonction du post_type.

Cela pourrait se faire en appelant un behavior dans class.dc.template.php, et en lui permettant de modifier $content. Le callback pourrait ajouter du code avant et après $content.

Change History

comment:1 Changed 15 years ago by xave

  • Milestone changed from 2.2 to 2.3

comment:2 Changed 14 years ago by bruno

  • Milestone 2.3 deleted

On fait ?

comment:3 Changed 14 years ago by Tomtom33

Ce qui a en plus l'avantage de fournir une solution standard pour modifier à la volée le contenu d'un billet ou commentaire et donc de se passer du plugin stacker.

Je dis oui!

comment:4 Changed 14 years ago by Dsls <dsls@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [ea94ad91e198]) New behavior : templateInsideBlock. Closes #702

comment:5 Changed 14 years ago by bruno

  • Milestone set to 2.4
Note: See TracTickets for help on using tickets.

Sites map