se7enxweb/sevenx_themes_admin_classic
Composer 安装命令:
composer require se7enxweb/sevenx_themes_admin_classic
包简介
sevenx_themes_admin_classic is a compatibility-first, operator-friendly eZ Publish Legacy / Exponential Platform Legacy extension that introduces a controlled Admin Design switch workflow, session-aware visual behavior toggling, and classic admin ergonomics for teams that maintain long-lived editori
关键字:
README 文档
README
sevenx_themes_admin_classic provides session-driven switching between admin3-first template resolution and admin3+admin_classic fallback resolution for legacy admin workflows requiring classic SSR template behavior.
Table of Contents
- Project Notice
- Project Status
- What Is sevenx_themes_admin_classic?
- Requirements
- Installation
- Configuration
- kracker.org Deployment Note (Critical)
- Troubleshooting
- Issue Tracker
- License
Project Notice
This project is an independent extension maintained by 7x for Exponential Platform Legacy and eZ Publish Legacy deployments.
Project Status
sevenx_themes_admin_classic is actively maintained and intended for production use where admin3 must remain the primary design while selective classic fallback behavior is required.
What Is sevenx_themes_admin_classic?
The extension adds:
- A toolbar switch button in admin UI
- A module endpoint to toggle design mode in session
- A kernel override to apply session-driven DesignSettings values at runtime
Current runtime behavior:
- Classic enabled: AdditionalSiteDesignList =
admin3, admin_classic, admin - Classic disabled: AdditionalSiteDesignList =
admin3, admin
SiteDesign remains admin3.
Requirements
- Exponential Platform Legacy / eZ Publish Legacy
- Kernel overrides enabled in
config.php - Extension activated in
settings/override/site.ini.append.php
Installation
- Activate extension:
[ExtensionSettings]
ActiveExtensions[]=sevenx_themes_admin_classic
- Ensure kernel override support is enabled:
define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', true );
- Regenerate autoloads:
php ./bin/php/ezpgenerateautoloads.php --kernel-override
- Customize admin siteaccess content view preferences (required for subitems controls):
Edit your admin siteaccess file, for example:
settings/siteaccess/korg_edit/site.ini.append.php
Set:
[ContentSettings] CachedViewPreferences[full]=admin_navigation_content=1;admin_navigation_subitems=1;admin_subitems_limit=200;admin_children_viewmode=list;admin_list_limit=1 TranslationList=
- Register the toolbar tool in your active admin siteaccess (required for button visibility):
Edit for your active admin siteaccess, for example:
settings/siteaccess/korg_edit/toolbar.ini.append.php
Ensure these entries exist:
[Tool] AvailableToolArray[]=admin_switch_design [Toolbar_admin_developer] Tool[]=admin_clear_cache Tool[]=admin_switch_design Tool[]=admin_quick_settings
- Ensure role policy allows module access:
For standard admin role setups using "all modules / all functions / no limitations", no extra policy is needed.
If you use explicit module policies, grant:
Module: switchadmindesign Function: switch
Optional (not recommended as default): omit policy checks entirely via extension site.ini.
extension/sevenx_themes_admin_classic/settings/site.ini.append.php
[RoleSettings]
PolicyOmitList[]=switchadmindesign
- Clear caches:
php ./bin/php/ezcache.php --clear-all
Configuration
Configure extension settings file:
extension/sevenx_themes_admin_classic/settings/sevenxthemesadminclassic.ini.append.php
Important:
- Keep the extension file value as a generic example/default.
- Put deployment-specific values only in
settings/override/sevenxthemesadminclassic.ini.append.php.
Required setting:
[SevenXThemesAdminClassicSettings] SharedAdminSiteaccessName=<your_admin_siteaccess_name> SwitchAdminDesignSessionVariableName=SevenXThemesAdminClassicDesignEnabled
kracker.org Deployment Note (Critical)
For this deployment, the required value is:
SharedAdminSiteaccessName=korg_edit
Set this value in:
settings/override/sevenxthemesadminclassic.ini.append.php
If this value does not match the real admin siteaccess name, switch button text may change while template resolution behavior does not.
Troubleshooting
Symptom: switch button toggles text but templates loaded do not change
Checklist:
- Confirm
SharedAdminSiteaccessNameexactly matches active admin siteaccess. - Confirm extension is active in
settings/override/site.ini.append.php. - Confirm kernel override autoloads were regenerated.
- Confirm caches were cleared.
- Confirm you are testing within the configured admin siteaccess.
Symptom: switch endpoints work but runtime design order seems stale
Run:
php ./bin/php/ezcache.php --clear-all --allow-root-user
Issue Tracker
Submit issues and improvements at:
https://github.com/se7enxweb/sevenx_themes_admin_classic/issues
License
GNU General Public License v2.0 (or any later version).
Copyright (C) 1998 - 2026 7x.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-21