I’ll keep it brief:
I want to set Meta-Tags for news-articles on a website I’m building, and wondered if there was a way to format the “Meta Description”-field in the page settings, so that it displays either content from a CMS-field I called “Meta Tags”, or if this one is not set, from the “Lead-in-Text”-field of the news-article, since the writers that create content for the page won’t always reliably set meta tags from my experience, and I would prefer it over just having to paste the Lead-in down to the Meta-Tags CMS field.
Can I even use this sort of “code”/formatting for conditional in there?
If I can - could a kind soul amongst you provide me with an example of how to pull it off?
hello @morth, you can set the Meta Description on as a collection field and add it into your collection pages settings. Just go the the collection page settings and under meta description click on the add field button and choose your content from there.
thank you for your reply – this is what I am actually doing already.
I was however curious whether there was a way to show the article’s lead-in if no meta description was set, somehow. Basically as a conditional either (use this text if it is set) or (that other field I know always gets filled out).