• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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 1 Jun 2022, 17:15

    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 2 Jun 2022, 05:06

      @tfleong
      You have to do change Here for the same

      1 Reply Last reply Reply Quote 0
      • T
        tfleong last edited by 3 Jun 2022, 06:44

        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 3 Jun 2022, 07:03

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • sanjay-webkul
            sanjay-webkul last edited by 3 Jun 2022, 07:03

            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 3 Jun 2022, 11:05

              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
              3 out of 6
              • First post
                3/6
                Last post