Page 1 of 3

[rz] Masonry Filter *** UPD 2015-Aug-17 ***

Posted: Thu May 16, 2013 7:58 am
by [RZ]
[rz] Masonry Filter v1.0.0.2

This extension -for the WB's Masonry object- allows you to filter which layers can be shown or hidden.

DEMO

HTML 4.01 Transitional
W3C compliant


* New in version 1.0.0.2:

- Fixed an inherited bug handling layers with borders.

* New in version 1.0.0.1:

- Optimized code.


How to use?

First things first: please read in full the masonry's documentation so as you can know how it works, also please take a look at the available samples.

1. Design your page according to the masonry scheme.
2. As you added 'class="item"' ('item' or the class/selector name you want), add the 'filter name' you want, i.e. 'music' and as many as you need for each element; so, you will have something like that: 'class="item media image"' and in other element can be 'class="item media music"' or 'class="item media video"' or 'class="item media image color"', etc... (without the single quotes.)
3. Add the masonry object and specify your desired .selector and #container.
4. Add the [rz] Masonry Filter extension and set-up the same #container and .selector as in the masonry wb's object, this way both extensions will be "shake their hands".
5. Add texts, shapes or any other object that accepts events, they will act as "filter buttons".
6. For each "filter button" -the object that accepts events-, open its properties dialog.
7. Go to the Events tab.
8. Click on "add..." button.
9. In the Add event dialog, select:
Event -> onclick
Action -> Javascript Function
Javascript -> MyMasonryFilter('filterstring')
10. Click on the OK button (twice) until the object's dialog is closed.
11. Remember to go to the step #6 until all of your links/events are defined.

Just replace MyMasonryFilter by the actual object (extension) id; the same for the quoted filterstring, enter the actual filter criterium such as 'video', 'image', etc. The function call may be: filter('image');
If you don't specify any filter, all of the objects will be shown. The function may be: filter();

Enjoy!

Re: Masonry Filter

Posted: Thu May 16, 2013 8:48 am
by zinc
A very welcome addition RZ!!!! :)

Re: Masonry Filter

Posted: Thu May 16, 2013 9:18 am
by [RZ]
thank you for your feedback!

Re: Masonry Filter

Posted: Thu May 16, 2013 11:15 am
by stamjoe
Thanks RZ!!!
Its very usefull.
Joe

Re: Masonry Filter

Posted: Thu May 16, 2013 11:20 am
by [RZ]
thanks for your feedback!

Re: Masonry Filter

Posted: Fri May 24, 2013 8:32 pm
by googledat
Hi RZ,

The masonry extension and filter are nice for making responsive websites. However, I'm puzzled to see so few using them because responsive web design is HUGE and soon most professional websites will be built this way. Is there a gallery with sites built like this in WWB? If not I suggest creating one.

Thanks,
Steve

Re: Masonry Filter

Posted: Sat May 25, 2013 6:47 pm
by [RZ]
thanks for your feedback
(i don't know about this type of gallery)

Re: Masonry Filter

Posted: Wed Mar 18, 2015 7:32 am
by naftalina
I do not have enough knowledge to do what it says in the manual.
Would I be able to get a demo project or if someone who is already using this extensions can help me to complete the page that I started?

My project is here: https://www.dropbox.com/s/pjlzytslnwqad ... y.zip?dl=0

Re: Masonry Filter

Posted: Wed Mar 18, 2015 10:59 am
by [RZ]
please refer to the wb masonry documentation and/or sample files
the [rz] Masonry Filter is an add-on for the wb masonry extension
first you must know how to configure it and lastly this extension

Re: Masonry Filter

Posted: Wed Mar 18, 2015 12:06 pm
by naftalina
So, I need WB Masonry extension?
I didn't know for that extension.
All this things are new to me.

Where I can find that extension?
I'm looking in extension manager but I can't find. :/

Re: Masonry Filter

Posted: Wed Mar 18, 2015 12:09 pm
by [RZ]
from the first post:
This extension -for the WB's Masonry object- allows you to filter which layers can be shown or hidden.

Re: Masonry Filter

Posted: Wed Mar 18, 2015 12:12 pm
by naftalina
[RZ] wrote:from the first post:
This extension -for the WB's Masonry object- allows you to filter which layers can be shown or hidden.
Where I can find that extension?

Re: Masonry Filter

Posted: Wed Mar 18, 2015 12:15 pm
by [RZ]
afaik it is called jquery masonry, so you should find it in the j area

Re: Masonry Filter

Posted: Wed Mar 18, 2015 12:19 pm
by naftalina
[RZ] wrote:afaik it is called jquery masonry, so you should find it in the j area
Yes! Thanks [rz]. Sorry fom missunderstanding. I don't know nothing about programing and my english is not so good, so manny times I miss things.

Re: Masonry Filter

Posted: Wed Mar 18, 2015 12:20 pm
by [RZ]
:)