helios-ag / FMBbCodeBundle

:capital_abcd: BBCode bundle for Symfony projects
Other
57 stars 35 forks source link

How to use the template option ? #123

Closed QuentinPi closed 9 years ago

QuentinPi commented 9 years ago

Hello everyone, I don't know if I'm posting this message in the right place... But I would like to know how to use the template option in the config.yml file. For example, I would like to overwrite the video.php template provided by decoda and we have only the ability to add a template file according to the documentation. I think some options are missing. Any help would be appreciated !

helios-ag commented 9 years ago

As you can see on https://github.com/helios-ag/FMBbCodeBundle/blob/master/DependencyInjection/Configuration.php#L68 there is a path option, which accepts path to template, that can be set with option something like: "%kernel.root_dir%"

QuentinPi commented 9 years ago

Thanks for your quick answer ! Is it possible to overwrite an existing template and is it possible to link template and tag ? I tried to add a template path with "video.php" name like that : "fm_bbcode: config: templates:

But it doesn't seem to overwrite the existing one.

EDIT : And I have a problem when I try to overwrite the VideoFilter in services.yml : "platformbundle.decoda.filter.video: class: PlatformBundle\Filter\VideoFilter tags:

QuentinPi commented 9 years ago

Ok, I found a lot of information in the decoda doc. I think I will get it !