Navigation Menu Not Displaying in orchard 1.6 - c#-4.0

I created a new theme in orchard 1.6 using codegen. After I created the theme I added the navigation part in the Layout.cshtml like so:
#if (Model.Navigation != null) {
#Zone(Model.Navigation)
}
But the navigation menu is not displaying. I am new to orchard, so any advice would be great.

The menu is a widget. Go to the widget management screen and add it to your navigation zone.

Related

Primefaces - Navigation menu, wrong highlighted menuitem

I am using Avalon Theme. For navigation menu was used <pm:menu model = #{managedBean.panelMenuModel}/> element.
Model elements returns {DefaultMenuItem, DefaultSubMenu, DefaultSubMenu ....}
Menu is rendering properly. But sometimes, when I was click a menu item, It highlighted wrong the current selected.
For exeample, I clicked 2.submenu>1.menuitem, it highlighted 4.submenu>3.menuitem.
But current url is 2.submenu>1.menuitem url
#{managedBean.panelMenuModel} = https://ibb.co/59R7BnN
And I shared you a gif https://ibb.co/PT69Lp2. The problem is exactly as you can see.
How can I fix that?
Info : Primefaces 6.1 , Mojarra 2.2.11, Avalon 2.1.2 and SpringBoot

Liferay 7.3: How to make menu items in a theme controlled by admin

I have a liferay theme for version 7.3. I am facing one problem in the theme's menu.
Now menu has some static items. How can I change (add / remove) items dynamically by admin account?
The menu is added in /src/templates/portal_normal.ftl as
<#include "${full_templates_path}/menu-bar.ftl" />
this file has static html data.
Now how can I make it dynamic so that admin can change the menu items?
Make the menu as a web content, and drag it to the theme? Not makes sense because menu is the part of the theme.
Or any other way of picking the menu items, looping the items in .ftl and display it?
The times of scripting navigation and menus in the theme are over, and I'd rather recommend to embed a portlet in your theme that does the job. That might be a stock NavigationMenu portlet (see how Liferay's default "classic theme" does this with NavigationMenu or the SearchBar), or a custom one, which generates exactly what you'd like.
Reason: It's a lot simpler to redeploy a new portlet and generate/test appropriate HTML markup generation in a portlet than it is to implement proper error handling in a theme's freemarker script.
The solution can be if you want to add your data in navigation menu in themes, go into the navigation menus inside site builder in menu and create a new menu by clicking + button on top right and name the menu. Then go into the pages inside site builder inside menu. There will be a + sign on public pages. Click that and add a page that you want to list. If you want to create a submenu then on the page that is created, create a subpage by clicking there + sign. The page will be child and will be shown as a sub menu in theme.

Add Nav buttons on left hand side of Navigation bar

I have a Xamarin page with a Navigation bar at the top.
I keep changing the views on the page with some button clicks, but the page remains the same.
What I need is, when I load a new view (say View A) on this page, I want to add a Back button on the top Nav bar of the page.
I saw some forums where they are using Custom page renderers to add Back button.
But here, the page remains the same. Only the view changes. So, I guess I need to use the custom view renderer to add the Navigation button.
How can I achieve this, as NavigationController which I need to add a Nav button is present in Page renderers, not View renderers.
I need some help.
Thanks
UIBarButtonItem customButton = new UIBarButtonItem(
UIImage.FromFile("Image/image.png"),
UIBarButtonItemStyle.Plain,
(sender, e) =>{
//InitView
});
NavigationItem.LeftBarButtonItem = customButton;
this.NavigationItem.LeftBarButtonItem.TintColor = UIColor.Orange;

How to make a projection submenuItem of a menuItem In Orchard CMS

I use Orchard CMS 1.10.1. When creating a projection from dashboard I can check show on menuto show it on root of my menu.
I was wondering how can it be placed as subMenuItem and not in the root of my menu?
When adding new menu items in Orchard, it will add them always to the root level, but after you add them go to Navigation page and sort the menu items as you want by dragging them.
FYI, you can drag an item to be child to other one.

Orchard Breadcrumb Menu Placement

I have a site (1.9.2) that is using the built-in breadcrumb menu widget (display as breadcrumb option).
I have created an alternate for my custom content type (Product) and I need to display the breadcrumb between 2 zones declared in my Product alternate (Content-Product.Detail.cshtml).
As it's a widget, I can only place it in the top-level zones e.g. Content / BeforeContent.
Is there any way to control the positioning of the widget to so that it can be manipulated in my alternate?
Or is there a better way to implement a breadcrumb than using the menu widget?
Any help would be great.
Thanks

Resources