Blockquote styling: Allow links in attribution

I have a use case where the client wants the attribution to link to a profile page, which is currently not possible. We are able to create inline links along with text styling for the quote itself, but those options are not available for the attribution.

Hi @clay1,

IF I’m understanding you right, this sounds like something you should be able to talk to your developers about. You should be able to modify the schema in the CMS (adding or modifying a block and its fields, for example), and then implementing corresponding changes on the frontend via custom renderers: https://github.com/datocms/react-datocms/blob/master/docs/structured-text.md#custom-renderers-for-inline-records-blocks-and-links

At least I think that’s what you need to do. Have you already discussed this with them?

If you could please give me a more specific example (i.e., a link to the record & field in question in the CMS, what exactly you are trying to add there, and what should happen on your webpage afterward) I can try to provide more detailed instructions?

Or if you’re a developer, I’d be happy to look at your existing code for the relevant page and suggest how to modify it to accommodate this.

Or if I’m totally misunderstanding… could you please provide more details? A screenshot or two would help too.

Thank you!

Wait, sorry… did you mean the Blockquote functionality inside Structured Text fields:

I am not sure if we can make that attribution field rich text/relational without breaking existing implementations… I’ll check with the devs on that though and let you know what they say.

In the meantime, would using a custom block be an option?

e.g. a simple block like this:

Then in the structured text field settings, you’d add that as an inline block:

And this is how it looks when you actually edit it:

It’s a bit more hassle, but you have way more control and flexibility this way. Would that work in the meantime?

I’ll still let you know what the devs say about built-in Attribution field though.

Just got confirmation from the devs that the built-in Attribution subfield is unfortunately plaintext-only, and does not support links, embeds, or rich text of any sort. There are no current plans to change this, sorry!

I would be happy to help with the custom block solution, though, if you’d like to investigate further.