Re: How are you handling html templates created in other apps?
Re: How are you handling html templates created in other apps?
- Subject: Re: How are you handling html templates created in other apps?
- From: Pascal Robert <email@hidden>
- Date: Fri, 16 Feb 2007 17:41:50 -0500
Le 07-02-15 à 19:24, Kevin Windham a écrit :
I have a template someone designed for me using Fireworks/
Dreamweaver. If I cut and paste the HTML into WOBuilder, a lot of
stuff is broken. There are rollover buttons using various
javascripts with preload stuff, and various other things that are
just messed up, and I'm not sure where to look for info on how to
handle this sort of thing. I could try and recreate the layout from
scratch using the graphics included in the template, but I think
that will not be a good way to work all the time.
Is there any primer out there on how to handle this issue?
Since I'm on this hell for too much time, those are my advices :
- If your "designer" don't use any CSS at all, fire him.
- Put all the images images as Web Server Resources.
- Find each image, replace them with WOImage and use the "filename"
and "framework" bindings
- For JavaScript, replace the crap that Dreamweaver and other tools
generate with custom WO components that do the same job.
- If your app is localized, tell the designer to put the localized
images in separate folders (French, English, etc.) and that he/she
should use the same name for images, it's far easier to work with
localized stuff this way.
Example : you have a localized image named "login.png", the designer
should create a login.png file in the French folder, and a login.png
file in English. Having files with name like "login_en.png" and
"login_fr.png" is a real PITA
- If your CSS has localized images in them (like if one of the style
has a background image in it with some text), you have to convert
your CSS as a WOComponent
- If the designer need to change the CSS or the layout, it's always
better to start from the WO generated page, not the original static page
- If the designer have done some changes to the CSS or the layout,
tell him to comment what had changed, when they modifies their CSS
without saying what has changes, you need to do a diff to find what's
new, an another big PITA _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden