Joomla: Create a module that spans several positions - layout

My website at sabraso.be currently displays several modules, a bit like:
[::MODULE 1::][::MODULE 2::][::MODULE 3::][::MODULE 4::]
[::MODULE 1::][::MODULE 2::][::MODULE 3::][::MODULE 4::]
However, I want to change this layout so Module 2, which contains a landscape-format image, spans the positions 2 and 3. Afterwards, Module 3 should also be stretched to the width of Module 2 and be positioned right underneath it. Like this:
[::MODULE 1::][::::::::::MODULE 2::::::::][::MODULE 4::]
[::MODULE 1::][::::::::::MODULE 3::::::::][::MODULE 4::]
Where should I start doing this, before I actually go dig in the template files? I have noticed that some modules automatically stretch to fill the remaining space, but I cannot seem to find when and under which conditions this happens.
Now I've read one answer on Stackoverflow, but I'm not quite sure what to do with it.

Related

SVG clip-path not working - multiple svgs on same page [duplicate]

This question already has an answer here:
clipPath in multiple SVG tags
(1 answer)
Closed 5 years ago.
I have multiple svgs on one page and have exported them individually from illustrator. I also passed them through omgsvg which reduced the file size.
However, when I view the complete page with all of my separate svgs inserted (via my server side html rendering engine), many of the clip paths don't seem to be functioning. Some do and some don't, I can't work out why.
Svgomg helped but didn't solve the problem entirely. Some paths still don't function.
But all the clip paths work fine when loaded one at a time as individual svgs directly in chrome, or in the illustration program! They only fail when put together in the html page.
The cause of this problem is that during svg export, clip paths will be defined using standardised ids, chosen by your illustration program. If you export several files, each of these files may well use the same id names. Svgomg just uses letters, a,b... Illustrator uses SVGID_1_, ...
What you need to remember is the role of ids on an html page.
Ids must be unique. Clip paths are failing to work because you have the same id defined more than once when you insert multiple individually exported files. The solution is to think of your html page as a whole, and make sure your ids across all images you will have on a page will be unique.

Set OpenSeaDragon Viewer Home to "Top" of Image

I'm using OSD to display a few pages from a PDF. Each page is lined up one on top of the other.
I'd like the viewer to start at the top of the image, zoomed to fit. I've played with various settings, but what seems to work for one image of three pages, doesn't work for another image of five. I can get close to what I want with this command:
viewer.viewport.panTo(new OpenSeadragon.Point(.5, .5));
viewer.viewport.zoomTo(1);
But I'll be honest that I don't quite understand what that means, and I have no idea how to set this as the "home" bounds. I've been through the documentation several times, but this escapes me.
Appreciate any guidance!
Rather than using panTo and zoomTo, I recommend using fitBounds instead. You'll want to base it off of the aspect ratio of your viewer so the result is snug. Something like so:
var oldBounds = viewer.viewport.getBounds();
var newBounds = new OpenSeadragon.Rect(0, 0, 1, oldBounds.height / oldBounds.width);
viewer.viewport.fitBounds(newBounds, true);
The true in the fitBounds is to make it snap there immediately instead of animating.

How to span a number of columns, regardless of the nested grid context?

I need to set the width of an element that is used in various places in my fluid Susy layout. The parent element is not always the same width, but I want this element to always have the same width relative to the page width.
Example:
In a 12-column grid, a news article sometimes spans 12 columns, sometimes 6. Editors are able to add a <blockquote> in the news article text. I want a blockquote to always be 3 columns wide (relative to the full page), regardless of its context (12 or 6 columns).
Of course if this was a grid with fixed column widths it would be easier, but I'm looking for a fluid, percentage-based solution.
PS. I am willing to use Susy 2 alpha if that makes it easier to solve the problem.
You would do this the same way in Susy 1 or 2, though it's always more fun in 2. :)
The issue isn't really related to anything specific about Susy, it would be a problem in any fluid CSS situation. You can only solve it if you have a hook for knowing which context you are in. At that point, you can solve it from either end. Something like this:
blockquote {
#include span-columns(3);
.narrow & { #include span-columns(3,6); }
}
There really isn't any way to do it without the hook. CSS doesn't have element-queries (and isn't likely to any time soon, for the reasons given in that article).

AVVideocomposition AVPlayerItem position of video-layer

I used Apple's AVEdit-Demo, tweaked it a little and was able to add CALayers with animations and images to the video-composition. So far, this works fine.
It uses AVVideoComposition and AVPlayer/AVPlayerItem to merge videos (and show them - the export rendering is a little different).
I added a layer with a png with some transparent areas, sort of like a mask, that hides parts of the video. Now I need to move the video-layer, so I can adjust the hidden parts (a.k.a. the visible part). The Mask covers the whole screen (in a CALayer), so moving the Mask-Layer isn't an option.
I didn't find any properties or methods, to adjust the position of the video-layer...
Any Ideas?
Found it...
I had to access the AVMutableCompositionTrack in the AVMutableVideoComposition and set the preferredTransform there (CGAffineTransformTranslate).
However - the Docs state, that this should be possible in a AVMutableComposition as well (AVAssetTrack setPreferredTransform).
I couldn't get this to work, though.

How do I set up my first view with Draggable Views module?

I'm learning how to use Draggable Views for Drupal 6 for the first time, following this tutorial: http://thedesignspace.net/MT2archives/000666.html . I'm encountering a problem though: in part 4, once I set up the draggable table ( http://thedesignspace.net/MT2archives/000708.html ) the entire preview disappears, showing no table. Switching the style to another type, such as table, brings everything back. Directly viewing the page from its path makes no difference. Any ideas of what the problem could be?
Not all of my modules were up to date when I encountered this problem. My mistake. Always update all modules first upon being stumped by incompatibility errors, even if the modules in question do not seem to have anything to do with the error.

Resources