I have read everything umpteen times and I still cannot find where to amend the body classes.
I want one sidebar at the right.

My View Source says:

Yet in Drupal I have added blocks to the right sidebar and it is supposed to appear automatically, I understand.
Is this not right?

node/171906<> How?

So where/how do I tell my Zen subtheme that there is supposed to be a right column, so Drupal can stuff things in it! Something is telling it something!!

Comments

jnorris235’s picture

body class="front logged-in page-node node-type-page no-sidebars"

marcvangend’s picture

I guess you're mixing things up....

Your theme contains regions. The available regions are defined in the theme's .info file. See http://drupal.org/node/171224.

In your page.tpl.php, there is a place where the right sidebar is printed, if it exists at all. It looks something like this:

      <?php if ($right): ?>
        <div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right">
          <?php print $right; ?>
        </div></div> <!-- /#sidebar-right-inner, /#sidebar-right -->
      <?php endif; ?>

Finally, depending on the content, url, blocks etc. on your page, the body classes are added. Body classes do not control the visibility of sidebars. It's the other way around: the sidebars control the body classes.

jnorris235’s picture

I'm going to post this as a new topic:

After two weeks of solid effort I seem to understand very little (perfectly good with HTML and CSS) but Drupal has me completely baffled. My head is exploding with a type of panic, I think, because there is too much to learn and understand!!

I create a View but cannot stop it listing everything on the site.
I have a Page and a Node but cannot stop the 'Submitted by' and date appearing.
There's a Search box in the header that won't go!

Many simple things that if there were someone sat here just saying 'yes' and 'no' I'd be doing it in no time.

My site that was written and the business are just wasting away - hence I am posting this to ask for a handholding session of basic questions as a new topic. Anybody?

Thanks Marcvangend, you were right with that!

WorldFallz’s picture

I create a View but cannot stop it listing everything on the site.

You limit what views shows by setting filters which are nothing more than criteria like "Node Type: Blog". Click on the "+" next to the filters box and you will be presented with what filter options you have available to you. Views has some default ones and modules can add some of their own.

I have a Page and a Node but cannot stop the 'Submitted by' and date appearing.

The formatting of nodes is done in the node.tpl.php file of your theme. Look for something along the lines of "print $submitted".

There's a Search box in the header that won't go!

Might be a block which is set at admin/build/block or it might be part of the theme in which case you need to disable it in the theme's configuration settings (admin/build/themes, click on "configure").

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

marcvangend’s picture

Might be a block which is set at admin/build/block or it might be part of the theme in which case you need to disable it in the theme's configuration settings (admin/build/themes, click on "configure").

Alternatively, you can just delete this from page.tpl.php (you're using Zen, right?):

          <?php if ($search_box): ?>
            <div id="search-box">
              <?php print $search_box; ?>
            </div> <!-- /#search-box -->
          <?php endif; ?>

As you can see, there is often more than one way to do things in Drupal. This is because it's a very flexible CMS. However it can take some time before you've wrapped your head around it. Speaking for myself, I don't regret investing some time in understanding Drupal. Please don't be afraid to ask your questions here on the forum - we're here to help!

jnorris235’s picture

Appreciating just how complicated (read: flexible) - just having trouble getting a normal commercial site with added user abilities, rather than the default community type-site. Trying to do too much too soon, of course!
Be back with more questions - now trying to learn Views.

I gave up on Zen and use Tapestry - will probably go back to Zen for another site when I've got the hang of all this but Tapestry seems to have all the variability I could need (different blocks having different backgrounds for instance).
Thanks for your help!! - I now understand the regions and sidebar bit - cheers.

marcvangend’s picture

I'm glad you're doing well, thanks for the feedback.

WorldFallz’s picture

Appreciating just how complicated (read: flexible)

In that statement you completely nailed the crux of the matter-- with increased flexibility comes greater complexity. There are other CMSs that appear, on the surface, to be easier to use but they are inherintly less flexible. The second you try to customize something you hit brick walls. With Drupal, the basic functionality be more difficult to grok at the beginning, but when you need to customize it you will instantly be struck by "ease" of doing so. I use "ease" in a relative sense here because anytime a non-developer needs to come into contact with code it is by definition "not easy", lol.

Sometimes the ui can, to a greater or lesser extent, mask that complexity, but that also comes with a host of problems on it's own.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz