PDA

View Full Version : different style radio buttons


migrate7
09-Oct-2006, 08:17 AM
Morning!
Is it possible to create & implement more than one format for radio buttons within the same Estore (v7)?

I am using the file 'Act_VariantRadioButton.html', but there doen't seem to be an option to use, for example, 'Act_VariantRadioButtonWithImage.html'.

I need to display colour charts for my products, but although I thought this would be the easiest method it has so far proved impossible.

I have also tried javascript for replacing a second 'product image', elsewhere in the store, but also need this controlled by selecting a radio button.

Will I need to write bespoke code ("if" statements) to create colour charts?
If so, any useful tips?!

Thanks.

NormanRouxel
09-Oct-2006, 08:45 AM
In the Choice's HTML for Name field you can add some HTML to display an image or set the text to a particular colour.


E.g. For a Choice Red

<font color="red">Red</font>

or

Red<img src="redswatch.jpg" width="40" height="20">

(in this case you'll need to upload that image via Advanced / Additional Files.

I've also done a patch that allows you to colour each item in a drop down list. It's on www.drillpine.biz/actinicstuff

migrate7
09-Oct-2006, 11:19 AM
Ah ha! That simple - works perfectly, thanks Norman.

Can I store the images in a seperate folder, as they don't seem to load in the preview if it says img src="colour-images/redswatch ... ?

Nadeem
11-Oct-2006, 09:51 AM
Hi Dawn

If you want the images to appear in preview for Actinic, you would need to copy them to the following location: "C:\Program Files\Actinic v7\Sites\Site1\PreviewHTML". If you copy them to that location, you should see them in preview within Actinic.

Kind Regards

NormanRouxel
11-Oct-2006, 10:02 AM
These images need to be in Site1 and entered into the HTML for name filed without a path.

I don't think that Actinic can cope with your hard-coded colour-images/redswatch.jpg.

You may also need a duplicate copy in PreviewHTML as mentioned above.