Manually setting a breadcrumb in Zend Framework - zend-framework

I have all the menu items in a Zend Navigation Container.
I'm displaying the breadcrumb via Zend's breadcrumb helper.
When I visit one of the menu items, it's displaying the breadcrumb correctly. However, if I have a page which doesn't occur in the Navigation Container, it doesn't show a breadcrumb, which makes sense. But I do want to show a breadcrumb on some of those pages.
I have a controller named "cart" and an action named "checkout". When I visit the page /cart/checkout, I do want to show a breadcrumb. But what's the best way of doing this?
Can I manually add breadcrumblinks in de controller or do I have to add the page to the Navigation Container?

There are three possibilities:
add the required paged statically to your navigation container (through code or a configuration file)
add the required pages dynamically to your navigation container; either in the action method itself, in the controller-init()-method or via a front-controller-plugin
create a separate navigation container with just the pages required by the breadcrumb and pass this container to the breadcrumb-helper (bypassing the automatic container-recovery using the registry).

Related

Open custom tabs in fragment

I have implemented custom tabs in my app and I have bottom navigation bar. When I click on any item in the bottom bar the fragment opens. Inside the fragment the custom tabs have to open. Custom tabs have to be open in a view not as a separate window.
Custom Tabs is not a View, but an entire Activity that is hosted in the browser process and handled as part of the application tasks stack. So, it can't be part of another Activity's view hierarchy and can only be used as a standalone Activity.
The Android WebView is a an Android View and can be used inside an Activity. But,
generally, content opened inside the WebView should be designed with the component in mind, as it doesn't support every API available to modern web apps (eg: push notifications).

Attaching an ActiveX TreeView Control into a tabbed Access form

I have a tabbed form in Access and on one tab, I'd like to create an ActiveX TreeView object. When I go to build this object and drag it to the tab, it attaches itself to the general form instead of the tab. This puts the control over top of all the tabs instead of the tab I want it in.
How do I attach the ActiveX control to the tab and not the entire form?
I've done a number of different "moves" to try and get it to attach and I've looked through the options to see if there is an easy way to attach it but nothing actually defines how the control is attached unlike a normal Access form control that is contained in the tab.
I would like to keep the extra forms to a minimum and maintain a single, tabbed form with separate controls on each tab.
Answer:
Make sure to select the tab first and then create the TreeView control. TreeView controls cannot be attached to a tab page by drag/drop.
If done correctly, the control will be placed on the tab page just under the tab name within the borders of the tab page. A quick test by selecting other tabs can be done to check that it attached to the right tab and only that tab.

Can Ionic menu and menu content uses same controller

I have an ionic-side-menus directive for several pages, each with its own menu, can the content and menu page use the same controller in some way?
Yes you can, add the same controller in ui router to the views you want to share the same controller with (app.js)
Check out the following plnkr (standard side menu template from ionic)
#app.js
app state (menu.html) and app.playlists (playlists.html) shares the same controller (PlaylistCtrl)
#controllers.js
in PlaylistCtrl has two variables accessed by the side menu and the main page.
HTH

How to add multiple pages to single page navigation bar in dotCMS

I created two individual pages - a "home" and a "product" page. I want to add these to a page navigation bar. So, this page should contain a navigation bar and two menu elements named "HOME" and "PRODUCT".
How can I achieve this using dotCMS?
In the page properties, check the box "show on menu" for both your pages. Then you can use the navigation tool ($navtool) to build your navigation. See this page in the documentation:
http://dotcms.com/docs/latest/NavigationTool

Nav Bar on form issue

I am having an issue with a custom nav bar item in a form that links to a simple html web resource, for some reason the nav item is only visible to system admins, when I try to view the form with a regular user the nav item is not visible. Is there a privilege somewhere that I am missing? The nav item is in the common section of the form and it links to a web resource in CRM, I already tested and the resource is accessible to the users that cannot see the Nav item.
Download the sitemapeditor from codeplex. You probably need to give certain user rigths to do this. Using the sitemapeditor makes it that you can see how to do this by checking other nodes in the tree. Succes