Announcement

Collapse
No announcement yet.

Removing one item

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing one item

    Hello!
    Is there anyway to remove "Last Time Seen" from the menu above?

    Thx : )

  • #2
    Hi,
    The easiest way is to comment (place a code between /* and */)the provided below part of a code in the /client/src/views/site/navbar.js file:
    Code:
    if (!this.getConfig().get('actionHistoryDisabled')) {
        list.push({
            divider: true
        });
        list.push({
            action: 'showLastViewed',
            link: '#LastViewed',
            label: this.getLanguage().translate('LastViewed', 'scopeNamesPlural')
        });
    }
    After this change, you have to clear cache (Administration -> Clear Cache).

    Note, you have to find out how to achieve these changes by customizing it in the /custom directory, cause the way provided above is not safety. It means that this change can be rewritten by any system upgrade action.

    Comment


    • Cabaret
      Cabaret commented
      Editing a comment
      Thank you so much ! : )

  • #3
    hello,
    Maximus :
    if (!this.getConfig().get('actionHistoryDisabled')) {

    so i think just add in config.php

    actionHistoryDisabled => true

    Comment


    • #4
      Hi item.
      You are right. But the request was how to remove this option from the list, not to disable the system action logger.

      Comment


      • item
        item commented
        Editing a comment
        Hi Maximus, my english is poor .. very poor.. so i try and use google translate..
        Thanks for your help for community, i learn many with your post
    Working...
    X