Quick Tip: Run Web Part Only in CMSDesk

We’ve all had a point in time where a web part should not be showing up in the Admin , but it is needed in the final, published page. A scenario I often come across is where the user needs to be redirected in certain scenarios, and viewing in the Pages application causes that redirect to occur, making it impossible to get to either the WYSIWYG editors on the page, or use the design tab to add and rearrange web parts.

Adding the following macro into the Visible field will cause the web part to hide when you are in the Admin interface.

`{% ViewMode != “Edit” %}`

Written on October 23rd, 2015 by Dan Walker

Want to read more?

If you’ve enjoyed what you’ve seen so far, you might like some of my other posts. Visit the archive to see all of my past writings.

Blog Archive »

About the Author

Dan Walker is a programmer from Grand Rapids, MI. He works at Gordon Food Service.

More About Dan »

Get in touch