Theming cck

Events happening in the community are now at Drupal community events on www.drupal.org.
rpeters's picture

Does anyone know of a way in the create content section to have two columns I have never seen it, but need to be able to do it. Thanks

Comments

Views Themeing

pastorjayrich's picture

CSS positioning using

<

div> would always be my favorite choice.

I think you can use the Panels Module for this but I have never tried.

If that doesn't work, then I would use views themeing.

Mustard Seed Media has some really great tutorials.

Hope this is helpful.

Jason

Flow?

pastorjayrich's picture

Does one section need to FLOW into the next?

This would not be a view, but

rpeters's picture

This would not be a view, but must be right next to the other in 2 columns.

You can create a custom node.tpl.php file

pastorjayrich's picture

If you want it for only that content type, then you can make a custom node-[type].tpl.php for it. Then using css you can position the content.

Again, the panels module might be a good option.

Here's some help from the theme guide.

pastorjayrich's picture

http://drupal.org/node/190815

node-[type].tpl.php
base template: node.tpl.php

Node content type, e.g., "node-story.tpl.php", "node-blog.tpl.php", etc. Note that in order to override the template for a specific node type, the theme must also implement the base node.tpl.php file. If this file is omitted, the theme will not detect the presence of node-[type].tpl.php files.

page-[front|internal/path].tpl.php
base template: page.tpl.php

The suggestions are numerous. The one that takes precedence is for the front page. The rest are based on the internal path of the current page. Do not confuse the internal path to path aliases which are not accounted for. Keep in mind that the commonly used Path auto module works its magic through path aliases.

The front page can be set through "Administrator > Site configuration > Site information". Anything set there will trigger the suggestion of "page-front.tpl.php" for it.

The list of suggested template files in order of specificity based on internal paths. One suggestion is made for every element of the current path, though numeric elements are not carried to subsequent suggestions. For example, "http://www.example.com/node/1/edit" would result in the following suggestions:

page-node-edit.tpl.php
page-node-1.tpl.php
page-node.tpl.php
page.tpl.php

Hello, The most pain-free way

karma.code's picture

Hello,

The most pain-free way that I know of to theme this is using Panels. They have different layouts that you can choose and you can have your content type be a variant in the node view handler. Check out some of that panels goodness here: http://www.drupal.org/project/panels.

Could I use the following for

rpeters's picture

Could I use the following for creating node type layout:

page-node-create.tpl.php

text flow

supersteph's picture

I have a slightly different need... I'm trying to get a list of nodes to flow from one column to the next. I know there is a views bonus pack that does almost what i need, BUT my list is actually two taxonomy lists put together, and I can't for the life of me figure out how to do it!

I would like to use this on several pages to display lists of people with their contact info.

Any help appreciated!

Drupal Churches Home

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: