2017 © Pedro Peláez
 

asgard-module dynamicfield

image

stonelab/dynamicfield

  • Tuesday, April 18, 2017
  • by simonfunk
  • Repository
  • 3 Watchers
  • 5 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Dynamicfield

This module is working, but in a very alpha version. Using is at your own risk! You are welcome to work on it, (*1)

Introduction

Please add following to asgard.page.config.php:, (*2)

<?php

return [
    /*
    |--------------------------------------------------------------------------
    | Partials to include on page views
    |--------------------------------------------------------------------------
    | List the partials you wish to include on the different type page views
    | The content of those fields well be caught by the PageWasCreated and PageWasEdited events
    */
    'partials' => [
        'translatable' => [
            'create' => [
                'dynamicfield::admin.dynamicfield.entity-type.page-fields'
            ],
            'edit' => [
                'dynamicfield::admin.dynamicfield.entity-type.page-fields'
            ],
        ],
        'normal' => [
            'create' => ['dynamicfield::admin.dynamicfield.entity-type.page-script'],
            'edit' => ['dynamicfield::admin.dynamicfield.entity-type.page-script'],
        ],
    ],
    /*
    |--------------------------------------------------------------------------
    | Dynamic relations
    |--------------------------------------------------------------------------
    | Add relations that will be dynamically added to the Page entity
    */
    'relations' => [
//        'extension' => function ($self) {
//            return $self->belongsTo(PageExtension::class, 'id', 'page_id')->first();
//        }
    ],
];

Usage

Creat a new Dynamicfield and select on the right side on which page template you wanna use it., (*3)

After you've created your first Dynamicfield, you can go to the Page create/edit view, select your desired Template and then, the Dynamicfield should appear automatically., (*4)

If nothing happens, make sure the dynamic-fields.js is loaded. Clear Cache and run the "module:publish dynamicfield" command, (*5)

After you have created your Dynamicfield, set up your page and filled your data, your able to get the datas on your page template through the:, (*6)

$dynamicfields

It's an array and inside are all fields, as well the repeater fields. the name of the indexes are the same which you have given for the field name., (*7)

The Versions

18/04 2017

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

18/04 2017

0.8.7

0.8.7.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

18/04 2017

dev-develop/upgrade-v3-vuej2

dev-develop/upgrade-v3-vuej2

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

29/02 2016

0.8.6

0.8.6.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

20/01 2016

0.8.5

0.8.5.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

20/01 2016

0.8.4

0.8.4.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

07/01 2016

0.8.3

0.8.3.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

23/12 2015

0.8.2

0.8.2.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

07/12 2015

0.8.1

0.8.1.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk

07/12 2015

0.8.0

0.8.0.0

  Sources   Download

The Requires

 

The Development Requires

by Simon Funk