Field 2 relationnal from Field 1

Hello,

Is there a way to create a new field just to manipulate another field?

Exemple

  1. Title Display: A beautiful world
  2. Title Order: Beautiful world

I looked through the documentation but didn’t see anything related to this, other than “pattern” to use regex.

Could you rephrase what you want to achieve in a less abstract way?

What is this second field supposed to do? Automatically listen to the content of field 1 and manipulate it according to some logic? then no, there is no such field. You could use a hook that fills that field after saving.

But if there is some programmable logic to this rather than manual entering involved, then why is this field needed at all?

Sorry, I’m not a english people. I’m French.

For one site about songwriters, i create much fields and i need to sort ignoring some words (i don’t kwow what as we call it “a”, “the”, “an” (in French, “Un” or “Le(s)”)

If my song called “A beautiful World”, i would sort with B and not A.

I think create one field “Title Display” for display screen and i would a second field just for sort.

Otherwise I will write it twice.

Yes, I get that. But my question was different. Do you want to fill in this second field manually? Is it supposed to be filled automatically?

I mean, you can of course add as many fields to your blueprint as you like. But it sounds as if you wanted something automatic.

If you have problems writing English, write it in French and then let ChatGPT or Deepl translate it into English.

Of course, I would like this second field filled automatically.

Since there is no such field that does that, your best bet is to fill it via a hook on page.create:after or page.changeTitle:after (if it is about the title) or page.update:after hook. But again, why can’t you just do a custom sort with a callback in your template instead of having an extra field?