In Portal 7 - I can highlight my custom SubMenu item with this code: administration.views.add("Administration.xhtml");

SubMenuItem administration = new SubMenuItem();
administration.setMenuKind(MenuKind.CUSTOM);
administration.setIcon("fa fa-database");
administration.setLabel("Administration"));
administration.setLink(UrlUtils.getUrlByRequestID("17235FB212434858/administration.ivp"));
administration.views.add("Administration.xhtml");
in.subMenuItems.add(administration);

But I see it not work in portal8. So the first question is how I can highlight my custom subMenu in portal8?

Second point that How I can highlight my subMenu If my page start with IFrame? Because the view always ch.ivy.addon.portal.generic.iframe.TaskTemplateIFrame/TaskTemplateIFrame.xhtml

asked 01.06 at 05:52

nbthong's gravatar image

nbthong
11124
accept rate: 0%


hi @nbthong, From Portal 8, we start using Primefaces Serenity theme, so it doesn't use the views attribute of SubMenuItem then we make Deprecated.

In case you want to highlight a submenu if your page starts with IFrame, the Portal doesn't support this requirement. You need to make a specific js code to catch the #iFrame element then refer to highlightMenuItem method in portal.js to highlight your menuItem.

Thanks!

link

answered 01.06 at 22:31

nqhoan's gravatar image

nqhoan
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×15

Asked: 01.06 at 05:52

Seen: 250 times

Last updated: 01.06 at 22:31