Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation problems

Status
Not open for further replies.

mike101

Programmer
Jul 20, 2001
169
US
I am making a photo web gallery using their automated system. I've made my own styles and all, not a problem. The problem is that I need the exports to be .shtml extensions. The reason is cause it uses includes, but anyhow Photoshop only lets me choose from .htm and .html. Does anyone know how to make it so I can use the extension .shtml? Thanks.
 
Rename the files after generation? There are plenty of freeware file renaming utilities out there (webattack.com)
 
The only problem there is that the links generated are still going to the .html page, which no longer exists. Any ideas on how to fix that? Thanks for your help
 
How about using a text editor and doing a find/replace on all occurrences of '.html' in the web pages?

Or - as another global fix... Could you edit the server's configuration to treat 'html' files as 'shtml'?
 
"How about using a text editor and doing a find/replace on all occurrences of '.html' in the web pages?" The problem is that there is a page for every single picture, plus the indexes, and it would take a long time with the amount of pictures I am doing, and I will be updating constantly so it'll be hard to keep having to do that. Also, there is one of the includes that is a .html file, and I wouldn't want that changed. :(

"Or - as another global fix... Could you edit the server's configuration to treat 'html' files as 'shtml'?" Unfortunatly we are remotely hosted. I will try to talk to the website hosting company, but I doubt that they will do that for us since we are on one of the lower cost plans, not a dedicated server. Thanks jimoblak, any other ideas maybe?
 
Sorry - You've stumped me. I can only go back to the find/replace option. I use EditPad Classic (postcardware/free) and would do the following:

1) open all files at once that need tweaked.
2) do a find replace (html->shtml) on 'all open documents'
3) repair the file that must remain as html by doing a second find/replace on the specific file (include.shtml->include.html)
4) then do a 'save all'

EditPad Classic at editpadclassic.com is discontinued but EditPad Lite should do the same.

I just tried the Photoshop Automate>Web Photo Gallery and was distressed. This is soooo clumsy. I prefer xnview.com's free program that does the same thing but does not slow down the computer by opening each image onscreen. It may be worth a look. XNView does not create a page for each image, just the index pages. The thumbnail image link you click on displays the plain picture file (not cased in HTML).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top