Try our conversational search powered by Generative AI!

EditTree plugin & Editpanel Issue

Vote:
 

Hi

I Created the new EditTree Plugin.In this i created HyperLink to open abc.aspx page in EditPanel like

 <a href="/abc.aspx" target="EditPanel">Clear</a>

Now the page is open perfectly but when i go to Structure tab or My Tasks no link is working from tree i.e the corresponding page is not opening in Editpanel.

How i can resolve this issue.

Thanks in Advance

 

 

#46836
Jan 06, 2011 6:38
Vote:
 

The page that you display in the Edit Panel, does it use the same masterpage as the EPiServer pages displayed in the panel? By doing that you make sure the scripts are loaded. The GUI probably breaks because your plugin does not load these scripts. Take a look at this blog post for some tips on using the system masterpage and some other tips: http://world.episerver.com/Blogs/Dan-Matthews/Dates/2010/3/A-few-tips-on-UI-Plugins-in-CMS6/

#46837
Jan 06, 2011 9:29
Vote:
 

I think  you are right, Yes i am using diffrent masterpage i.e

this.MasterPageFile = ResolveUrlFromUI("MasterPages/EPiServerUI.master")

bcoz i want that page look like admin scheduledplugin.

How i can achieve this?

 

#46838
Jan 06, 2011 10:29
Vote:
 

Well, what you want is to mimic what scripts that are loaded in "working" edit panels. So just look at the rendered code from them and make sure your page loads the same scripts. If nothing else works you should basically be able to copy the script paths and hard-code them into your page. Not elegant, but you could start with that and then refine your solution.

#46847
Jan 06, 2011 15:10
Vote:
 

Thanks for support.I found simple solution for this.We have to write these two functions in page and its working fine :)

function onNavigate(newPageLink)
  {
   return -1;
  }
  function onCommand(newCommand)
  {
   return -1;
  }

#46853
Jan 07, 2011 6:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.