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
How to point application to custom scriptlets
-
- Ensign (ENS)
- Posts: 17
- Joined: Mon Sep 03, 2007 7:16 pm
- Contact:
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
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.
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.
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
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
~/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
.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.
-
- Lieutenant (LT)
- Posts: 79
- Joined: Thu Oct 04, 2007 9:23 am
- Location: West Hartford, CT
- Contact:
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.
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.
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
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.
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.