• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Fetching CMS content to the front end.

Knowledge Base
2
5
324
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    anjugopi last edited by 13 Sept 2021, 09:40

    Hi Channel,

    Is it possible to display the CMS content to the home page?

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 14 Sept 2021, 09:26

      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.

      1 Reply Last reply Reply Quote 0
      • A
        anjugopi last edited by 14 Sept 2021, 12:37

        Hi @devansh-webkul,
        Thank you for you replay. Can you please provide any sample code for these two method?

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 15 Sept 2021, 04:26

          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#L23

          Place your CMS code here,
          https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Velocity/src/Resources/views/shop/home/index.blade.php#L66

          1 Reply Last reply Reply Quote 0
          • A
            anjugopi last edited by anjugopi 15 Sept 2021, 06:52 15 Sept 2021, 04:41

            @devansh-webkul
            Thank you.Let me try this method.

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post