Hello,

first of all, great module. Works perferct!

I was wondering if you could add a function that allows to add the "add to compare link" in form of a checkbox. This would be really handy, especially for a view.

Regards,
Thomas

CommentFileSizeAuthor
#8 checkboxes.png695 bytesDalay

Comments

Dalay’s picture

Well, I'll think about it.

Dalay’s picture

I thought. Do not see the point. You can use css to style the link as you wish. Using a form instead of a link - it is not the best solution in terms of performance.

thulenb’s picture

Ok, thanks. Unfortunately, I am not that experienced in css. Can you give me a hint how I can style the link as a checkbox, please?

Dalay’s picture

a.compare-toggle.add {
    background: BACKGROUND_PROPERTIES;
}
a.compare-toggle.remove {
    background: BACKGROUND_PROPERTIES;
}

CSS background property.

thulenb’s picture

Alright, thank you!

Dalay’s picture

Status: Active » Closed (works as designed)
thulenb’s picture

Sorry for disturbing again. But I am not sure how to use the BACKGROUND PROPERTY to insert a checkbox. Can you tell me which VALUE would be the correct one?

Hope that I don't bother you with this newbie question.

Dalay’s picture

StatusFileSize
new695 bytes
a.compare-toggle {
    background-image: url("/path_to_image/checkboxes.png");
    background-repeat: no-repeat;
    color: #000000;
    height: 16px;
    padding-left: 20px;
    text-decoration: none;
}

a.compare-toggle.add {
    background-position: 0 0;
}
a.compare-toggle.remove {
    background-position: 0 -16px;
}
thulenb’s picture

ahh now I see how this works. Spasiba bolschoi :)!!