2014-09-02, 19:48:06
DONE! =)
For everyone interested... this is what you have to do, if you want to add "components" to pages instead of theme:
1. install this PlugIn
to add a components link to pages:
http://www.cyberiada.org/cnb/log/add-lin...le-plugin/
2. edit admin/components.php
search for <? php include('template/sidebar-theme.php'); ?>
and replace it with <? php include('template/sidebar-pages.php'); ?>
3. edit admin/templates/css.php
search for #components .wrapper .nav li a.theme,
and replace it with #components .wrapper .nav li a.pages,
4. update cache file stylesheet.txt
open admin/templates/style.php and comment the lines:
then load the components page in backend. Now "pages" shoud be highlighted instead of "theme". A new stylesheet.txt is written.
If that is working, uncomment the lines above.
5. plugins/user-managment.php
only necessary if you use the plug-in "user-management" and want to deny some users access to the theme section
search for
and replace THEME with PAGES
For everyone interested... this is what you have to do, if you want to add "components" to pages instead of theme:
1. install this PlugIn
to add a components link to pages:
http://www.cyberiada.org/cnb/log/add-lin...le-plugin/
2. edit admin/components.php
search for <? php include('template/sidebar-theme.php'); ?>
and replace it with <? php include('template/sidebar-pages.php'); ?>
3. edit admin/templates/css.php
search for #components .wrapper .nav li a.theme,
and replace it with #components .wrapper .nav li a.pages,
4. update cache file stylesheet.txt
open admin/templates/style.php and comment the lines:
PHP Code:
if (file_exists($cachefile) && time() - 600 < filemtime($cachefile) && $cacheme) {
echo file_get_contents($cachefile);
echo "/* Cached copy, generated ".date('H:i', filemtime($cachefile))." '".$cachefile."' */\n";
exit;
}
If that is working, uncomment the lines above.
5. plugins/user-managment.php
only necessary if you use the plug-in "user-management" and want to deny some users access to the theme section
search for
PHP Code:
// components.php permissions
if ($current_file == "components.php") {
if ($this->mmUserFile ( 'THEME' ) == "no") {
die ( 'You Do Not Have Permissions To Access This Page' );
} else {
}
}