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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

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

Post 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
Last edited by pixelita on Sat Feb 05, 2011 11:59 am, edited 1 time in total.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: Need to have a Content Block before the Content

Post 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!
uniqu3

Post 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.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

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

Post by pixelita »

Thank you!!!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
Post Reply

Return to “CMSMS Core”