Hey All
1) I can't seem to figure out how i can have main album page have 1 column (5 rows) of albums, but so that pictures within those albums are 2 columns and 5 rows.
Whenver i change the column setting - it applies to both - pictures and albums on the front page. In the G 1.44 that i had, i could specify this separately for albums and images in albums.
While i can set 1 columnt and 5 rows globally (to set the front page behaviour), i then have to change that for every album manually to have 2 columns and 5 rows.
2) is there any way to run off date, size and views that are displayed next to every album/picture?
3) In gallery 1.xx i was able to put a chunk of text right next to the album as a desription, but can't do that in G2. Is that no an implemented feature? i can put a line or 2 at best, but not anywhere near what i was able to in the older version.
----
Gallery version:2 (Holly Hand Granade)
Webserver (with version):Apache 2.0.52-r1
Datatabase (with version):MySQL 4.0.24
PHP version (eg 4.2.1):4.2.11
Graphics Toolkit(s):ImageMagic, NetPBM,GD
Operating system:Gentoo (all latest stable as of 24.4.2005)
Web browser/version: IE 6
Posts: 8601
1) set global setting to 2 columns. do edit album / Layout tab for top level album and set 1 column
2) "run off" ?
3) are you saying between the title and summary you can't fit enough text next to an album thumbnail? in G2 the intention is to keep a reasonable amount of text next to thumbnails and show a longer text block in the photo view or inside an album (description text can be very long).
Posts: 80
Sorry, on #2 i was supposed to be TURN OFF date/size and views for all the albums.
3) - yes, that's correct. Description shows up only when you enter the album itself (shows up on top, in the grey area). So i guess the real problem with the Summary field is that i can't use paragraph, or page brakes to format the text.
For example if i want it to look as below:
1)xxxx
2)cccc
3)vvvv
4)bbbb
5)dddd
.
Instead - i have to type it all into a single line.
Posts: 8601
3) use a local tpl to change the text box to a textarea.. still limited on the total length though.
2) you can use a local tpl here too
Posts: 80
I've read some docs and it looks like i need to create "local" folder and drop the tpl in it, but i can't find the place in any of the default templates where to change the text box into a text area. Same goes for removal of date/size/views information about every album.
Thank you
Posts: 80
Ok, i've figured out how to change Summary field into a textarea. So when i ADD albums i can put in formated text. And i thought that in order for me to be able to do the same on the existing album, i needed to change the ItemEditAlbum.tpl - but i can't find the part for the "summary field"!
Maybe i'm blind or maybe i'm looking in the wrong place.
Advise?
Posts: 80
Ok got the Summary field problem resolved. Still trying to figure out how to remove the views, date and size information about the album.
Posts: 8601
search for Views, Date and Size in layouts/matrix/templates/albumBody.tpl
Posts: 80
Ok, i'm using classic so i've went to edit it's tpl.
However, when i try comment date/views/size block it puts the # (comment sign) up in the albums views to it looks like
##Views 30#
##Date X #
Posts: 8601
use {* to start a comment and *} to end a comment..
smarty.php.net
Posts: 10
I want to get rid of the "Date:" and "Views:" info under thumbnails that link to photo pages, but for those that link to albums, I only want to remove "Views:" & keep the "Date:".
In album.tpl, I can just set showViewCount=false . I belive I need an IF statement regarding showDate .
( IF this thumbnail refers to a photo page, showDate=false; ELSE (if it's for an album), showDate=true )
Can someone help with the code & how to identify what type of thumbnail/link is being displayed
(or provide a better method)?
Thanks!
Posts: 8601
look for existing code with $child.canContainChildren to see an {if} that may get you on the right track..
Posts: 168
Mike -- almost a year later, I just came across your note as I realized I'd like to do the same thing as you asked about here. (btw, I notice that Hybrid has these available as theme options but not Matrix or G1 or Classic.) Did you find the right way to code it?
Posts: 14
I'm using the latest SVN and this is not working.
There are two areas within album.tpl which looks to control these displays, but setting them to FALSE does not remove them.
Lines 38-45
And lines 144-152
Setting showDate=FALSE is not working. Even after refreshing and clearing cache's...
Any thoughts?
Posts: 14
Well it seems to be working now. After turning off Theme Caching and creating my own theme, using Default for Admin and my custom theme for all my albums, REMOVING those lines of code make the Date/Views etc, go away.
Yay!
Posts: 7
whooo thanks to jeremy little tip of clear theme cache IT WORK!!! lol... i knew my code was correct... just need to remove the ALBUM: bit now so it only dispaly the album name. i.e running instead of ALBUM:running
Posts: 7
This isn't working for me, I am using Matrix, check out Phable.net... I set to False, put in LOCAL directory, I managed to change the logo, and turn off the "Album:" text, but setting these to FALSE in both locations does nothing. I am using "Sand" colorpack, and a few checkout plugins but not much else.
I edited album.tpl and also photo.tpl, neither of these edits for date / size are working.
Any assistance is appreciated.
Thanks.
Posts: 7
So yeah, this still doesn't work, but changing passwords did mess the SQL up.
Posts: 7
At around line 180 in album.tpl, I found this code:
I changed
showDate=false
showSize=false
showViewCount=false
showSummaries=false
those from "true" to "false" as shown, cleared the template cache and that fixed it for me.