Default scriptlets

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Default scriptlets

Post by batmike » Fri Nov 16, 2007 8:46 am

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

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Fri Nov 16, 2007 9:34 am

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.
Cheers,
Logan
Image.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.

User avatar
batmike
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Sep 04, 2007 10:46 am
Location: Minneapolis, MN
Contact:

Post by batmike » Fri Nov 16, 2007 10:58 am

That works out great. I knew it was something easy enough. Thanks for the help.

Mike

User avatar
bobr2k
Commander (CMDR)
Commander (CMDR)
Posts: 183
Joined: Fri Oct 26, 2007 2:31 pm
Location: Illinois

Post by bobr2k » Tue Nov 20, 2007 10:10 am

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

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Tue Nov 20, 2007 10:36 am

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.
Cheers,
Logan
Image.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.

User avatar
bobr2k
Commander (CMDR)
Commander (CMDR)
Posts: 183
Joined: Fri Oct 26, 2007 2:31 pm
Location: Illinois

Post by bobr2k » Tue Nov 20, 2007 11:07 am

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?
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Tue Nov 20, 2007 11:20 am

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!
Cheers,
Logan
Image.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.

User avatar
bobr2k
Commander (CMDR)
Commander (CMDR)
Posts: 183
Joined: Fri Oct 26, 2007 2:31 pm
Location: Illinois

Post by bobr2k » Fri Dec 07, 2007 5:17 pm

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
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright

milstencil
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Sun Jan 11, 2009 10:48 am

Headers

Post by milstencil » Fri Mar 06, 2009 3:29 pm

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

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Default scriptlets

Post by jmestep » Sat Mar 07, 2009 8:00 am

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

Post Reply