Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Editing skin.css is editing my admin... Why???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-26-2007, 09:38 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Editing skin.css is editing my admin... Why???

I am totally confused now. I thought the skin1.css file was for the customer side & the skin1_admin.css file was for the admin side of the site.

When I edited the skin1.css file, it did change the customer side of things, however, it also changed my admin side. Is there something I am missing here or is there a problem with our install?

Thanks a bunch,
Jennifer
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #2  
Old 06-26-2007, 09:46 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Editing skin.css is editing my admin... Why???

Are you using a stock install? What did you change that affected the admin side?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-26-2007, 11:51 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Editing skin.css is editing my admin... Why???

I used a stock install. I am getting very confused as to what I am doing some days mainly b/c I am learning where everything is and getting pulled away every time I get into doing this.

In thinking back and looking at prior posts I have made (see link below), I changed the menu.tpl file and I changed some of the dingbats.

http://forum.x-cart.com/showthread.php?t=31476

Does the admin side only have limited files that are admin only & the rest are global?

What we want is the admin side to have the blue skin look that comes with X-cart and a totally out of the box design on the customer side. What do I have to do to make these 2 sides have totally different looks???

--going balder every day--

Thanks!
Jennifer
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #4  
Old 06-26-2007, 11:55 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Editing skin.css is editing my admin... Why???

Ok, you are confusing skin1.css and templates. Some templates are shared between admin and customer (dialog.tpl, menu.tpl are two examples). Skin1.css is not shared, each side has its own stylesheet. So if you make a change to skin1.css, it will only affect the customer side, but if you change menu.tpl, it will affect both.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-27-2007, 06:46 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Editing skin.css is editing my admin... Why???

Quote:
but if you change menu.tpl, it will affect both.

That part is frustrating. What does it take to make an admin side menu.tpl? I really want them to be seperate designs so our employees know which side of the cart they are on.

If I could figure out this template system, I would be golden with this cart!

Thanks Balinor for all your help. I don't always post but have read many things you have posted around here & you are very helpful.

-Jen
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #6  
Old 06-27-2007, 07:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Editing skin.css is editing my admin... Why???

Well, the easiest way is to just use an {if} statement in the menu template itself. Something like this:

{if $usertype eq "C"}

show menu code for customer side

{else}

show menu code for admin side

{/if}

That way, you don't have to go through all the admin templates updating the code to point to a new menu.tpl. You can do the same thing with any of the shared templates.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 06-27-2007, 09:11 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Editing skin.css is editing my admin... Why???

Thank you so much Balinor!

IT WORKS! IT WORKS! IT WORKS!

Now I have a happy product lister!


__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:49 AM.

   

 
X-Cart forums © 2001-2020