draganr
I'm new here

editorId - only allow one field to be edited

Jump to solution

Hello all,

Is it possible somehow (maybe by using this editorId()) that the editor in the content creator can access and edit only one field, and not the others. In this case just the ​st_headline?

  <CMS_INPUT_TEXT name="st_headline" hFill="yes" singleLine="no" useLanguages="yes">

    <LANGINFOS>

      <LANGINFO lang="*" label="Product name"/>

    </LANGINFOS>

  </CMS_INPUT_TEXT>

  <CMS_INPUT_TEXTAREA name="st_subheadline" hFill="yes" useLanguages="yes">

    <LANGINFOS>

      <LANGINFO lang="*" label="Product short description"/>

    </LANGINFOS>

  </CMS_INPUT_TEXTAREA>

<h1$CMS_VALUE(editorId())$>$CMS_VALUE(st_headline)$</h1>

<h3>$CMS_VALUE(st_subheadline)$</h3>

166171_pastedImage_6.png

Best regards,

Dragan

0 Kudos
1 Solution

Accepted Solutions
TimoMeister
Returning Responder

Hello Dragan,

try this:

<h1$CMS_VALUE(editorId(editorName:"st_headline"))$>$CMS_VALUE(st_headline)$</h1>

View solution in original post

0 Kudos
4 Replies
TimoMeister
Returning Responder

Hello Dragan,

try this:

<h1$CMS_VALUE(editorId(editorName:"st_headline"))$>$CMS_VALUE(st_headline)$</h1>

0 Kudos

Hello Timo,

Yeah, i thought so too, but then i can not edit anything...

With:

<h1$CMS_VALUE(editorId(editorName:"st_headline"))$>$CMS_VALUE(st_headline)$</h1>

<h3$CMS_VALUE(editorId(editorName:"st_subheadline"))$>$CMS_VALUE(st_subheadline)$</h3>

167522_pastedImage_0.png

With:

<h1$CMS_VALUE(editorId())$>$CMS_VALUE(st_headline)$</h1>

<h3$CMS_VALUE(editorId())$>$CMS_VALUE(st_subheadline)$</h3>

167523_pastedImage_1.png

But then everything is editable.

Regards,

Dragan

0 Kudos

When the pencil appears, please press the left mouse button (hold for few seconds) until the form appears.

167525_pastedImage_1.png

167526_pastedImage_2.png

0 Kudos

Hello Timo,

Ah, and i wondered why it appears, i tried with simple right and left clicks but nothing happened. So it needs to be holded a bit.

Thank you very much.

Dragan

0 Kudos