[development] HTML in node titles for D5

matt at mattfarina.com matt at mattfarina.com
Thu Jan 17 13:12:39 UTC 2008


CSS could to this. If you need it to change on all the node titles  
sytle the title. If you need it just on specific titles use a setup  
like garland.

#node-12 h2 {
   some css
}

Just change the number to the nid you are editing. I would suggest  
doing this type of change in the theme/presentation layer.


Try the support mailing list. You might get a better response of ideas.

Matt

Quoting Maciej Perlinski <maciej.perlinski at gmail.com>:

> You rather keep all your titles presented in the same way, you style
> h2 or create new node-x.tpl.php files with new styles. And if you
> really need the html in your titles use cck to create new title field
> and use autotile module to hide original title field.
>
> Please note $node->title is a varchar(255) so you might run out of
> space for html tags there.
>
> PS.This is rather support not devel question.
>
> Mac
>
> On Jan 17, 2008 10:23 AM, Yuval Hager <yuval at avramzon.net> wrote:
>> Hi all,
>>
>> I need to enable simple HTML styling on node titles. I believe this would be
>> rather common on news sites and similar.
>> Is there any correct (or as little disruptive as possible) method   
>> to implement
>> that? How much of core hackery will be required?
>>
>> I will not be able to switch to D6, until a significant amount of   
>> contrib I am
>> using will be available for D6..
>>
>> Thanks,
>>
>> --
>> Yuval Hager
>> [T] +972-77-341-4155
>> [@] yuval at avramzon.net
>>
>
>
>
> --
> -
> kindest regards
> Maciej Perlinski
> maciej.perlinski at meant4.com
> http://www.meant4.com
>




More information about the development mailing list