12 questions on where to modify the matrix theme.

technobilder

Joined: 2003-02-09
Posts: 214
Posted: Sat, 2006-01-14 16:38

I want to modify my matrix theme but the theme itself isn't very helpfull. The code isn't self explanatory and the blocks are defined somewhere else.
But with the huge amount of files and not knowing which module creates wich block and uses wich template for this I gave up searching.

So here are my 12 questions. When you look at:
http://www.technobilder.de/gallery2/v/album387/album412/?g2_navId=x3aedd32b

Where do I find the html code/parameters for the following?
Most questions are for the sidebar blocks.

1) In main gallery or album view the links for "Diashow" shouldn't be visible. The links should only appear where they are usefull, e.g in albums with visible pictures.
My main albums have no pictures as they only sort the individual albums for month and year.

2) The text "View latest comments" - where does it come from? I need it in german and have to translate it.

3) The Block titled "Ältere Bilder vor dem Jahr 2000". I made my sidebar 200px wide and the titles of the albums are cut off to early. Where do I set the parameter that the displayed amount of characters is more than 15 after which the name gets cut and "..." added.

4) Where can I add "center" to the "Random Picture Block"? The random picture doesn't look nice with the big white space to the right

Going to an individual picture e.g.:
http://www.technobilder.de/gallery2/v/Bilder+aus+dem+Jahr+2005/album434/album451/P1100731.jpg.html?g2_navId=x3aedd32b

5) Where can I set how many pictures get shown in the microthumb navigation? I would like to have a more G1.5 like style to show the last and upcoming 3 pictures.

6) Where can I set that the microthumb navigation is only on top of the picture and not underneath?

7) Where (!) in the file to display the individual picture is the place to insert code for a banner (advertising) - the space to the right is big enough for a skyscraper banner.

8) I only need "Via Fotokasten drucken" in my cart as it's a cart feature I think. I don't need it as a seperate link in the sidebar. Where can I configure this?

9) Where can I change the display in the "title bar"? I want to have "Date, Owner, Size and maxSize" beneath each other in one row to safe space not underneath each other like now.

10) Where can I change the Block above the "Random picture Block" to display a message like "You are here:" above the Album name. This will make it more clearly to the user what this block means.
(Btw. a scrollbar for this block would be usefull, or a configurable microthumb navigation as stated in 6)

11) In picture view I have no link "Add to cart" but this is necessary in this view. How can I add this link ?
"Everybody" has the right "Add to cart" in my configuration so it's not because of missing rights.

12) I also have configured to see my cart in the sidebar, the album and picture view - but the block is only visible in the gallery main view.
I want the cart block to be displayed permanently in the sidebar.

Thanks for your patience :-)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-01-15 16:50
Quote:
I want to modify my matrix theme but the theme itself isn't very helpfull. The code isn't self explanatory and the blocks are defined somewhere else.

A nice intro for requesting help, hm..

Quote:
1) In main gallery or album view the links for "Diashow" shouldn't be visible. The links should only appear where they are usefull, e.g in albums with visible pictures.
My main albums have no pictures as they only sort the individual albums for month and year.

modules/slideshow/module.inc function getItemLinks.
Slideshow module is maybe 50% written and has no owner.

Quote:
2) The text "View latest comments" - where does it come from? I need it in german and have to translate it.

modules/comment/module.inc and modules/comment/po/de.po (current CVS, was de_DE.po)

Quote:
3) The Block titled "Ältere Bilder vor dem Jahr 2000". I made my sidebar 200px wide and the titles of the albums are cut off to early. Where do I set the parameter that the displayed amount of characters is more than 15 after which the name gets cut and "..." added.

look for "entitytruncate" in modules/core/templates/blocks/PeerList.tpl

Quote:
4) Where can I add "center" to the "Random Picture Block"? The random picture doesn't look nice with the big white space to the right

adjust the CSS in your theme; view the html source to find the css class for the image block.

Quote:
Going to an individual picture e.g.:
http://www.technobilder.de/gallery2/v/Bilder+aus+dem+Jahr+2005/album434/album451/P1100731.jpg.html?g2_navId=x3aedd32b

5) Where can I set how many pictures get shown in the microthumb navigation? I would like to have a more G1.5 like style to show the last and upcoming 3 pictures.

see PGtheme in http://codex.gallery2.org/index.php/Gallery2:User_Contributions for an example of calling the LoadPeers callback and using that data for a custom microthumb display. matrix theme uses modules/core/templates/blocks/Navigator.tpl, but you can't change only that because data for other peers is not loaded.

Quote:
6) Where can I set that the microthumb navigation is only on top of the picture and not underneath?

make a local themes/matrix/templates/photo.tpl that doesn't call core.Navigator block twice.

Quote:
7) Where (!) in the file to display the individual picture is the place to insert code for a banner (advertising) - the space to the right is big enough for a skyscraper banner.

look for <div id="gsImageView" in matrix theme's photo.tpl

Quote:
8) I only need "Via Fotokasten drucken" in my cart as it's a cart feature I think. I don't need it as a seperate link in the sidebar. Where can I configure this?

modules/fotokasten/module.inc function getItemLinks

Quote:
9) Where can I change the display in the "title bar"? I want to have "Date, Owner, Size and maxSize" beneath each other in one row to safe space not underneath each other like now.

adjust the g->block call for core.ItemInfo in photo.tpl or adjust modules/core/templates/blocks/ItemInfo.tpl itself.
see http://codex.gallery2.org/index.php/Gallery2:Tpl_Reference for parameters

Quote:
10) Where can I change the Block above the "Random picture Block" to display a message like "You are here:" above the Album name. This will make it more clearly to the user what this block means.
(Btw. a scrollbar for this block would be usefull, or a configurable microthumb navigation as stated in 6)

modules/core/templates/blocks/PeerList.tpl

Quote:
11) In picture view I have no link "Add to cart" but this is necessary in this view. How can I add this link ?
"Everybody" has the right "Add to cart" in my configuration so it's not because of missing rights.

do "edit permissions" on that particular photo.. does Everybody group have add cart permission? perhaps you did not assign add cart permission for all items in your gallery.

Quote:
12) I also have configured to see my cart in the sidebar, the album and picture view - but the block is only visible in the gallery main view.
I want the cart block to be displayed permanently in the sidebar.

perhaps you did Edit Album / Theme tab from your root album, so the change is only for that album. try Site Admin / Themes / Matrix and adjust the default blocks there.

Quote:
Thanks for your patience :-)

And a partridge in a pear tree.

 
technobilder

Joined: 2003-02-09
Posts: 214
Posted: Sun, 2006-01-15 17:07

Wow, thank you :-)

Maybe this list should be sticky as I think it will help a lot of people finding the relevant files and lines of code.