Home › Toolset Professional Support › [Resolved] Hide selected Views shortcodes in the editor
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
Tagged: Views, Views plugin
This topic contains 2 replies, has 2 voices.
Last updated by Matthias 6 years ago.
Assisted by: Waqar.
Hello Toolset folks,
I'm working with nested views and I like to hide some of the views from the shortcode selection in the post editor. Is this possible? The "child views" should not be available in the editor (for all roles). With this I want to prevent users choosing the wrong views.
Best regards
Matthias
Hi Matthias,
Thank you for contacting us and I'll be happy to assist.
I'm afraid, there is no direct PHP filter or CSS IDs/classes available to limit the list of available views through custom code.
To achieve this, you'll need to add complex JavaScript code, which is beyond the scope of support that we provide. You can consider, hiring a professional from our list of recommended contractors, as needed:
https://toolset.com/contractors/
A simpler workaround can be to add a special text ( e.g. "- child" or "- do not use" ) at the end of the title for these views so that users can distinguish them from regular/parent views.
regards,
Waqar
My issue is resolved now. Thank you!
I already use "Do not use" hints in the title of the views. That should be ok.
Matthias