Ok so how is everyone modifying scriptlet code like the Show Product 1 content?
I tried copying it to VWD, working with it and pasting the result back into the AC7 html editor. Formatting blows up and the code won't run.
Suggestions?
copy/pasting scriptlet code
copy/pasting scriptlet code
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Don't know what VWD is, but I'm doing it on the file system. Here's my process:
1. Choose the scriptlet you want to modify
2. Duplicate it
3. Put the duplicate into the ~/Custom/Content folder
4. Rename the duplicate to something that makes sense
5. Change the reference on the .aspx file to point to the new content scriptlet (either on the file system or using the editing widgets at the bottom of the screen)
6. Edit new scriptlet as needed in an external text editor
You can also use the widgets at the bottom of the page. Click the edit icon next to the scriptlet you want to edit, copy the code into a text editor, edit, paste back into place.
1. Choose the scriptlet you want to modify
2. Duplicate it
3. Put the duplicate into the ~/Custom/Content folder
4. Rename the duplicate to something that makes sense
5. Change the reference on the .aspx file to point to the new content scriptlet (either on the file system or using the editing widgets at the bottom of the screen)
6. Edit new scriptlet as needed in an external text editor
You can also use the widgets at the bottom of the page. Click the edit icon next to the scriptlet you want to edit, copy the code into a text editor, edit, paste back into place.
VWD is Microsoft Visual Web Developer 2005.
Maybe I'm confused then. Scriptlets are user controls - those I can do in VWD and that works fine.
The HTML code that defines the page itself is where I have trouble. It's not a file system file, so I can't modify it directly by opening it in VWD. I have to copy it, paste it into VWD, modify it and then copy/paste it back into AC7.
For example...
Go into Admin mode.
Choose the Content and Layout option on the Website menu.
Find the page Show Product 1.
Edit it.
It's got alot of embedded clientside code.
The AC7 editor isn't suitable for modifying the code - it's unformatted and difficult to read or follow. So if I want to make my own Show Product 1 page, I presume I would copy the original to my own and modify the HTML.
So my problem is copying that HTML into another edit and pasting it back into AC7. Formatting gets all messed up.
So is anybody actually modifying existing pages like that?
Maybe I'm confused then. Scriptlets are user controls - those I can do in VWD and that works fine.
The HTML code that defines the page itself is where I have trouble. It's not a file system file, so I can't modify it directly by opening it in VWD. I have to copy it, paste it into VWD, modify it and then copy/paste it back into AC7.
For example...
Go into Admin mode.
Choose the Content and Layout option on the Website menu.
Find the page Show Product 1.
Edit it.
It's got alot of embedded clientside code.
The AC7 editor isn't suitable for modifying the code - it's unformatted and difficult to read or follow. So if I want to make my own Show Product 1 page, I presume I would copy the original to my own and modify the HTML.
So my problem is copying that HTML into another edit and pasting it back into AC7. Formatting gets all messed up.
So is anybody actually modifying existing pages like that?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Most of the HTML for "Show Product 1" is on the file system:The HTML code that defines the page itself is where I have trouble. It's not a file system file, so I can't modify it directly by opening it in VWD. I have to copy it, paste it into VWD, modify it and then copy/paste it back into AC7.
/App_Data/Scriptlets/Default/Content/Show Product 1.htm
I duplicated this file and put it here:
/App_Data/Scriptlets/Custom/Content/product_merch.htm
Then I changed my product page to use product_merch as its content scriptlet.
I can edit the HTML in this file using any text editor I want. My text editor has an integrated FTP client, so it's a pretty seamless process (I'm doing development on a remote server, not local).
If you're doing a lot of customization, I find this is a more efficient solution than copying and pasting into the AC7 editor's text boxes.
Show Product 1 also uses a lot of user controls, so you sometimes have to go find the HTML chunk you need in one of those and follow the same duplicate and edit procedure.
Hope this helps.