Default scriptlets
- batmike
- Commander (CMDR)
- Posts: 123
- Joined: Tue Sep 04, 2007 10:46 am
- Location: Minneapolis, MN
- Contact:
Default scriptlets
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
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
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
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.
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.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
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.
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
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.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.
Also, we only included a single admin theme since our main focus was on the store themes.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Is this what would need to be changed? admin/web.config xml file ...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.
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?
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
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!
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!
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
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 thisLogan Rhodehamel wrote:Now you can go back to the themes file manager, and work with the files in your custom admin theme folder
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
-
- Ensign (ENS)
- Posts: 15
- Joined: Sun Jan 11, 2009 10:48 am
Headers
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.Logan_AbleCommerce wrote:... In a new installation, there are two different header scriptlets - one for shopping pages and another for checkout pages...
Thanks for any help,
Rick
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Default scriptlets
See my reply to your other post.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx