How to point application to custom scriptlets

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
tomascarpio5
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Mon Sep 03, 2007 7:16 pm
Contact:

How to point application to custom scriptlets

Post by tomascarpio5 » Sat Oct 13, 2007 10:57 pm

Hi,
The application currently uses the App_Data\Scriptlets\Default folder for scriplets. How do we point the application to use a different scriptlet directory i.e.: custom scriptlets?

Thanks

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Post by Shopping Cart Admin » Sun Oct 14, 2007 4:16 pm

Hello,

You don't have too, the application looks in the custom directory first. If you edit any of the scriptlets using the editor system it automatically saves the edited version in the custom directory.

If you're editing using outside of our system, be sure to put your edited scriptlets into the custom directory.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

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

Post by Logan Rhodehamel » Mon Oct 15, 2007 9:16 am

To expand on what Mike said, all of your custom scriptlets should be in one of these folders:

~/App_Data/Scriptlets/Custom/Layout
~/App_Data/Scriptlets/Custom/Sidebar
~/App_Data/Scriptlets/Custom/Content
~/App_Data/Scriptlets/Custom/Header
~/App_Data/Scriptlets/Custom/Footer

When rendering the page, if for example you have the "About Us" scriptlet selected, we always favor a scriptlet of that name in the custom folder before our default. So:

Display "About Us"
Does ~/App_Data/Scriptlets/Custom/Content/About Us.htm exist?
If Yes, Display it.
If No, Display ~/App_Data/Scriptlets/Default/Content/About Us.htm
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.

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Sat Oct 20, 2007 5:46 am

I dont see the behavior Logan is describing but wish I did.

I am running Beta 2 on my dev box.

I go into Website->Content and change scriptlets as needed.

In the site view, if I then edit the page then edit the offending scriptlet, it shows the default not my version. My changes dont take effect for some reason.

I am really new to this, like the system, but am puzzled. I am most likely doing something stupid.

Can someone explain what I am doing wrong? Or simply explain the sequence of events for scriptlet changes in Website->Content to automatically change the content of the site.

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Post by Shopping Cart Admin » Sat Oct 20, 2007 9:37 am

Hello,

Sounds like you haven't applied the patch found on the known issues page:

ISSUE:

Manage Content and Layout (Scriptlets): New and copied scriptlets don't appear in list

SYMPTOM:

From Website > Content and Layout page, when you ADD or COPY a scriptlet, it will not appear in the display list. It will exist in the applicable folder as a new file, but Ablecommerce will not find it.

http://www.ablecommerce.com/crmTree.aspx?&TopicId=429

Sorry I guess I should of been more specific in the news about what was on the new page.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

Post Reply