Hi

when I post a story I must give a title , how can I stop that?

Thanks.

Comments

Rob_Feature’s picture

I'm not sure how into themeing you are, but there's a couple ways you can do this:

First, you'll always have to enter in a title..that's just the way it is. But, that title doesn't have to display. There's 2 ways you can keep it from displaying:

1. You can do it via css. The more I think about it, I think this is the best way to go (because it makes your site more search engine friendly). Basically, find the story's class or ID, and do a [display:none] on it's title h2 tag. This is good because the h2 tag (your title) is still in the html, which is good for screenreaders and for search engines (who can still see it)

2. You can also remove it from your story nodes all together by creating a story-node.tpl.php file. In that file, you'd just remove the print $title. You can find out more about how to do this at: http://drupal.org/node/17565

-Bob Christenson
Owner/Designer, Mustardseed Media, Inc.
MustardseedMedia.com

/**
  * Bob Christenson
  * Mustardseed Media
  * http://mustardseedmedia.com
  */
Mathews_1’s picture

Subscribing for future reference....

vm’s picture

One can also use the autonodetitle.module which may not have been in existance for Drupal 4.7 but is for Drupal 5.x and Drupal 6.x

philshields’s picture

I also have wish to remove the title, and have used the autonodetitle module. Unfortunatly it leaves the div tag still in place....div class="meta"....which in my case has it's own border..theme is sky....Can this be overcome somehow....?

Would appreciate any suggestions on the best way to go about it...

vm’s picture

edit the theme to remove the div.

you can do so with some conditional php as seen in other themes.

if (print div)
else don't print div

philshields’s picture

Hi VM

- Thanks for the reply
I don't know PHP coding unfortunatly...still by trial and error and much pulling of hair!....came up with the following:

</<div<?php print $attributes; ?>>
    <div class="meta">

change to: 

<?php print $attributes; ?>>
 <?php if ($title =="none"): ?>   
<div class="meta" style = display:none;>
	<?php else : ?>
<div class="meta"style = display:block;>
	<?php endif; ?>

I'ts probably not what you had in mind....I wasn't able to find a way to selectivly not print something.....if there's a neater solution, I'd be interested to hear about it.

Thanks and Regards