Page 1 of 1

Default scriptlets

Posted: Fri Nov 16, 2007 8:46 am
by batmike
I might be missing something simple here, but how to I go about making a new scriptlet the default for the theme?

Or are themes and scriptlets not related?

I'm just not finding a place to change the header scriptlet across all pages and not just individually.

Thanks!
Mike

Posted: Fri Nov 16, 2007 9:34 am
by Logan Rhodehamel
To change the headers, from your merchant admin go to Website -> Content and Layout. Now click on the "Type" column header to order the scriptlets by type. Now scroll down a bit until you see "Header" in the type column. In a new installation, there are two different header scriptlets - one for shopping pages and another for checkout pages.

If you edit these two scriptlets, you can alter the header for your entire site.

They are related to theme only in the sense that themes apply the colors and styles to the code you put into the scriptlet.

Posted: Fri Nov 16, 2007 10:58 am
by batmike
That works out great. I knew it was something easy enough. Thanks for the help.

Mike

Posted: Tue Nov 20, 2007 10:10 am
by bobr2k
Themes and Display Pages shows " You may also change the admin theme if you wish to customize the look and feel of the merchant administration. I changed: pages theme="XXXXX" but that doesn't do it. What am I missing? Thanks for any ideas.

Posted: Tue Nov 20, 2007 10:36 am
by Logan Rhodehamel
bobr2k wrote:Themes and Display Pages shows " You may also change the admin theme if you wish to customize the look and feel of the merchant administration. I changed: pages theme="XXXXX" but that doesn't do it. What am I missing? Thanks for any ideas.
Theme is dynamic, taken from the settings in the AbleCommerce merchant admin. If you want the web.config setting to be used, you have to indicate this through the merchant admin.

Also, we only included a single admin theme since our main focus was on the store themes.

Posted: Tue Nov 20, 2007 11:07 am
by bobr2k
Logan Rhodehamel wrote: Theme is dynamic, taken from the settings in the AbleCommerce merchant admin. If you want the web.config setting to be used, you have to indicate this through the merchant admin.
Is this what would need to be changed? admin/web.config xml file ...
pages masterPageFile="~/Admin/Admin.Master" theme="AbleCommerceAdmin" /

I'm afraid I'm doing a lot of guessing here. Is this a large and DANGEROUS change?

Posted: Tue Nov 20, 2007 11:20 am
by Logan Rhodehamel
Probably you are making it harder than it needs to be. The setting in the web.config is only necessary if you want to use visual studio and you require design time WYSIWYG with theme support. Even then, for our admin files, that's not going to work all the time.

If you want to create a custom theme for admin, you can do it all from the merchant admin with these steps:

1) Go to your merchant admin, and choose Website -> Themes File Manager from the menu.

2) In the lower left column, look at the copy theme control. Select "AbleCommerceAdmin" as the source. For copy name, enter anything you want but it must end in Admin, for example "CustomAdmin". Enter the name and click OK.

3) Choose Website -> Themes and Display Pages from the menu.

4) In Admin theme, check the drop down list for your theme. In my example, I now have "Custom" as a choice.

5) Now you can go back to the themes file manager, and work with the files in your custom admin theme folder. If you want to work on the files directly, they will be in ~/App_Themes/CustomAdmin. Adjust the name of the folder to whatever you picked in step 2.

Let me know if this gets you in the right direction.

EDIT: It's not a dangerous change, if you go follow the steps I have given above. No harm in modifying CSS and skin files!

Posted: Fri Dec 07, 2007 5:17 pm
by bobr2k
Logan Rhodehamel wrote:Now you can go back to the themes file manager, and work with the files in your custom admin theme folder
Logan, I've been working with the files. I have a question about the footer on the ADMIN page. There isn't a conlib associated with this that I can find. What is the best way to change this

Headers

Posted: Fri Mar 06, 2009 3:29 pm
by milstencil
Logan_AbleCommerce wrote:... In a new installation, there are two different header scriptlets - one for shopping pages and another for checkout pages...
We are looking to Create a new header, we can use only on our Featured items page (which is also our default page). Can you point me in the right direction for creating a 3rd Header that will only be used on this page.

Thanks for any help,

Rick

Re: Default scriptlets

Posted: Sat Mar 07, 2009 8:00 am
by jmestep
See my reply to your other post.