Fetching CMS content to the front end.
-
Hi Channel,
Is it possible to display the CMS content to the home page?
-
Hi @anjugopi,
If you want programmatically then you just need to fetch the CMS content on the homepage.
Otherwise, just copy the CMS body and paste it into the home page content from the admin panel.
-
Hi @devansh-webkul,
Thank you for you replay. Can you please provide any sample code for these two method? -
Are you looking code-wise, because I think this can easily copy and paste in the admin panel?
If yes,
Then this is the CMS code,
https://github.com/bagisto/bagisto/blob/4f498dfc70d9e8a8581ab142cb1f9973e465effa/packages/Webkul/Velocity/src/Resources/views/shop/cms/page.blade.php#L23Place your CMS code here,
https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Velocity/src/Resources/views/shop/home/index.blade.php#L66 -
@devansh-webkul
Thank you.Let me try this method.