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

Creating static page -- ONLY show in Admin Area

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-13-2004, 09:03 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default Creating static page -- ONLY show in Admin Area

I want to create a new static page that will ONLY show in the admin area, not the customer area.

Using the "Static Pages" feature seems to only post pages for the customer area for everyone to see. How can I accomplish this?

Thanks.
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #2  
Old 05-18-2004, 04:49 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You would need to mod the pages table and add an extra field with a User type letter for that particular page, IE, C for customer, P or A for admin/provider and maybe blank for all to see. A condition would need to be setup then that would read these values in the {section} loop of the pages.tpl.

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 05-18-2004, 04:56 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Thanks for the tip Boomer. I finished this a few days ago, all I did was make a copy of a file such as skin1/.../admin_menu.tpl and add my links to it, and then add a reference to it in single/home.tpl. It works out great since I only want it to show up in the admin area.

Thanks again.
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
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 11:35 PM.

   

 
X-Cart forums © 2001-2020