Search code examples
templatesvideoyoutubephp-5.3ezpublish

Custom tags in my xml_block


I would like add youtube video in my "xml_bloc" here my code

[CustomTagSettings]
AvailableCustomTags[]=youtube
IsInline[youtube]=true

The news tags "youtube is visible in my back office. Here the template content "youtube.tpl"

<div class="video">
    <object width="{$width}" height="{$height}" type="application/x-shockwave-flash" data="{$content}">
        <param name="movie" value="{$content}"></param>
        <param name="allowfullscreen" value="true"></param>
    </object>
</div>


My question is where i save my template templates/content/view/datatype/ezxmltags/youtube.tpl ?

Thank you in advance for your help.


Solution

  • Looks like you didn't share all your content.ini code, like where you declare your variables, but I am assuming you have that part right. It also looks like your location is correct.

    extension/<your_extension>/design/ezflow/templates/content/datatype/view/ezxmltags/youtube.tpl
    

    Are you experiencing problems with the custom tag? Did you remember to clear the cache?