Office UI fabric react Commandbar 3rd level menu rendering issue

I am using Office UI fabric react commmandbar in Office 365 – SharePoint to display 3 level navigation.It’s showing 1st level then click on it user can see 2nd level and onmouseovercof 2nd level,3rd level is populating. I am having the problem when I am adding href to 2nd level then 3rd level is not getting populated and If I remove the href value then 3rd level menu is populating. Is there any way we can overcome this problem or any alternate setting we can apply to commandbar.

Set Link On Admin Menu Grid values in Magento 2

I want to add link in Custom Menu Grid values, so for achieving this I add a class in my layout file and in the class file i do this following

<?php  namespace Feedback\Addon\Ui\Component\Listing\Columns;  use Magento\Framework\View\Element\UiComponentFactory; use Magento\Framework\View\Element\UiComponent\ContextInterface;  class UserEmail extends \Magento\Ui\Component\Listing\Columns\Column {     /**      * Prepare Data Source      *      * @param array $  dataSource      * @return array      */     public function prepareDataSource(array $  dataSource)     {         if (isset($  dataSource['data']['items']))          {             $  fieldName = $  this->getData('email');             foreach ($  dataSource['data']['items'] as & $  item)              {                 if (isset($  item['email']))                  {                     $  path = $  this->context->getUrl('customer/index/edit/',['id'=>244]);                      $  url = "<a = '".$  path."'>".$  item['email']."</a>";                       $  item['email'] = '<a href="'.$  this->context->getUrl('customer/index/edit/',['id' => 224]).'">'.$  item['email'].'</a>';                      $  item[$  name] = html_entity_decode('<a href="'.$  this->urlBuilder->getUrl(self::PRODUCT_URL_PATH_EDIT, ['id' => $  item['product_id']]).'">'.$  item['product_id'].'</a>');                 }             }         }          return $  dataSource;     } } 

it will return the tag not the link, so please tell me what should I do

Retrieving menu and turning into an array

I’m trying to get the menu and turn it into an associative array in which I will use as webservice. I manage to get it but I encountered an error in getting the subtree.

here’s what I have done so far:

