Hi, I'm not sure if the answer should be staring me in the face or not, but here is what I am trying to do:

For the layout It I want to have, I need to end up with:

<div id="name">
	main node content
</div>
<div id="name2">
	some other content
</div>

Currently I have to type out all of the content (including the divs) into the one field when creating pages, since all I have to work with in page.tpl.php is $content.

I want to have two content submission fields within the "create page" form, and assign the new one to something like $content_2 (or would that be $content->something ?) so that I can do what I want with it within my theme structure, rather than typing the divs (and whatever else I need to add in the future) manually.

Can someone point me in the right direction?

Many thanks,
Nevin

Comments

fighella’s picture

I know this might sound a bit weird... but I am looking to add a display type to the content templates.

So far we have "teaser" and "body"...

I want a "sub-teaser" which is one more different layout of the way text and images are displayed.

so ie: sub-teaser: title and very short bit of text.
teaser: title, picture, short bit of text
body: full text etc...

How hard can it be really?

I would do this with a views module... but I dont find its themable enough.

any ideas where to look?

thanks as always

jd

fighella’s picture

liquid views!!! amazing stuff... just found it.

solved all my problems.

modul’s picture

Why don't you simply add a CCK textfield or textarea to make that extra kind-of-teaser field? It will come as a separate entity in your $node variable, and you can retrieve and theme it to your heart's content.

nnevvinn’s picture

Yeah, I discovered CCK right after I posted this. Too bad it's not production ready for 6.x yet.