I created a stack for a page I am working on content for. In this stack, I have a content block where I am adding information, I also need to add a embeded video using the Multimedia block. Is it possible to add a multimedia block within a content block with-in a stack?
Will I have to do source editing in order to embed this type of thing within the content block?
My initial attempt for source editing I tried to place an <object width="425" height="355">
with <param name="movie" value="file on site"> pointing to a local-server-hosted file and it failed to show.
You can’t add a block to another block. Is there a reason you don’t just add the Multimedia block to the Stack as normal? All of the blocks in the stack should display when you use that block in an area on a page.
The reason I want to add Multimedia blocks within the content block is because my content block is large with a lot of areas where I have spots for avi videos to go that are part of descriptive sections. Each section has a instructive piece then I have an avi vid to place for visual reference for the reader. The method I wanted to use, adding an <object> along with the needed params, etc, were quashed by this cms and would not allow, when I did so via source code editing.
I might have to create a page outside of the cms in order to accomplish what I am looking for.
We just drop that into /application/blocks/content/template/year_replace.php, and swap to it when needed.
You’ll see it just does a very basic find and replace, but there’s no reason this kind of approach couldn’t be more complicated, maybe used regular expressions, etc.
For your case, maybe you could do something like
{VIDEO:123}, and when the template finds it, it uses the ID, and replaces that ‘shortcode’ with the full object/embed code that is needed.
Then when you’re editing, you’ll just see the simple tag in your content, very easy to add and move those around. But on the output it will output the full video embed.
It also means that if you decide to change the settings on your embeds, you can change those in the one template and it’ll update across all places in our output.
That is a good thought, Myq. Along with what mesuva was mentioning, I could create a custom container and work all of this into it. Thank you for the info folks, greatly appreciated.