EnableNonClickablePageLinks in 2.3.8.5

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/10/2012 7:45:19 PM
Gravatar
Total Posts 355

EnableNonClickablePageLinks in 2.3.8.5

I've just updated a client to the latest (2.3.8.5), along with a skin update. With the update, we're now having issues with "unclickable" menu items being clickable again. "EnableNonClickablePageLinks=true" is set in the skin, and the checkboxes are properly selected in page settings - anything else I need to confirm?

5/11/2012 7:26:41 AM
Gravatar
Total Posts 18439

Re: EnableNonClickablePageLinks in 2.3.8.5

Hi Carole,

The latest skins we ship based on Artisteer use a TreeView for the menu which doesn't support un-clickable items the same way as with Menu control, but it can be done.

Look for this in theme.skin:

<portal:mojoTreeView runat="server" SkinID="SiteMenu"

...

and add the attribute

RenderCustomClassOnAnchor="true"

Then in page settings add a custom menu css class as unclickable

Hope that helps,

Joe

5/11/2012 1:39:30 PM
Gravatar
Total Posts 355

Re: EnableNonClickablePageLinks in 2.3.8.5

I'm not sure I quite follow how I'm supposed to disable the link with CSS - do you have an example?

5/11/2012 1:44:47 PM
Gravatar
Total Posts 2239

Re: EnableNonClickablePageLinks in 2.3.8.5

The jQuery needed make the link unclickable is already included in mojoPortal. You just need to add the class to the page menu item.

HTH,
Joe D.

5/11/2012 1:57:42 PM
Gravatar
Total Posts 355

Re: EnableNonClickablePageLinks in 2.3.8.5

By using the css "unclickable" - got it. Glad there's a workaround, but it's a bit kludgy to have to add the CSS when there's a checkbox for it in the same page - any ETA for a fix to restore the functionality?

5/11/2012 2:12:44 PM
Gravatar
Total Posts 18439

Re: EnableNonClickablePageLinks in 2.3.8.5

It really works the same way, its just that with Menu control we can automatically add the unclickable css class and with TreeView we can't. You can use Menu instead of Treeview but I chose to use TreeView when implementating the latest artisteer skins because I don't like the way Menu adds javascript that sometimes requires using !important in css to overcome inline styles added by the menu javascript. TreeView doesn't add any styles from javascript but Menu does.

If you prefer to use Menu then simply change UseTreeView="true" to false on <portal:SiteMenu, then it will be able to automatically add the unclickable class when you uncheck the Is Clickable checkbox in page settings. If you use TreeView then you have to workaround it by adding it as a custom menu item class.

Hope that helps,

Joe

5/11/2012 2:36:05 PM
Gravatar
Total Posts 355

Re: EnableNonClickablePageLinks in 2.3.8.5

It helps a great deal - thanks!

5/15/2012 12:32:31 AM
Gravatar
Total Posts 10

Re: EnableNonClickablePageLinks in 2.3.8.5

I just tested with the custom menu css on the demo site, and it seems that the unclickable class is added to li instead of the a tag, which does not work.

5/15/2012 7:26:52 AM
Gravatar
Total Posts 18439

Re: EnableNonClickablePageLinks in 2.3.8.5

That is correct, the skins on the demo site are not configured for it. To enable it you would need to edit the layout.master file and on the <portal:StylesheetCombiner add the property EnableNonClickablePageLinks="true" 

This attribute is what adds the needed javascript to make a menu item unclickable.

and in theme.skin you would need to configure an attribute to make it render the custom menu class on the link:

<portal:mojoTreeView runat="server" SkinID="SiteMenu"
ContainerCssClass=""
RootUlCssClass="art-hmenu"
RenderLiCssClasses="true"
RenderAnchorCss="true"
RenderCustomClassOnAnchor="true"
LiCssClass=""
LiRootExpandableCssClass=""
LiRootNonExpandableCssClass=""
LiNonRootExpnadableCssClass=""
LiSelectedCssClass="active"
LiChildSelectedCssClass="active"
LiParentSelectedCssClass=""
AnchorCssClass=""
AnchorSelectedCssClass="active"
ExpandDepth="-1"
ShowExpandCollapse="false"
PopulateNodesFromClient="false"
SuppressCornerDivs="true"
MaxDataBindDepth="-1"
/>

Hope that helps,

Joe

5/15/2012 2:47:07 PM
Gravatar
Total Posts 10

Re: EnableNonClickablePageLinks in 2.3.8.5

I missed the setting in theme.skin.

Thanks a lot, Joe!

You must sign in to post in the forums. This thread is closed to new posts.