Restrict wysiwyg template in content layout insert to admins

I know that I can use

<arg id="allow_in">

in a wysiwyg template to have it appear in the content layout selection dialogue only in certain areas of a page layout template. I was unable to find anything about this in the docs, so adding something would be helpful.

However, what I’m really after now is being able to limit a certain wysiwyg template only to admin users. Is that possible? If so, how?.

Since allow_in seems to be undocumented at this point, I am hoping there are other such arguments, one of which will have felicitous results for what I am currently attempting to do…

Thanks,

-= G =-

Hi G,

Yep! It’s here in the docs. I think what you want is

<arg id="allow_for">admins</arg>

Happy editing!

Bingo - yeah that’s it!

Is there any way to make that appear if I were to search allow or allow_? Because that’s what I did hoping to turn something up… I even tried allow_in because that was one I know about, hoping if I could find that, there might be others nearby…

Thanks,

-= G =-

Great idea, G – I’ll make a note of that for the team.

thanks - I even feel like i’ve used that doc before - I just couldn’t find it this time…

I wonder if all doc headings at a certain level should be indexed? For instance the one you linked, ‘Restricting content layouts (LiveWhale 2.6.0+)’, is a really useful thing but if a search ‘restrict’ I don’t get it. Of course, the headings at the next level below, like ‘putting it all together’, would be less useful.

Thanks,

-= G =-

I see what you mean, we are scanning the headers in the quickaccess search but it’s only showing the first five results, hmm. We’ll check into this. Thanks G!