Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Dynamic toolbar depending on the page


I'm trying to change the toolbar content, especially the action buttons on the right depending of the current page in the React template, but I''m not able to do it. Any suggestion?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi,

Thank you for reaching out to us.

Could you please specify which Metornic version you are using?

In the latest Metronic version, we are setting the toolbar on every page separately. Instead of using the default ToolbarWrapper component, you can use toolbar component options available in src/_metronic/layout/components/toolbar/toolbars folder or use your custom toolbar component.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



we are setting the toolbar on every page separately


I haven't updated the assets since major 8.2.0 version. Are there any difference regarding toolars between 8.2.0 and 8.2.2?

If not, then I can't understand how toolbars are set on each page separately

Nevermind, I just saw the changelog of v8.2.2 and it contains exactly what I'm looking for happy



Hi,

Yes, in Metronic v8.2.2 we use a different approach to set the toolbar.

Please let us know if you have any further questions on this topic or anything else.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(