Breadrumbs of items

6 years 9 months ago #1900 by sakattack

Hello

Is there a way to remove a breadcrumb from the items if the breadcrumb is linking to the page that the user is already on? Meaning, is there any way to check in which menu levels the user is in so to remove from the items breadcrumbs any links pointing to the very same levels?

I also need to be able to check in which levels the component is at the moment, in order to add meta noindex to specific levels.

I know how to remove the breadcrumbs or add meta noindex. what i haven't been able to do is check in which levels the component is at any moment. I found the code that checks in HOW MANY levels the component is in (e.g. levels == 4) but that doesn't help me achieve what i need.

Thank you for your time and for the excellent component!



  • Posts: 42
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    6 years 9 months ago #1902 by bram

    sakattack wrote:

    Hello

    Is there a way to remove a breadcrumb from the items if the breadcrumb is linking to the page that the user is already on? Meaning, is there any way to check in which menu levels the user is in so to remove from the items breadcrumbs any links pointing to the very same levels?
    [/qoute]
    You can use JRequest::getVar('q1') to check whether or not a parameter is set for a menu level
    sakattack wrote:

    I also need to be able to check in which levels the component is at the moment, in order to add meta noindex to specific levels.


    there is a value $this->where; which is the highest used menu level plus one.



  • Posts: 1494
  • Karma: 57
  • Thank you received: 247

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    6 years 9 months ago #1903 by sakattack

    Thank you very much. And congrats for the most useful component in joomla. I'll be donating once I've made enough money, not because i need the extra help but because i feel you really deserve it.



  • Posts: 42
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    Time to create page: 0.045 seconds
    Powered by Kunena Forum