1. Go to this page and download the library: Download stonelab/dynamicfield library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stonelab / dynamicfield example snippets
return [
/*
|--------------------------------------------------------------------------
| Partials to ude 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();
// }
],
];
$dynamicfields
asgard.page.config.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.