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. So here are my 12 questions. When you look at: Where do I find the html code/parameters for the following? 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. 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.: 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. 11) In picture view I have no link "Add to cart" but this is necessary in this view. How can I add this link ? 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. Thanks for your patience |
|
Posts: 8601
A nice intro for requesting help, hm..
modules/slideshow/module.inc function getItemLinks.
Slideshow module is maybe 50% written and has no owner.
modules/comment/module.inc and modules/comment/po/de.po (current CVS, was de_DE.po)
look for "entitytruncate" in modules/core/templates/blocks/PeerList.tpl
adjust the CSS in your theme; view the html source to find the css class for the image block.
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.
make a local themes/matrix/templates/photo.tpl that doesn't call core.Navigator block twice.
look for <div id="gsImageView" in matrix theme's photo.tpl
modules/fotokasten/module.inc function getItemLinks
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
modules/core/templates/blocks/PeerList.tpl
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.
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.
And a partridge in a pear tree.
Posts: 214
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.