I would like to add elements to the site layout (the section above the global layout so I need to edit the main.vmd) and hide them on the edit page layout (otherwise they would overlap the editor window)
How can I do that? Checking for edit mode in main.vmd doesn't seem to work like in page.vmd
many thanks!
How about to di this on the client side?
something like:
AJS.toInit(function(){ if ( AJS.$("#main").is("#editpageform") ){ AJS.$("YOUR-ELEMENT-ID").hide(); } }
With this you check if your are on the edit-mode (The Main-Id contains the EditPageForm-Id). If true your Element will be hidden.
I hope I could help
Raffy
Hi
i did something like this using a velocity processed mesage customfield
you could install Jira Toolkit Plugin to get this type of custom fields...
in your case you should create a new
Message Custom Field (for edit)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.