![]() |
|
Image Name Length, Subalbum name lenght - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Image Name Length, Subalbum name lenght (/thread-12798.html) |
Image Name Length, Subalbum name lenght - David6491 - 2015-07-27 Not sure if this is already a feature however I would like an option to limit the sub album name length and even the image name length in the gallery views so that a consistent number of thumbnails is shown on each page and each thumbnail is the same size. Image Name Length, Subalbum name lenght - fretzl - 2015-07-27 What theme are you using ? Image Name Length, Subalbum name lenght - David6491 - 2015-07-28 I am using the Effervescence+ theme. I am more than open to other themes suggestions. This one just looked simple but had some nice features. TIA Image Name Length, Subalbum name lenght - Michel Gagnon - 2015-07-28 Basically, under Themes, make a copy of the theme and modify various pages. Use function shortenContent to do what you want: Image Name Length, Subalbum name lenght - fretzl - 2015-07-28 Please also read the theming tutorial. Image Name Length, Subalbum name lenght - fretzl - 2015-07-28 To help you on your way a bit... In your theme folder (themes > effervescence_plus) locate the [i]album.php[/i] file. Change line 118 from Where "20" is the length of the title and "..." is de shorten indicator. Image Name Length, Subalbum name lenght - David6491 - 2015-07-31 Thanks for this this sounds just what I am after. I am able to find and edit the code but exactly what to I am unsure of. The '...' what is this do I put exactly as you say or experiment with it to get what I am after. I will start giving it a go but any further help for a non coder would be appreciated. Image Name Length, Subalbum name lenght - fretzl - 2015-07-31 Quote:The '...' what is this do I put exactly as you say or experiment with it to get what I am after. For example You can change the "..." to anything you like or leave it out completely. So yes, experiment with it ;-) Image Name Length, Subalbum name lenght - David6491 - 2015-08-01 Thanks for your help. However it must be the wrong place to achieve what I am after as I can not get a result. What I am after is to just shorten 1st layer sub album title when displayed in the gallery under the thumbnail so that all the thumbnails display on the page neatly. If it is possible to display the full title in the breadcrumbs at the top once selected that would be a bonus. My only other alternative is to shorten the folder names. Sorry but I just dont know the make up of the program enough and firebug is not helping me identify the area to change like you suggested which I am sure is the correct way to do it. Image Name Length, Subalbum name lenght - fretzl - 2015-08-01 Image Name Length, Subalbum name lenght - fretzl - 2015-08-01 Try the same change in [i]gallery.php[/i] line 75 I think you are not using the correct naming convention. Image Name Length, Subalbum name lenght - David6491 - 2015-08-04 I think you are right I just haven't got the full knowledge on this. I can follow the instruction with no problems and even extend them a certain bit to possibly fix it to make it work but when I get nothing or an error I'm probably stuffed. I am now getting this error Image Name Length, Subalbum name lenght - fretzl - 2015-08-04 Sorry, my mistake. The code should be: If you don't want any shorten indicator after each shortened title use this: Image Name Length, Subalbum name lenght - David6491 - 2015-08-13 Thanks it works and is a great improvement or feature in my eyes at least. Now each page looks the same will display the maximum amount of tiles but the data is still there. Image Name Length, Subalbum name lenght - David6491 - 2015-08-26 Just when I thought it was working I find one of the sub albums out of the 15 where it doesn't work. I also have a problem with two of the subalbums not showing all of the folders. I will raise another topic to deal with this I think it might be a memory issue. I am trying moving things around to see the effects. Some very strange problems. Image Name Length, Subalbum name lenght - acrylian - 2015-08-26 If you are using the static_html_cache plugin and are not loggedin you certainly may see an older version. If albums are not showing they may be unpublished unless you are loggedin when you would see all. In any case always review your error logs if you think something is strange. Image Name Length, Subalbum name lenght - David6491 - 2015-08-26 Ok strange but I found the culprit. For that particular Album the Theme was set to something other than the gallery theme. |