バージョン選択

フォーラム

メニュー

オンライン状況

48 人のユーザが現在オンラインです。 (38 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 48
もっと...

サイト内検索

質問 > フロント機能 > 『新着情報』ブロックの複製

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
dee
投稿日時: 2018/5/28 13:35
対応状況: −−−
新米
登録日: 2018/5/14
居住地:
投稿: 7
Re: 『新着情報』ブロックの複製
お手数おかけ致します。
下記が記載になります。よろしくお願い致します。


・nav.yml.dist

- id: news
name: 新着情報管理
url : admin_content_news

↓複製し、名称を2つ目のものに変更

- id: 2つ目名称
name: 2つ目名称管理
url : admin_content_2つ目名称

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

・EccubeServiseProvider.php

$app['eccube.repository.news'] = $app->share(function () use ($app) {
return $app['orm.em']->getRepository('Eccube\Entity\News');
});

↓複製し、名称を2つ目のものに変更

$app['eccube.repository.2つ目名称'] = $app->share(function () use ($app) {
return $app['orm.em']->getRepository('Eccube\Entity\2つ目名称');
});

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

・FrontControllerProvider.php

$c->match('/block/news', '\Eccube\Controller\Block\NewsController::index')->bind('block_news');

↓複製し、名称を2つ目のものに変更

$c->match('/block/2つ目名称', '\Eccube\Controller\Block\2つ目名称Controller::index')->bind('block_2つ目名称');

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

・AdminControllerProvider.php

$c->match('/content/news', '\Eccube\Controller\Admin\Content\NewsController::index')->bind('admin_content_news');
$c->match('/content/news/new', '\Eccube\Controller\Admin\Content\NewsController::edit')->bind('admin_content_news_new');
$c->match('/content/news/{id}/edit', '\Eccube\Controller\Admin\Content\NewsController::edit')->assert('id', '\d+')->bind('admin_content_news_edit');
$c->delete('/content/news/{id}/delete', '\Eccube\Controller\Admin\Content\NewsController::delete')->assert('id', '\d+')->bind('admin_content_news_delete');
$c->put('/content/news/{id}/up', '\Eccube\Controller\Admin\Content\NewsController::up')->assert('id', '\d+')->bind('admin_content_news_up');
$c->put('/content/news/{id}/down', '\Eccube\Controller\Admin\Content\NewsController::down')->assert('id', '\d+')->bind('admin_content_news_down');

↓複製し、名称を2つ目のものに変更

$c->match('/content/2つ目名称', '\Eccube\Controller\Admin\Content\2つ目名称Controller::index')->bind('admin_content_2つ目名称');
$c->match('/content/2つ目名称/new', '\Eccube\Controller\Admin\Content\2つ目名称Controller::edit')->bind('admin_content_2つ目名称_new');
$c->match('/content/2つ目名称/{id}/edit', '\Eccube\Controller\Admin\Content\2つ目名称Controller::edit')->assert('id', '\d+')->bind('admin_content_2つ目名称_edit');
$c->delete('/content/2つ目名称/{id}/delete', '\Eccube\Controller\Admin\Content\2つ目名称Controller::delete')->assert('id', '\d+')->bind('admin_content_2つ目名称_delete');
$c->put('/content/2つ目名称/{id}/up', '\Eccube\Controller\Admin\Content\2つ目名称Controller::up')->assert('id', '\d+')->bind('admin_content_2つ目名称_up');
$c->put('/content/2つ目名称/{id}/down', '\Eccube\Controller\Admin\Content\2つ目名称Controller::down')->assert('id', '\d+')->bind('admin_content_2つ目名称_down');
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   『新着情報』ブロックの複製 dee 2018/5/25 13:03
     Re: 『新着情報』ブロックの複製 umebius 2018/5/25 13:16
       Re: 『新着情報』ブロックの複製 dee 2018/5/25 14:21
         Re: 『新着情報』ブロックの複製 umebius 2018/5/25 14:24
           Re: 『新着情報』ブロックの複製 dee 2018/5/25 16:44
             Re: 『新着情報』ブロックの複製 umebius 2018/5/26 16:15
               Re: 『新着情報』ブロックの複製 dee 2018/5/28 13:10
                 Re: 『新着情報』ブロックの複製 umebius 2018/5/28 13:12
                 » Re: 『新着情報』ブロックの複製 dee 2018/5/28 13:35

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,140名です
総投稿数は110,043件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1650
8
red
1570
9
mcontact
1298
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.