Greetings!

Don't know if i'm missing something or not, but when i don't find a way to make a custom formatter for a node title field.
Is this possible?

Thanks,
Tom

CommentFileSizeAuthor
#9 display_suite-816924-9.patch4.9 KBdeciphered

Comments

deciphered’s picture

That's likely related to the fact that a node title isn't a CCK field :)

If you use the Display Suite module you will be able to use a Custom Formatter for the title field.

Cheers,
Deciphered

netsensei’s picture

We use Display Suite to try and accomplish this. DS doesn't allow us to hook a custom formatter onto the title field. Same goes with Views: not possible.

deciphered’s picture

You can't theme title fields in Views, as the title field is not a CCK field.
You can use Custom Formatters to theme the Title field with Display suite, you just need to create a formatter for the field type, which I believe is something like nd_title or similar.

Cheers,
Deciphered.

netsensei’s picture

Thanks for the answer, we'll try that :-)

deciphered’s picture

Status: Active » Closed (fixed)

Assuming this is sorted?

Closing, please re-open if there is still an issue.

geek-merlin’s picture

Title: Custom formatter for title field? » Custom formatter for title field
Version: 6.x-1.4 » 7.x-2.x-dev
Category: support » feature
Status: Closed (fixed) » Active

I can't get this to work in 7.x, neither with 'nd_title', nor 'text' field type.
I'll go and ask ds source about that.

maximer’s picture

Hi,

did anyone find a solution for this issue?
Thanks for your answer.

Maxime

deciphered’s picture

Status: Active » Postponed

There is no support for Display suite fields in the Drupal 7 version of Custom Formatters, it was deemed unnecessary as you could simply make a DS code field.

I will probably once day revisit that decision one day, but I am way to bogged down with other work to dedicate time to something neither I nor any of my clients currently need, apologies, but that's just how it is at the moment.

Cheers,
Deciphered.

deciphered’s picture

Issue summary: View changes
Status: Postponed » Needs review
StatusFileSize
new4.9 KB

So I finally had a look at re-implementing Display Suite integration.

Below is the first go at it, it appears to be working enough to use, though will likely need some improvements before it's release.

deciphered’s picture

Status: Needs review » Fixed

Committed (with improvements).

I'll try to get a stable release out in the coming days... but no promises.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.