Bagisto Forum

    Bagisto

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

    Fetching CMS content to the front end.

    Knowledge Base
    2
    5
    315
    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

      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

        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

          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

            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

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post