View Single Post
  #3  
Old 05-29-2015, 06:03 AM
 
cvaughan02 cvaughan02 is offline
 

Member
  
Join Date: Mar 2014
Location: st. louis, mo
Posts: 22
 

Default Re: custom css in admin area?

Quote:
Originally Posted by tony_sologubov
Here is the general article about adding CSS files:
http://kb.x-cart.com/display/XDD/Adding+CSS+and+JS+files

You can add a condition for admin area in the getThemeFiles() method:
PHP Code:
if (!is_null($adminZone)) 

that implies that without that, all the files would get added on the admin, right? my issue is that i'm not seeing my css files being added o the admin side, so i'm wondering if that method actually gets called in the admin panel.

this morning I found this in AdminPanel.php

PHP Code:
/**
     * Register CSS files
     *
     * @return array
     */
    
public function getCSSFiles()
    {
        
$list parent::getCSSFiles();

        
$list[] = 'css/admin_panel.css';

        return 
$list;
    } 

so I'm thinking maybe I can extend that to add my admin panel css.

but if you're saying that the getthemfiles() method of aview gets called in the admin area, then I dont need to do that. can you clarify?
__________________
SEEK HAPPINESS. EVERYTHING ELSE IS DETAILS.
Reply With Quote