$  menu_params = new \Drupal\Core\Menu\MenuTreeParameters(); $  menu_params ->setMaxDepth(2); $  menu_params ->onlyEnabledLinks(); $  menu_tree = \Drupal::menuTree()->load('main', $  menu_params ); $  menuItems = array(); foreach ($  menu_tree as $  key => $  value) {   $  menuUUIDArray = explode(':', $  key);   $  uuid = $  menuUUIDArray[1];   $  menuItem = [];   $  menu_content = current(\Drupal::entityManager()->getStorage('menu_link_content')->loadByProperties(array('uuid' => $  uuid)));   $  url = $  menu_content->getUrlObject();   $  menuItem = array(      'title' => $  value->link->getTitle(),      'has_children' =>$  value->hasChildren,      'link' => ($  url->toString() == '') ? '#' : $  url->toString(),      'weight' => $  menu_content->get('weight')->value      'sub_tree' => $  value->subtree //error occurs here    );   $  menuItems [] = $  menuItem ; } 

How do I access my terminal from drop to root shell promot at the recovery menu?

I cannot get access to the log in on my ubuntu. This is a big problem. I tried so many ways to get back into my account. its been a week. I am suepr fruastrated. Please give me a helping hand. I tried numerous ways like nomodeset etc but still purple screen/black screen and there is no log in details. =[[[[[[[[

Menu vertical escondido con tres rayitas

tengo actualmente un menu horizontal arriba en la pagina y al hacer click varia el contenido abajo obviamente. Pero quiero crear un menu vertical a la izquierda porque me parece mas comodo para dispositivos moviles, y quiero que tenga las 3 rayitas el logo standar que lo haga aparecer y desaparecer. alguien tiene algun tutorial o codigo de ejemplo?

<ul class="sidebar">     <li class="dropdown"><a  data-toggle="dropdown" class="dropdown-toggle">   <i class="glyphicon glyphicon-plus"></i>       <span>ABM</span></a>     <ul class="dropdown-menu">         <li><a href="index.php?controller=cliente&action=index">         <i class="glyphicon glyphicon-user"></i><span>Cliente</span>         </a></li>         <li><a href="index.php?controller=articulo&action=index">         <i class="glyphicon glyphicon-list-alt"></i><span>Articulo</span>         </a>                    <ul class="dropdown-menu sub-menu">                         <li><a href="index.php?controller=marca&action=index">Marca</a></li>                         <li><a href="index.php?controller=categoria&action=index">Categoria</a></li>                         <li><a href="index.php?controller=subcategoria&action=index">SubCategoria</a></li>                     </ul>                 </li>         <li ><a href="index.php?controller=proveedor&action=index"> <i class="glyphicon glyphicon-user"></i><span>Proveedores</span></a></a></li>        <!--  <li ><a href="index.php?controller=envase&action=todos">Envases</a></li>         <li ><a href="index.php?controller=medida&action=index">Medidas</a></li>         <li ><a href="index.php?controller=canilla&action=index">Canillas</a></li> --!>        <li ><a href="index.php?controller=user&action=index"> <i class="glyphicon glyphicon-user"></i><span>Usuarios</span></a></li>       </ul>     </li>

Tengo ese menu de arriba. Actualmente tengo en el index principal el modelo vista controlador, es decir la funcion call incluye el archivo html de la vista que se llama:

<html xmlns="http://www.w3.org/1999/xhtml">     <head>     <title>GESTION</title>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>         <link rel="stylesheet" type="text/css" href="css/stylos.css"/>                      <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />         <link rel="stylesheet" href="bootstrap/css/bootstrap.css" />         <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css" />         <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css" />         <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css" />         <link rel="stylesheet" href="css/stylos.css" />         <script src="includes/jquery-3.3.1.js"></script>         <script src="bootstrap/js/bootstrap.js"></script>  </head>  <body> <?php session_start(); ?>                    <script type="text/javascript" src="views/login.js"></script>             <?php                require_once("routes.php");        if ( isset($  _SESSION['username']) && isset($  _SESSION['userid']) ){        if (isset($  _GET['controller'])&&isset($  _GET['action'])) {  require_once("views/template.php");         $  controller=$  _GET['controller'];          $  action=$  _GET['action'];         if (isset($  _GET['id'])){                          $  id=$  _GET['id'];             call($  controller,$  action,$  id);         }else{                      call($  controller,$  action,0); }      }else{              }  }  else{     echo '<div class="contenedor"> <div class="cabecera"> </div> <div class="cuerpo"> <div class="panel panel-primary" style="width:50%"> <div class="panel-heading">INGRESE AL SISTEMA</div> <div class="row"> <div class="col-sm-4"> <label style="color: blue">Usuario:</label></div><div class="col-sm-4">                 <input type="text" style="color:blue" name="login_username" id="login_username" /></div>                       </div><div class="row"><div class="col-sm-4">                 <label style="color: blue">ContraseƱa:</label></div><div class="col-sm-4">              <input type="password" name="login_userpass" id="login_userpass" style="color:blue" />         </div>         </div>          <div class="row"><div class="col-sm-4">              <span class="timer" id="timer"></span><button id="login_userbttn" class="btn btn-primary">Login</button></div>               </div>   </div> </div>   '; } ?>              </body>      </html>

Es decir para que el menu sea vertical que debo hacer y para incluir la vista en toda la panatalla y esconder el menu?

Gracias

Locked out of Unbuntu 18.04 no grub menu

I am locked out of my Ubuntu 18.04. Oddly enough the time on the mlaptop machine has changed from standard to military.

I have tried reboot>>hold down shift key and it produced noting.

I have also tried reboot>>hold down the esc key and it gets me to a grub page but not the one I am looking for.

I am locked out, unable to get in via grub. Is there anyway I can just get my data off this thing and reinstall fresh? Or is there a way to access my 18.04 account?

Thank you

How do I remove the active class in the main menu?

One item in the menu has sub-items that point to the same page (just with different arguments) ex:

Products – List item 1 \products?pid=1 – List item 2 \products?pid=2 – List item 3 \products?pid=3

Drupal assigns the “active” class in the

  • and tag of the menu items since all the items have the same page url (\products)

    I’m overwriting the menu_link function in template.php to remove the active class but the class remains in the tag

    function mytheme_menu_link(array $  variables) {   $  element = $  variables['element'];   $  sub_menu = '';    if ($  element['#below']) {      if (strtolower($  element['#title']) == 'Products') {        if (isset($  _GET['pid'])) {         $  currID = $  _GET['pid'];          foreach ($  element['#below'] as $  Taxonomy) {            if ($  currTaxonomyID != $  Taxonomy['#localized_options']['query']['pid']) {             $  mlid = $  Taxonomy['#original_link']['mlid'];             $  key = array_search('active', $  Taxonomy['#attributes']['class'], TRUE);                         if ($  key) {               unset($  element['#below'][$  mlid]['#attributes']['class'][$  key]);               $  element['#below'][$  mlid]['#localized_options']['attributes']['class'][$  key] = '';             }             // remove active-trail class             $  key = array_search('active-trail', $  Taxonomy['#attributes']['class'], TRUE);                         if ($  key) {               $  element['#below'][$  mlid]['#attributes']['class'][$  key] = '';                           }           }                   }       }           }     $  sub_menu = drupal_render($  element['#below']);            }   $  output = l($  element['#title'], $  element['#href'], $  element['#localized_options']);     return '<li' . drupal_attributes($  element['#attributes']) . '>' . $  output . $  sub_menu . "</li>\n"; } 

    Final Result:

    <ul class="menu nav">    <li class="first leaf menu-mlid-44253">       <a href="/products?pid=1" title="Best Practices" class="active">Best Practices</a>     </li>     <li class="leaf menu-mlid-44254">       <a href="/products?pid=2" title="Checklists" class=" active">Checklists</a>     </li> .... 

    How can I remove the class “active” from the tag?

    My menu Structure:

    -Clients -Products   -prod1 (url:\products?pid=1)   -prod2 (url:\products?pid=2)   -prod3 (url:\products?pid=3)   -prod4 (url:\products?pid=4) -About 
  • When targeting API 26, overflow menu items become invisible

    I have an options menu in my app, which has more than six items, so there is a “More” item that brings up the overflow menu. The menu is posted by the default menu triggers, and a custom trigger that invokes Activity.openOptionsMenu().

    The menu itself is built from this resource file:

    <menu xmlns:android="http://schemas.android.com/apk/res/android">     <item android:id="@+id/mi_copy"           android:title="Copy"           android:icon="@drawable/copy"/>     <item android:id="@+id/mi_paste"           android:title="Paste"           android:icon="@drawable/paste"/>     <item android:id="@+id/mi_preferences"           android:title="Preferences"           android:icon="@android:drawable/ic_menu_preferences"/>     <item android:id="@+id/mi_flip_calc_printout"           android:title="Print-Out"           android:icon="@drawable/printer"/>     <item android:id="@+id/mi_clear_printout"           android:title="Clear Print-Out"           android:icon="@android:drawable/ic_menu_close_clear_cancel"/>     <item android:id="@+id/mi_about"           android:title="About Free42"/>     <item android:id="@+id/mi_import"           android:title="Import Programs"/>     <item android:id="@+id/mi_export"           android:title="Export Programs"/> </menu> 

    So far, so good. The menu and the Java logic that creates and posts it has worked for years, but now I’m changing the targetSdkVersion from API level 8 to 26, per the latest Play requirements, and now all of a sudden, the menu items in the overflow menu have become invisible.

    The overflow menu still posts, and it still has the correct size, and the menu items still work. You just can’t see them any more: the whole menu is solid black now, which is the normal background color; the menu item text is missing.

    The phone on which I’m testing is a Motorola G5 running Android 8.1.0. This is the only device I have available for testing with API 26 at the moment, at least until I figure out how to create an AVD with API >= 26.

    N.B. In the Android simulator with an API level 8 image, the overflow menu still looks fine. It used to look fine on the Moto G5 as well, before I targeted API 26. If I change the target back to 8, the overflow menu works again.

    Any thoughts on what I could do to fix this? My Google skills aren’t working on this one… Any ideas would be most welcome!