arter/amos-core

There is no license information available for the latest version (1.22.0) of this package.

Amos Core

Maintainers

👁 art-er

Package info

repo.aster.it/elitedivision/amos-core

Homepage

Type:component

pkg:composer/arter/amos-core

Statistics

Installs: 601

Dependents: 38

Suggesters: 0

1.22.0 2024-04-10 10:35 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License a73c7dc7d52ff6e2825152e4c95d4a0c50914422

coreamos

This package is auto-updated.

Last update: 2026-06-07 13:39:06 UTC


README

Amos core

using the loader (SpinnerWaitAsset)

in the view insert che code below

 \arter\amos\layout\assets\SpinnerWaitAsset::register($this);
 <div class="loading" id="loader" hidden></div>

use the two javascript functions below where you need it

 $('.loading').show();
 $('.loading').hide();

Platform params

hideSettings

Hide the setting gear in the navbar, If you want to hide the link for all

 'hideSettings' => true,

if you want to hide the link for some users

 'hideSettings' => [
 'roles' => ['ROLE1', 'ROLE2']
 ],

if you want to export only the element visualized in the grid

 'disableExportAll' => true

Widget share social

Add in backend/config/components-others

 'socialShare' => [
 'class' => \arter\amos\core\components\ConfiguratorSocialShare::class,
 ],
Parameters
  • mode - string, default = SocialShareWidget::NORMAL, the otther mode is SocialShareWidget::DROPDOWN

example of usage:


 <?= \arter\amos\core\forms\editors\socialShareWidget\SocialShareWidget::widget([
 'configuratorId' => 'socialShare',
 'model' => $model,
 'url' => \yii\helpers\Url::to(\Yii::$app->params['platform']['backendUrl'].'/news/news/view?id='.$model->id, true),
 'title' => $model->title,
 'description' => $model->descrizione_breve,
// 'imageUrl' => \yii\helpers\Url::to('absolute/route/to/image.png', true),

 ]); ?>

Custom the Frontend View Url

  • Implement the interface CustomUrlModelInterface
  • Add in common/config/params
     'urlFrontend' => [
     'NewsModel' => '/news/news/{Id}/{Slug}',
     ],
    

Platform Parameters

  • enablePageCache - boolean; If the params is true enable the page cache