Hi,

I'm currently trying to add a new static item to the top menu (header 
section) in DSpace v9.0. According to the documentation, this could be done 
by simply adding a new *<li>* element to the unordered list inside 
*app/navbar/navbar.component.html*, like so:

<nav>
  ...
  <div id="collapsingNav" ...>
    <ul class="navbar-nav" ...>
      ...
      <li class="nav-item d-flex align-items-center">
        <div class="text-md-center">
          <a href="http://dspace.org"; class="nav-link">DSpace.org</a>
        </div>
      </li>
    </ul>
  </div>
</nav>

However, in version 9.0, the structure of navbar.component.html seems to 
have changed significantly. Here's what I see now:

<nav [ngClass]="{'open': (menuCollapsed | async) !== true}"
  ...
  <div class="navbar-nav align-items-md-center me-auto shadow-none gapx-3" 
role="menubar">
    @for (section of (sections | async); track section) {
      <ng-container
        *ngComponentOutlet="(sectionMap$ | 
async).get(section.id)?.component;
        injector: (sectionMap$ | async).get(section.id)?.injector;">
      </ng-container>
    }
  </div>

Given this new structure, directly adding a <li> tag does not seem to work 
anymore.

*Could you advise on the recommended way to add a static link to the header 
menu in DSpace 9?* Ideally, I would like the item to be always visible, 
regardless of authentication state.

Best regards,
*Fábio*

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/3a517f83-faad-49d5-a495-ddc423290993n%40googlegroups.com.

Reply via email to