I know this is a long shot but is it possible to use an image for a couple of the top level sections shown in the Collapso menu? The top item in the menu is Shop by Brand and, lower down, there's another called Shop by Product. I would like these two to be image buttons if possible. The website is on a temporary server at http://000.artinet.co.uk/
Malcolm
Images in Collapso?
Re: Images in Collapso?
In the Library / Variables / Section, create a new variable: CollapsoImage, Place Of Setting: Section, Type: Filename, Allow Empty Value: Checked.
Edit layout Callapso-5 Menu and look for the line:
Immediately under that add:
Edit layout Callapso-5 Menu and look for the line:
Code: Select all
$linkname = htmlspecialchars('<Actinic:Variable Name="SectionName" php="true" encoding="perl" selectable="false" />');
Code: Select all
$linkimage = '<Actinic:Variable Name="CollapsoImage" php="true" encoding="perl" selectable="false" />';
if ( $linkimage ) $linkname = "<img border=\"0\" src=\"$linkimage\" alt=\"$linkname\" />";
Norman
Re: Images in Collapso?
Thanks, Norman, that did the job.
Is there any way for me to get rid of the grey square that appears alongside just those two images so they're centered in the column?
Malcolm
Is there any way for me to get rid of the grey square that appears alongside just those two images so they're centered in the column?
Malcolm
Re: Images in Collapso?
Try this. Look for the 2 instances of:
Immediately after them add:
You may need to add some between the quotes or add a style to the image tag to get margins right.
And before you ask - I don't think you can centre these lines only. Collapso is very hard to tweak, it only costs £25, I've done as much as I can and I'm not a CSS expert.
Code: Select all
$bits[0] = "<img class=\"nsi\" src=\"c-n.gif\" />";
Code: Select all
if ( $linkimage ) $bits[0] = '';
And before you ask - I don't think you can centre these lines only. Collapso is very hard to tweak, it only costs £25, I've done as much as I can and I'm not a CSS expert.
Norman
Re: Images in Collapso?
Thanks again, Norman, brilliant as always.
I offset the image to appear central by adding white space in the image.
Malcolm
Saw that one coming, didn't younorman wrote:And before you ask - I don't think you can centre these lines only.
I offset the image to appear central by adding white space in the image.
Malcolm