Page 1 of 1

[RESOLVED] Need to have a Content Block before the Content

Posted: Sat Feb 05, 2011 11:44 am
by pixelita
Hi, everyone. I'm working on a site design where the client will have several videos featuring various food items. These will load before any other page content. I have the basic design styled from my graphic artist.

I understand that the {content} block must go before any other content blocks, but I really need my custom content block on top of any other content, which would be textual in nature.

Are there any other ways to achieve this? I'd just embed the videos in a separate page template for each item but I think that would defeat part of the purpose of having a content management system. The end result I want is to be able to add a video to this custom content block, then below that add the food product description. (I'd use cataloger but I don't think it handles video, does it?)

Here's a screenshot so you can get an idea of what I'm after. The custom content block would be the video on top, and the usual default {content} would be the dummy text below. (The board wouldn't let me add an attachment so here is a link:)
http://www.pixelita.com/temp/hon-fish-screen.jpeg

Re: Need to have a Content Block before the Content

Posted: Sat Feb 05, 2011 11:54 am
by pixelita
Well, I guess there wouldn't be any harm in having the videos in the {content} area and then having a "text content" custom content block, huh? I'm just thinking aloud here.

UPDATE: I think that will work!

Posted: Sat Feb 05, 2011 1:17 pm
by uniqu3
Hi pixelita, you can remove the Prozess Template part on top of your Template and add {capture assign='mycontent'}{content}{/capture} after that you can use your blocks and content however you like.
Where content should go simply use {$mycontent} you can see what i mean in any of my themes.

With advancedcontent or contentutils modules you can extend this even further for better structure and usability in the backend.

Re: [RESOLVED] Need to have a Content Block before the Conte

Posted: Sat Feb 05, 2011 2:32 pm
by pixelita
Thank you!!!

Re: [RESOLVED] Need to have a Content Block before the Conte

Posted: Sun Feb 06, 2011 11:04 pm
by Dr.CSS
I just put an extra content block above {content} and it shows in my edit page above the Content*: (edit box), you can put extra content blocks anywhere and they don't have to be below {content} you just have to have {content} somewhere in the template...