As a designer, I love this module. Thank you.

Is there any way to use typogrify with custom cck field?

Comments

mikl’s picture

That depends on what you mean by custom… If you're making your own field in code, you could ostensibly just load and use the Typogrify class in the field formatter.

adam_b’s picture

Subscribe... I'd like this too, and there's no way I'm making my own field in code ;)

mikl’s picture

Status: Active » Postponed (maintainer needs more info)

Well, please specify what it is you want then :)

brightbold’s picture

Status: Postponed (maintainer needs more info) » Active

Here's an example use case: You have a content type for events with a CCK date field. You're displaying the dates with AM/PM appended and you really wish those were spanned with a class so you could shrink them down. (Looks particularly terrible in fonts like Georgia where the numbers are tiny and the caps ARE HUGE.)

But the complexities of the date module make it hard to do this through the field template (which seemed like the most logical way) because of the possibilities of a date range and the PHP date formatting choices for each piece of the date. It seems to me you'd need a module that works with Date module and allows you to insert HTML classes into the date as it's being built and frankly that's far above my developer skills.

So if there were a way to apply Typogrify to a field like this, that would be great. Do you have an example of "loading and using the Typogrify class in the field formatter"? I am reasonably good at modifying existing code but don't have any idea how one would do this from scratch.

Thanks. This is a great module and makes those of us with designer/typographer sensibilities very happy.

brightbold’s picture

Version: 6.x-1.0-rc1 » 7.x-1.0-rc8

Here's a discussion on Typogrifying the title field. I haven't tried this yet but for anyone else who's looking for this: #358882: Typogrify in title.