Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.
Get started todayThousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.
Get started Learn more
Aladdin
If you have ever wanted to hide some ShortPoint elements from being shown up in the Inserter dialog, here's how you can do this using JavaScript, and ShortPoint APIs:
Step 1: Define a function that will contain our hooks
Step 2: Execute the hook function one ShortPoint is ready
Step 3: Execute hook function only when page in edit mode
Step 4: Getting list of all ShortPoint elements in inserter
Step 5: [ option 1 ] - remove an element from ShortPoint list
Step 5: [ option 2 ] - remove a set of elements from ShortPoint list
for the complete code snippet, you can check it on Github Gist on the following link:
1 person has this question