Matrix columns and rows
sircuss
Joined: 2005-04-19
Posts: 46 |
Posted: Thu, 2005-05-26 04:47 |
1)How can I get matrix items in my albums to actually be 3 or 4 items across and the the rest down. In an installation I did a month or so back Matrix seemed to be that way by default. I have changed the settings to reflect this in admin, in the default and album layouts, but it still shows all items in the album all across. Since I want a definite size to my gallery (780 px across) this upsets that. Here's an image of what I'm talking about. . 2)Another issue I'm having is that when you click on an item, it doesn't show the picture. Instead it has a "Download this photo" link. How do I get it to just show the picture when you click on the item. This also was the default last month or so. Here's the picture of that. 3 & 4)How do I get rid of the green line and how do I make sure the main area doesn't go over my 780 px. It looks weird sticking out past a few pixels. Here's the pic for these two issues. 5)Is it possible to center the whole gallery to fit the rest of my 780px centered website? I removed the sidebar already. Thanks :D |
|
Posts: 8601
1) remove or update any local tpls you have. run flush templates task in site admin/maintenance if you remove them.
2) what type(s) of photos? only new ones you upload or photos that were there already?
4,5) look at the generated html output and try setting css width and text-align:center for the appropriate container.. searching this forum for posts i've made with "width" in them might help too.
Posts: 46
1)removing my local folders only got rid of the changes to the header and width that I wanted and didn't cause the single row of items to become an organized column/row order. I don't understand how I changed the default which I thought was colums/rows and not just a row. I set the columns/rows for 10/4. I deleted template cache but no change other than to lose my header.
2)every item. Like # 1 above, I thought the default was "show the item" rather than a link to "download the picture".
Posts: 8601
did you check layouts/matrix/templates/local? several people reported old local tpls that put all the items in a single row.
Posts: 46
Thanks, that was the problem! I had to update my local files by replacing the code that I changed in the older local file with the newer build file and it got rid of the "one row" problem.
For centering items - I found the code in a search for center - using templates/layout.css:
#gsImageView {
text-align: center;
}
#gsImageView table {
margin: auto;
}
The extra pixels were in theme.css: I specified .gcBackground1, .gcBackground2 and .gcBorder1 width
The extra green line was a leftover background color from a table I inserted.