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

Symfony Metronic > Build other demos


Hello,

Thanks for the work on metronic symfony this is really great.

I was wondering if there was any way to build other demos than demo 1 using the symfony starterkit.

Checking the content of webpack.config.js, I supposed I might force it by using an env var, ie :

export npm_config_demo3=true && yarn build


But this gives me an error :

[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration[0].entry["js/widgets.bundle"] should be a non-empty array.
-> All modules are loaded upon startup. The last one is exported.


Is this supported ? It's just about getting the styles right.


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 (1)


Hi Joris,

Apologies for the delay in response. Currently, the Metronic Symfony Starter Kit only includes demo1. However, if you're interested in implementing another demo, like demo3, you can follow these steps:

Layout Builder:
Utilize the Metronic Demo3 Layout Builder.
Export the partials files or configurations related to the layout from the builder.

https://preview.keenthemes.com/metronic8/demo3/layout-builder.html

Symfony Implementation:
Incorporate the exported partials or configuration files into your Symfony project.
Adjust paths and references in the layout files to match your Symfony project structure.

Assets:
Obtain the assets (stylesheets, scripts, images, etc.) for demo3 from the HTML version of demo3.
Integrate these assets into your Symfony project and update any asset references in the copied layout files.

If there are demo-specific dependencies or functionalities, handle them accordingly.

Let me know if you have further questions or need additional assistance!


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  :(