Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Metronic -- Aside -- Laravel -- Demo 3


Hi,

First of all, We appreciate your effort in Metronic themes. These are fantastic.

We trying demo 3 - laravel version. We try to disable the aside menu on some particular pages. that was not working. can you suggest me how to do that.


We enabled aside in general.php file and we disabled in page.php
These are written in demo3 directory under config

General.php


// Aside
"aside" => array(
"menu-icon" => "svg", // Menu icon type(svg|font)
"display" => true,
),


Page.php


"card-maker" => array(
"title" => "Business Card Maker1",
"view" => "card-maker/index",
"layout" => array(
"page-title" => array(
"description" => false,
"breadcrumb" => false,
),
),
"aside" => array(
"display" => false,
),
)


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (12)


Hi,

I already raised question, not answered for more than 3 days. please update me on this

Thanks



Hi Suresh Nachiappan,

Sorry for the delay. We will get back to you shortly with the solution.

Thanks



Hi Suresh Nachiappan,

Seems it is a bug. We will fix it as soon as possible. As a workaround, could you please update this file?
resources/views/layout/demo3/master.blade.php somewhere in line 15.

From this:

{{ theme()->getView("layout/aside/_base") }}


to this:

@if (theme()->getOption("layout", "aside/display") === true)
{{ theme()->getView("layout/aside/_base") }}
@endif


Thanks



Thanks for the reply,

we already done this, but above one is for entire pages. we need to fix for the specific page. can you suggest me how to fix this



Hi Suresh,

Could you please try to put it under the layout option?



Thanks



Thanks for the reply,

it not updating the values, still remains the same. always in true. even it set false on the pages.php on global



Hi Suresh,

Do you still put this code part?


@if (theme()->getOption("layout", "aside/display") === true)
{{ theme()->getView("layout/aside/_base") }}
@endif


By right, theme()->getOption('layout', 'aside/display') will read config value from the demo3/pages.php first, if exist like below config.



Thanks



Yes, i tried but it getting value true. even if i set demo3/pages.php as false.

when i try to debug theme()->getOption('layout', 'aside/display')
im always getting values true.



Are you sure you have put the "aside" option inside "layout"?

The config you have given above is not correct. The "aside" config is outside from "layout".



Thanks



Can you try the same scenario from you side and share me the solution

Thanks



We tried like that only, we not getting result.

Can you give me the solution instead of reply

return array(
"" => array(
"title" => "Dashboard",
"description" => "",
"view" => "index",
"layout" => array(
"page-title" => array(
"description" => true,
"breadcrumb" => false,
),
"aside" => array(
"display" => false
)
),
"assets" => array(
"custom" => array(
"js" => array(
"js/widgets.bundle.js",
),
),
"vendors" => array("fullcalendar", "amcharts", "amcharts-maps"),
),
)
);



Hi Suresh,

I did try and gave this solution.


@if (theme()->getOption("layout", "aside/display") === true)
{{ theme()->getView("layout/aside/_base") }}
@endif


By right, theme()->getOption('layout', 'aside/display') will read config value from the demo3/pages.php first, if exist like below config.



I will retry.

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(