|
Re: ブロックの追加について データベースはphpMyAdminを使用し作業しました。
方法は、install/insert_data.sql内の INSERT INTO dtb_bloc (device_type_id, bloc_id, bloc_name, tpl_path, filename, create_date, update_date, php_path, deletable_flg) VALUES (10, 9, '【ヘッダー】ログイン', 'login_header.tpl', 'login_header', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'frontparts/bloc/login_header.php', 0); を INSERT INTO dtb_bloc (device_type_id, bloc_id, bloc_name, tpl_path, filename, create_date, update_date, php_path, deletable_flg) VALUES (10, 10, 'おすすめ商品(オリジナル)', 'user_recommend.tpl', 'user_recommend', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'frontparts/bloc/user_recommend.php', 0);
INSERT INTO dtb_blocposition (device_type_id, page_id, target_id, bloc_id, bloc_row, anywhere) VALUES (10, 28, 1, 3, 1, 0); を INSERT INTO dtb_blocposition (device_type_id, page_id, target_id, bloc_id, bloc_row, anywhere) VALUES (10, 29, 1, 10, 1, 0);
にそれぞれ変更し、phpMyAdminにて、dtb_blocとdtb_blocpositionに追加しました。
ただ… dtb_blocpositionのbloc_idがよくわからず10としておきました。
|