Here is what I want this to do:
When someone posts an article through the news module on the site, have the option to upload a .flv video to go with the written content. (Custom Field)
When a visitor clicks on that story, they can see the written content and be able to play the related video.
The custom field works, as long as it is not a huge video file.
I'm having trouble calling the custom field definition, specifically, getting the code to call the proper url of the video.
here is what I have in my news detail template:
Code: Select all
{if isset($entry->fieldsbyname.video)}
<div id="newsdetailheaderimage">
{object src='uploads/news/$entry->id/$entry->fieldsbyname.video->value' height='530' width='398' class='flashplayer'}
</div>
{/if}
Code: Select all
<object class="flashplayer" type="application/x-shockwave-flash" data="uploads/news/$entry->id/$entry->fieldsbyname.video->value" width="398" height="530">
<param name="movie" value="uploads/news/$entry->id/$entry->fieldsbyname.video->value" />
I am trying to use the object plugin... should I be looking elsewhere for a solution?
I even though about a UDT that would use javascript. could that work and if so, how would I go about it?
Here is what I'm working with:
CMSMS version - 1.10.3
News Version - 2.12.3
Running tests locally via wampserver 2.2
Maybe I've overlooked it here in the forum, but I'm totally stumped. Anyone have any thoughts?