combine add-ons?
Permalink
Hi there
I'd like to combine the "Expandable content" Add-on with the "Zoom image" add-on. Basically, I wanna click on the title, a thumbnail appears, I click it and it shows bigger, as Zoom Image does.
How do I do that? In general, especially with the "Expandable content" add-on (which I think rules, btw), I'd like to combine other ones. But how?
thanx
RizzzO
I'd like to combine the "Expandable content" Add-on with the "Zoom image" add-on. Basically, I wanna click on the title, a thumbnail appears, I click it and it shows bigger, as Zoom Image does.
How do I do that? In general, especially with the "Expandable content" add-on (which I think rules, btw), I'd like to combine other ones. But how?
thanx
RizzzO
In addition to my expand block on codebloghttp://www.codeblog.ch/2009/10/expandcollapse-block/... there's also a very old very flexible expand block which worked with any blocks..
You bascially place it before the block and it adds hide/show functionality to it..
I've built it in July 2008, not sure if it still works.
Let me know if it works for you!
You bascially place it before the block and it adds hide/show functionality to it..
I've built it in July 2008, not sure if it still works.
Let me know if it works for you!
@elyon: Thanx, I'll have to look into that.
@Remo: Both blocks work per se, but not the way I want them to. The old one does omit the following element, but it does not seem to be able to display the zoom image addon correctly. It shows up small AND large, both already visible...
As with your new block, I don't know how to include any addon afterwards.
Plus, what I like about the one I purchased is that it expands slowly, visibly. That's a very neat effect, imo...
@Remo: Both blocks work per se, but not the way I want them to. The old one does omit the following element, but it does not seem to be able to display the zoom image addon correctly. It shows up small AND large, both already visible...
As with your new block, I don't know how to include any addon afterwards.
Plus, what I like about the one I purchased is that it expands slowly, visibly. That's a very neat effect, imo...
To do this you would have to get into programming. I'm not familiar with the zoom image add-on, but I'm guessing that it might be possible to do this using a custom template.
You have two things to consider: The data you need to store, and the functionality you want to show. If you can get away with using the data stored with the expandable content block, then make a custom template for the expandable content block that includes Javascript for zooming an image. Conversely, if the zoom image block stores all the data you need, then go that route. However, if neither stores all the information you'll need, you'll have to get into creating a custom block in order to store all the data.
If you have both blocks, I would consider the code applied for each. I think the expandable content block just uses a jQuery command to expand and collapse a DIV. That being the case, you might be able to wire things up so that you apply the same jQuery code to the zoom image. Do you see what I'm getting at? One way or another you're going to have to get into PHP or Javascript to merge the functionality you need in one place. You might also consider adding a zoom image as HTML code inside the expandable content block.