CMS-handles in custom HTML

Hi,

I’m planning to use some 3rd party widgets in my CMS articles and I was wondering if it’s possible to access the cms handles as variables or something? Ideally I’d like to do something like this:

<div id="something" data-article-id="##cms_article_id##" data-article-name="##cms_article_name##">

Is this at all possible?

Yes. Add field (to custom html or before body/head and so on) - very usefull.

Create extra fields (for data-article-id for example).

Thats amazing! Thank you so much :smiley:

1 Like

The add field in embed html does not show up on home/index pages only on collection pages, is this a bug?

Collection page embed panel:

Home / index page embed panel:

Add read-only-link - from logic aspect no way to add field for home page without any reference .

Example - two CMS items:

  • France object - custom field capital: Paris
  • Italy - Rome

Now in home page i added html with field Capital - the output is paris or rome (Null in this case)

In real programming (JSON for example) you solve this by accessing to the object value france.capital

You do copy-paste -of- the block? – how you get this output

Hello Ezra,
Are you saying this is possible or not? or is it a bug?
Cheers,
Sam

Also API / FAQ for the syntax that can be used to make calls to the CMS fields needs to be in the help area.

I could not find anything, it’s all redlined in the screen shots, why?