Bagisto Forum

    Bagisto

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

    How do I create custom attributes for CMS page?

    Knowledge Base
    3
    6
    885
    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.
    • T
      tfleong last edited by

      Hi! How do I add custom attributes to the CMS page eg. publish date, author etc.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        @tfleong
        You have to do change Here for the same

        1 Reply Last reply Reply Quote 0
        • T
          tfleong last edited by

          Thanks for the reply. How do I then store the additional data? Do I need to create new migration to add the new fields and modify the controller to accept them?

          1 Reply Last reply Reply Quote 0
          • admin
            admin last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • sanjay-webkul
              sanjay-webkul last edited by

              Hi there,

              Yes, you have to do changes to controllers and migration files accordingly.

              1 Reply Last reply Reply Quote 0
              • T
                tfleong last edited by

                Is there a way for me to extend or override the view and controllers so I don’t need to edit the core package files?

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