I mean the edit mode that list all properties like the old way but in EpiServer 7.
If you go to the url above at your site (with a different ID of course), thereafter you have to press the edit button in the top right corner. I want to include that click with a parameter if possbile. Any ideas?
I think you should be able to add a dojo file on your own that checks if a query string is present and if so, clicks the button.
See this post with custom css file for edit mode: http://world.episerver.com/Blogs/Ben-McKernan/Dates/2013/9/Adding-extra-information-to-the-property-overlay/
Similarily, in AlloyTech, you have StringList (or StringList2 if I remember correctly) which is also loaded to modules.
For dojo implementation, I am not an expert, so perhaps someone else knows how to implement this?
Although, maybe you can have something like this:
$(document).ready(function () {
if (some condition) {
parent.$('body').append("<script>$('selector for the button').click();</script>");
}
});
Although if you just add a javascript file with the click would be better, perhaps you don't need to use dojo and you can go with jquery instead?
Sorry for late replay. Guess there is no inbuilt solution for this. Maybe not that important.. would your code work Marija? Have you tried?
I've tried it some time ago, it did work for me. (Although I didn't have time to write the correct selector, so the code caused everything to click :D)
There is no built in solution to load the forms editing by tweaking the query string. For the next release (7.5) it will be possible to configure the default view for a content type.
Hi,
Can I add a parameter to the URL below to make it view the actual edit mode (not the graphical preview)?
/secure/Cms/#context=epi.cms.contentdata:///6232