skijasi/content-module

Manage website content through skijasi

dev-main 2023-05-30 22:37 UTC

This package is not auto-updated.

Last update: 2024-10-30 10:59:41 UTC


README

Manage your website content through dashboard easily out of the box

How to installation content manager module

  1. Install Skijasi from laravel project
  2. Install skijasi content module

For v2.x (Laravel 8)

composer require skijasi/content-module

For v1.x (Laravel 5,6,7)

composer require skijasi/content-module:^1.0
  1. Set env
MIX_DEFAULT_MENU=admin
MIX_SKIJASI_MENU=${MIX_DEFAULT_MENU},content-module
MIX_SKIJASI_PLUGINS=content-module
  1. Call command php artisan migrate
  2. Call command php artisan skijasi-content:setup or php artisan skijasi-content:setup --force if you want to overwrite the file
  3. Call command composer dump-autoload
  4. Call command php artisan db:seed --class=SkijasiContentModuleSeeder
  5. In menu item "Role Management" from skijasi admin panel, add permission user to fill content

image

Support type content

  1. Text

    Support text type value content

    JSON example output
    {
     "text-exmaple" : {
       "name" : "text-example",
       "label" : "Text Example",
       "type" : "text",
       "data" : "Lorem ibsum siamet dor..."
     }
    }
    
  2. Image

    Support image type value content, image your choice for value content automatic save storage/app in laravel project

    JSON example output
    {
     "image-example" : {
       "name" : "image-example",
       "label" : "Image Example",
       "type" : "image",
       "data" : "image-example.png"
     }
    }
    
  3. URL

    Support url type value content

    JSON example output
    {
     "url-example" : {
       "name" : "url-example",
       "label" : "URL Example",
       "type" : "url",
       "data" : {
         "url" : "http://example.com",
         "text" : "Somthing Text"
       }
     }
    }
    
  4. Group

    Support value type content groups that accommodate other types of content

    JSON example output
    {
     "group-example" : {
       "name" : "group-example",
       "label" : "Group Example",
       "type" : "group",
       "data" : {
         "url-example" : {
           "name" : "url-example",
           "label" : "URL Example",
           "type" : "url",
           "data" : {
             "url" : "http://example.com",
             "text" : "Somthing Text"
           }
         },
         ...
       }
     }
    }
    
JSON example output all fetch
{
 "id" : 1,
 "slug" : "example-content",
 "label" : "Example Content",
 "value" : {
   "group-example" : {
     "name" : "group-example",
     "label" : "Group Example",
     "type" : "group",
     "data" : {
       "url-example" : {
         "name" : "url-example",
         "label" : "URL Example",
         "type" : "url",
         "data" : {
           "url" : "http://example.com",
           "text" : "Somthing Text"
         }
       },
       ...
     }
   }
   ...
 }
}

Demo

  1. Browse Content

    image

  2. Read Content

    image

  3. Create Content

    image

  4. Edit Content

    image

  5. Fill Content

    image