My previous post was complaining that memory was taxed to the max when the page you are editing in FrontPage has lots of conditional formatting. And by 'lots' I mean, about 40 or so (doesn't sound like much, does it?).
Anyway, I have abandoned the use of conditional formatting when I have to display an image, as exampled in my previous post. (Can't find it? Search for 'Nuclear' on my blog to get to it.)
This is how to avoid it:
For each status, have an image. One image for each status, each image the same size (otherwise the layout of your page might jump around a bit, I dunno, maybe that is what you want).
For me, I am using the issues list, and if we go by defaults (who does THAT anyway?), we see that there are 'Active', 'Resolved', and 'Closed' statuses for issues, and I have one image for each status:
- CFActivebig.gif
- CFResolvedbig.gif
- CFClosedbig.gif
- Open your view in FrontPage.
- Convert the view to XSLT Data View.
- Place the 'status' field where you want to display the image.
- Right-click one of the status names and choose 'Format Item As...', then choose 'Picture'.
- You will get a broken image, that's ok.
- Type 'ddd' next to the image (so that you can find the code that renders it).
- Go into code view.
- Type [ctrl]+F and search for 'ddd'.
- Change src="{@Status}" to src="CF{@Status}big.gif".
- Delete 'ddd' appearing just after the img tag.
- Upload your images to the list directory (or put them into the images directory, and map like this - Change src="{@Status}" to src="../../images/CF{@Status}big.gif".
Niciun comentariu:
Trimiteți un comentariu