rightclickmenu not exists on some pages

Vote:
 

Hi

What can be the reason that the RightClickMenu does not exists on some pages but does exists on other pages ?

Thanks

arik

#23384
Sep 04, 2008 11:20
jo
Vote:
 

Hi AriK!

Make sure that your pagetemplates inherits from base class EPiServer.TemplatePage.

/johan

#23385
Sep 04, 2008 11:41
Vote:
 

Thanks Johan

 the pages does inherits from EPiServer.TemplatePage (the one with the rightclickmenu and the one that does not have the rightclickmenu)

 any idea what else can be the reason ?

Arik

#23387
Sep 04, 2008 12:29
Vote:
 

Hi AriK!
Two more things to verify: 

1. Does your page template have the attribute RightClickMenu?
Example:
[RightClickMenu(Disabled=true)]
public partial class Page : TemplatePage
{

2. Do you get any javascript-errors on the page?

#23391
Sep 04, 2008 14:08
Vote:
 

Thanks Fredrick

 

There are no JS error on those pages and we don't have any RightClickMenu attribute anywhere in our page templates.

 

Arik

#23393
Sep 04, 2008 14:29
Vote:
 

Ok.

What's your EPiServer version? What's your .Net framework version? When you say the RCA menu exists on some pages but not on others, are they different pagetypes or the same? Can you get the RCA on one page then, but not now?

#23395
Sep 04, 2008 14:57
jo
Vote:
 

You may also include a trace output of HttpContext.Current.User.Identity.Name on the pages that doesnt show up the contextmenu to see if the user is considered "logged in" or not.

/ johan

#23396
Sep 04, 2008 15:42
Vote:
 

We are using CMS 5 SP1 with dot net framework 3

They are diffrent pagetypes. , on some of the page types the RCS does work and on some pagetypes it doesn't

Thanks

arik

#23397
Sep 04, 2008 15:42
Vote:
 

Could you post some examples on pagetypes where it works and where it's not working?

And some trace outputs as Johan describes it...

#23399
Edited, Sep 04, 2008 15:53
Vote:
 

Hi

i've checked the  HttpContext.Current.User.Identity.Name anf found that the user is considered loged in and authenticate on all pages.

Fredrick - what exactly should i post as an example ?

Thanks

arik

#23480
Sep 07, 2008 8:59
jo
Vote:
 

If you look at the pages htmlsource for pagetypes where the menu doesnt work, do you see the contextmenu javascript there?
It would look something like this:

var menu1 = new ContextMenu();
if(!isEditMode())
menu1.AddMenuItem('New',null,'window.open(\'http://world.episerver.com/epiUI/edit/Default.aspx?id=23384&mode=createpage\',\'_self\')','true','/App_Themes/Default/Images/Tools/NewPage.gif',null);
if(!isEditMode())
menu1.AddMenuItem('Quick-edit',null,'window.open(\'http://world.episerver.com/epiUI/edit/Default.aspx?id=23384&epslanguage=en&mode=simpleeditmode\',\'_self\')','true','/App_Themes/Default/Images/Tools/QuickEdit.gif',null);

If you do, then its probably some javascript included on those pagetypes that interfere with the contextmenuscript.

If you *dont* see these scripts, then something on the serverside for said pagetypes  "prevents" (or overrides) the scripts from being rendered properly.

In either way, I think that the only way to find out is to start comment out piece by piece of the pagetypes code and/or markup until the point where the contextmenu starts to appear. There is no known (or atleast not to me) "simple" situation besides whats been discussed above that causes this.

/johan

 

#23505
Sep 08, 2008 11:42
Vote:
 

Could it be that your pagetypes uses different master pages and that the failing ones have a master page without the ASP.NET form (<form runat="server">)?

 /Pontus

#23635
Sep 11, 2008 13:51
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.