Templates my xml_块中的自定义标记
我想将youtube视频添加到我的“xml_bloc”中,这里是我的代码Templates my xml_块中的自定义标记,templates,video,youtube,php-5.3,ezpublish,Templates,Video,Youtube,Php 5.3,Ezpublish,我想将youtube视频添加到我的“xml_bloc”中,这里是我的代码 [自定义标记设置] AvailableCustomAgs[]=youtube IsInline[youtube]=true 新闻标签“youtube在我的后台办公室可见。这里是模板内容“youtube.tpl” 我的问题是在哪里保存模板模板/content/view/datatype/ezxmltags/youtube.tpl 提前感谢您的帮助。看起来您没有共享所有内容。ini代码,比如您声明变量的位置,但我假设
[自定义标记设置]
AvailableCustomAgs[]=youtube
IsInline[youtube]=true
新闻标签“youtube在我的后台办公室可见。这里是模板内容“youtube.tpl”
我的问题是在哪里保存模板模板/content/view/datatype/ezxmltags/youtube.tpl
提前感谢您的帮助。看起来您没有共享所有
内容。ini
代码,比如您声明变量的位置,但我假设您的部分是正确的。您的位置也似乎是正确的
extension/<your_extension>/design/ezflow/templates/content/datatype/view/ezxmltags/youtube.tpl
extension//design/ezflow/templates/content/datatype/view/ezxmltags/youtube.tpl
您是否遇到自定义标记的问题?您是否记得清除缓存?它正常工作,我已尝试此代码
[CustomTagSettings]
AvailableCustomTags[]=youtube
CustomTagsDescription[youtube]=YouTube video
[youtube]
CustomAttributes[]=video_id
CustomAttributes[]=width
CustomAttributes[]=height
<div class="object-center">
<object type="application/x-shockwave-flash" width="{$width|wash}" height="{$height|wash}" data="http://www.youtube.com/v/{$video_id|wash}&hl=en&fs=1&rel=0&color1=0x666666&color2=0xf15e22">
<param name="movie" value="http://www.youtube.com/v/{$video_id|wash}&hl=en&fs=1&rel=0&color1=0x666666&color2=0xf15e22" />
</object>
</div>
[CustomTagSettings]
AvailableCustomAgs[]=youtube
CustomTagsDescription[youtube]=youtube视频
[youtube]
CustomAttributes[]=视频\u id
CustomAttributes[]=宽度
CustomAttributes[]=高度
[CustomTagSettings]
AvailableCustomTags[]=youtube
CustomTagsDescription[youtube]=YouTube video
[youtube]
CustomAttributes[]=video_id
CustomAttributes[]=width
CustomAttributes[]=height
<div class="object-center">
<object type="application/x-shockwave-flash" width="{$width|wash}" height="{$height|wash}" data="http://www.youtube.com/v/{$video_id|wash}&hl=en&fs=1&rel=0&color1=0x666666&color2=0xf15e22">
<param name="movie" value="http://www.youtube.com/v/{$video_id|wash}&hl=en&fs=1&rel=0&color1=0x666666&color2=0xf15e22" />
</object>
</div>