Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Is there a bug with Menu actions? View modes: 
User avatar
Member
Member
jheavner-ce - 3/29/2012 5:23:41 PM
   
Is there a bug with Menu actions?
I'm running 6.24 and when I select either an Inactive menu item or a Javascript menu item under Properties > Menu nothing happens. I have copied the Javascript example directly below the Javascript box of alert('hell0'); return false; and nothing happens. When the link is clicked it renders the page. I've cleared my cache and restarted my application. It just does not work. What am I doing wrong.

User avatar
Member
Member
kentico_edwardh - 3/29/2012 7:19:02 PM
   
RE:Is there a bug with Menu actions?
Hello,

Well, I don't think this is a bug since I can reproduce this issue using 6.0.24. I setup the example if "alert('hello'); return false;" as a Javascript command on my Home page, and when trying to access this page from the Menu I receive the alert window.

Are you using workflow? Perhaps the changes to this page have not been published? Also, do you receive the same behavior using a different browser?

Best Regards,
Edward Hillard

User avatar
Member
Member
jheavner-ce - 3/29/2012 8:30:29 PM
   
RE:Is there a bug with Menu actions?
I've tried on my dev environment which doesn't have workflow and my staging environment which does and get the same results on each. I've tried it in both Firefox and Chrome as well. I've done an IISreset. I don't know what else to try. I thought perhaps it was something specific to that Node so I tried it on another node and I still see the exact same behavior. I'm not sure what else to try.

User image

User avatar
Member
Member
jheavner-ce - 3/29/2012 8:31:16 PM
   
RE:Is there a bug with Menu actions?
User image

User avatar
Member
Member
kentico_edwardh - 3/29/2012 9:03:53 PM
   
RE:Is there a bug with Menu actions?
Hello,

Could you please let me know which menu web part (control) are you using? Have you created a custom web part or page template?

Best Regards,
Edward Hillard

User avatar
Member
Member
jheavner-ce - 3/29/2012 9:43:57 PM
   
RE:Is there a bug with Menu actions?
It's a page template using...and I think that's the problem. I thought it was using a CSS menu but it looks like it's using a custom web control to display the menu. I'll need to review the code to see why a custom web part was built as opposed to using a CSS menu but assuming the custom web part is needed, do you happen to know how I can get the Menu Action using the API?

User avatar
Member
Member
jheavner-ce - 3/29/2012 9:59:45 PM
   
RE:Is there a bug with Menu actions?
I figured it out TreeNode.DocumentMenuItemInactive returns a boolean value. I guess this just shows don't assume something is what you think it is. I was certain it was a CSS menu.