Skip to main content
added 78 characters in body
Source Link
Hudri
  • 5.2k
  • 3
  • 20
  • 56

I wouldn't recommend not doing this by code, this can be achieved using built-in configuration settings, by using a second block with proper rules. Try this:

  1. Go to Structure > Block layout
  2. Select your theme
  3. Place a second tabs block where-ever you want it
  4. Limit the visibility on the block fitting your requirements
    • Most likely limit Pages to something like user/*
    • and by Roles, e.g. Authenticated user
    • (remember that administrators are authenticated users too, so you might need more specific roles to to prevent admins seeing tabs block twicetwice; or add the "hide"-option on user-pages for the first, original tabs block )

I wouldn't recommend not doing this by code, this can be achieved using built-in configuration settings, by using a second block with proper rules. Try this:

  1. Go to Structure > Block layout
  2. Select your theme
  3. Place a second tabs block where-ever you want it
  4. Limit the visibility on the block fitting your requirements
    • Most likely limit Pages to something like user/*
    • and by Roles, e.g. Authenticated user
    • (remember that administrators are authenticated users too, so you might need more specific roles to to prevent admins seeing tabs block twice)

I wouldn't recommend not doing this by code, this can be achieved using built-in configuration settings, by using a second block with proper rules. Try this:

  1. Go to Structure > Block layout
  2. Select your theme
  3. Place a second tabs block where-ever you want it
  4. Limit the visibility on the block fitting your requirements
    • Most likely limit Pages to something like user/*
    • and by Roles, e.g. Authenticated user
    • (remember that administrators are authenticated users too, so you might need more specific roles to to prevent admins seeing tabs block twice; or add the "hide"-option on user-pages for the first, original tabs block )
Source Link
Hudri
  • 5.2k
  • 3
  • 20
  • 56

I wouldn't recommend not doing this by code, this can be achieved using built-in configuration settings, by using a second block with proper rules. Try this:

  1. Go to Structure > Block layout
  2. Select your theme
  3. Place a second tabs block where-ever you want it
  4. Limit the visibility on the block fitting your requirements
    • Most likely limit Pages to something like user/*
    • and by Roles, e.g. Authenticated user
    • (remember that administrators are authenticated users too, so you might need more specific roles to to prevent admins seeing tabs block twice)