By buddy-1 on
For a blog entry, I want to be able to add an optional subtitle, with a font smaller than the title but larger than the article content. Like a "real" newspaper article sometimes has, like this:
Man embezzles $1 million <------title
Has 20 prior embezzlement convictions <-----subtitle
John Smith is at it again. Last Friday ....etc. <------article
Comments
=-=
yes. get the CCK.module and create a text field in the content type of choice. make your template aware and add some css to your style.css file.
Or just format the "subtitle"
A Possible Alternative
Or just format the "subtitle" with an
<h2></h2>tag as done to the text above.Of course, that does not give you as much flexibility as very misunderstood's answer. It may depend on how many subtitles you expect.
:)
Okay, I got the CCK module
Okay, I got the CCK module and added the field. But it just adds it right above the article itself, in the same size. I want it right under the title, before the post date and poster, and Posted In {topic} lines. Also it prints the word "subtitle".
What do you mean by "make your template aware and add some some css to your style.css file?
I'm new to this, to drupal, to cms, to website development, so an example would be appreciated if it's not too much to ask.
Thanks,
Buddy
To hide the word "subtitle"
To hide the word "subtitle" You need to go to admin -> content type -> manage fields -> Display fields
In the box "label" select
Then you can modify CSS file for your theme to specify the location and format you would like.
=-=
It's hard to give examples of what you should change when the site can't be seen and tools used to help.
Use the firefox browser with the firebug addon to inspect the elements and target the css needed.
Template Aware?
I am also interested in what you mean by making the template aware. I also have used the CCK to make a Subtitle text field, and it writes it into the top of the body content of the node by default, just as Buddy described. How can I make this subtitle appear above the submitted date?
Howto available
Hi,
I had the same problem and wrote a HowTo about this: Add a Subheadline field to your content types.
It was written for D5, but applies mostly to D6, also.
Greetings, -asb