Just a simple thing you could try first, try changing the id of the second video. For compliant html you shouldn't have more than one id on a page but you can have multiple classes. So if you are using the id for styling then give them both the same class instead. Edit: Just noticed you have a class defined.
Of course if you change the id of the second a tag you will also need to change the javascript so that it points to that id.
Set the autoPlay to false in the xslt while I was at it. It is my first Umbraco project and I can't believe how easy it is to control the output of the HTML (both through the macro for the developer as well as through the content section for the content contributors). Thanks for sharing this macro with us.
More than one video per page?
How can I more than one video per page?
Currently I can only get one video to play per page.
The second video, the "object" isn't being inserted:
Cheers,
JV
Hi JV,
Just a simple thing you could try first, try changing the id of the second video. For compliant html you shouldn't have more than one id on a page but you can have multiple classes. So if you are using the id for styling then give them both the same class instead. Edit: Just noticed you have a class defined.
Of course if you change the id of the second a tag you will also need to change the javascript so that it points to that id.
Ben
Thanks Ben,
I didn't notice they Id value was the same for both.
I made the following change:
Replace:
With:
Cheers,
JV
Tried the following line but for some reason it didn't work.
<xsl:variable name="videoid" select="$videonode/node/@id"/>
So I opted to create a new parameter for the macro and add the parameter in the admin site. It's working just fine now.
<xsl:variable name="controlId" select="/macro/controlId"/>
Set the autoPlay to false in the xslt while I was at it. It is my first Umbraco project and I can't believe how easy it is to control the output of the HTML (both through the macro for the developer as well as through the content section for the content contributors). Thanks for sharing this macro with us.
is working on a reply...