Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
JimR wrote:
Or can we expect Magnific to support zoom on mobile devices?Not a chance.
LOL! I'm not surprised.
BTW - I also don't use Search.
Back to my main question, seems if I can point Touch to use the existing "photos" folder rather than it needing Publisher to generate a duplicate in "photos-for-download" then things will work.
Is there some code I can add in my PHP Plugin to set the downloadFolder from "photos-for-download" to "photos"?
I'm willing to test this idea, but hoping I can get a clue before venturing off on this hunt.
I haven't looked closely at the Touch code, but found this in the Gallery setup.lua
Looks like this is the code that could be altered to make the Touch gallery download from the "photos" folder which is always present.
local downloadFolder
if mode == 'preview' then
downloadFolder = "photos"
elseif publisher and M.publisher.imageDownload.enable then
downloadFolder = "photos-for-download"
else
downloadFolder = M.imageDownload.folder
endAs a guess, the Touch gallery isn't setting the mode to 'preview.' Not sure doing so is a good idea or not (it may have other side effects).
Another idea is that I can use the PHP Plugin API to change the downloadFolder variable to point at "photos" (rather than "photos-for-download" which isn't present without asking Publisher to create a second copy of "photos").
Can I add some code to my PHP Plugin to change the downloadFolder for the mobile Touch gallery?
To use images in another folder for downloads you can change the path by going to Appearance>Image Download>High-Res Image Folder.
That doesn't solve the problem. It's just another way to work around the problem, but ends up being a more complicate (manual) way than simply using the (automatic way) with Publisher renditions.
The original images are held in a folder "photos" which is automatically created when you publish. When you're using a desktop computer and have the download image option enabled pointing at "photos", those are the same images you see as the ones you download.
On a mobile device with the Touch gallery, the download option is broken. It won't download from "photos." This works in Magnific which seems to be looking in the "photos" folder for downloads.
The work around for Touch is to enable Publisher renditions, which creates a second folder of images which are placed in "photos-for-download." While this is automatic, it's a second copy of the same file. Doing it this way is a work around, but it's redundant and slows the publishing process creating duplicate files.
Your suggestion of using images in an entirely another folder is just another second copy. Setting this to "photos" is how you avoid creating a second copy of all the images. Changing this to something else means manually creating images, and then uploading them. It also means every time I edit an image, rather than simply clicking Publish on the album I'd have to remember to manually create the images and then upload them. Right? That defeats the purpose of using Publisher.
I don't want any manual effort, as this would be a real hassle maintaining the over 1,000 images in dozens of albums that change as I add/edit/delete images.
Using the Publisher renditions is the best option, since this is fully automatic. I'm just wondering if there's a way to avoid the duplication of rendering the same file twice, at the same settings.
Ben offers a solution that works pretty well.
Matthew once told me that altering the TTG code was against the licensing policy, which I understand (being a product manager for a software company).
I also don't want to alter the TTG Galley web engine code, as this would break with every update.
Question for Matthew...
Can we fix the Touch gallery to have the download option work just as it does when Publisher creates renditions when just the download option is set? This is showing the UI, as one would expect, but the code in Touch is broken (it doesn't support that Gallery option).
Using the Publisher renditions seems to be a way to create a second image, such as a hi-res option. I don't want/need a second copy, I just want the same behavior as Magnific.
Or can we expect Magnific to support zoom on mobile devices?
A quick test seem to show the download option works on the iPhone using the Touch gallery if you set Publisher to push the downloadable renditions.
There's a couple downsides.
I have to remember to keep the Publisher's copy to use the same settings at the Gallery's template. Not all that bad, since changing the template is a rare event (for me).
This creates two copies of all the images and that makes publishing take twice as long. That's a bummer because LR is so slow creating all the files, and I can only publisher one album at a time (to avoid LR bugs).
Is there a way to make the Touch gallery use the original set of images for downloading. The originals are in "photos" and the Publisher generated ones are in "photos-for-download".
I'm guessing a PHP Plugin couldn't change this.
Fails with Magnific? Or is that not what you meant?
D'oh! Got that backwards. I meant to say Touch still fails after regenerating with the 6.1.7 update.
The main thing that I wanted from Touch was zoom, which is very useful. Everyone I've met expects to be able to zoom images on a phone. Every time I see a person look at photos, they start pinching or double tapping their phone. When it didn't work, they asked me why it was broken. That's the only reason I'm using Touch.
Seems like we have to trade zoom for saving images, unless saving can be enabled/fixed in Touch.
Hmm, it works with mobile presentation set to Magnific popup, but it fails when set to Touch. That's the opposite of what I would have guessed.
The odd thing is using the Magnific popup create a grey ghost for the down-arrow cloud icon. When touching it, it opens the image in a new window. Long touch that and you get the Save Image option.
If you just long touch the original item, you also get the Save Image option.
I think I can change my gallery to not use Touch, and use the Magnific popup. But this seems like a bug in the Touch gallery.
I'm using Gallery 6.1.7, and regenerated the gallery with Magnific popup. Still fails.
I don't think this is an iOS specific question, but I don't have an Android. I haven't found a solution for iOS.
I have a gallery with the download option enabled. On a desktop I get down-arrow on the cloud icon, and clicking that does download the file.
Doing the same steps on the iPhone does nothing. It doesn't download (where would it go?), but it also doesn't trigger the iPhone's "save image" option.
Normally a long touch (touch and hold) brings up the save image option, but that seems to be disabled by TTG Gallery.
If a client/model is viewing their photos on a phone, how can they save the image on their device?
Nice tip - thanks. That's good one to document ![]()
I only have one CRG template, so the simple test is working.
I do have multiple galleries, but haven't needed custom CSS for a specific gallery. If I do, I'll use your tip.
will G_TEMPLATE sufficeOh, sweet. That sounds perfect!
Media queries tell me the screen size but cannot tell which module created the page I'm current on, right?
The basic style I'm overriding has a common name throughout CE4. I had to create custom css for each module to avoid the conflicts.
The problem is both Gallery and CRG are setting G_STYLE to the same variable name. This same line appears in the mobile.php files for both Gallery and CRG:
define( 'TTG_COMP', 'TTG CE4-Mobile 4.0' );I would expect something like a second variable to know it's the mobile version, or a unique name such as CE4-Gallery-Mobile and then CE4-CRG-Mobile.
Yup, all the latest software installed.
I simply remove all "Feedback Options" from the CRG Admin page. I leave just one for Comments in the "Feedback Textfields".
Then a tall thumbnail in the feedback page causes the stars to collide with the comments label, as I've shown.
Changing the CSS moves the thumbnail, to stop the collision.
I have a set of styles I use that have to be separated by the module. I have one for Autoindex, and another for the Gallery. I check for the G_STYLE variable in phplugins.php.
I've been working on getting my CRG style done, and it's nearly complete. I just notice it's not working on mobile.
The G_STYLE is set to "CE4-Mobile" not "CE4-CRG"
How do I detect I'm on running the CRG module while on a mobile device?
BTW - the G_STYLE variable is not defined for CRG in the documentation. I had to dig into the code to find it.
I could change the title in Magnific Popup, but not in Highslide Slideshow
Thanks Rod, that's my plan. I can see a few helpful options with this.
The thing that got me wondering if it's a bug, is how the thumbnail image and rating stars are colliding into the comment area.
Here's what I see...

Making the change I described in the first post solves this.
Argh - I'm getting confused by the server and/or browser caching previous data. My changes are sometimes being seen, even when I thought I got it.
Never mind <sound of head hitting desk surface>
Hmm, I'm seeing what I want on the iPhone but not at the desktop.
I just cleared the desktop browser's cache hoping that would make it work, but didn't.
Before I continue pulling my hair out, how am I suppose to change the title that appears at the top of the feedback form?
Not sure if I'm missing something, or if I'm the only one that tried and seen this.
I only want the rating and comment in the feedback form. I can't think of what meta data would ever be of use to a model choosing from her proofs.
The only way I know to remove the meta data from the form is using the /ttg-be/publisher/admin/ page, and editing the CRG profile. That does hide the meta data, but there's a new problem.
The feedback text box now collapses into the rating stars below the thumbnail. The only way I found around this was to change the CSS to the following:
.crg-thumbnail {
position: initial;
}The position was set to absolute, but I can't see why it's being hard coded to a position.
Is this a bug or am I missing something?
The default title in the feedback form is the file name (e.g. "_MG_5376").
I'd like to replace this with the cell number, and thought it would be straightforward but I'm not finding the secret.
I know about the {cellnumber} token, but how do I setup the CRG template and make this all work with Publisher?
If you have albums underneath a common Album Set then you can publish all albums under that set by choosing Publish Now on the Album Set; Lightroom handles the publishing in sequence, avoiding the race conditions.
Yup - I found that to be true. Pain in the butt to only publish on album at a time.
Yup, I read the other threads. They appeared to be related to a number of other issues, and can't tell if they're actually related to what I'm seeing.
In my case if I select two or more albums to publish at the same time I get this error. Simple as that.
I wasn't even using meta-data (titles or captions).
Thank Rod,
I think you're saying to copy the original code. Then use the PHPlugins to replace it with the same code minus the one I want to remove. Correct?
I've updated from CE3 to CE4, and as I publish albums I'm getting this error dialog from Lightroom:
An internal error has occurred.
MetadataHandler.lua:2155: C stack overflow.I simply selected a few albums holding 40-100 items and clicked Publish.
Once I get this error, I click OK (no, it's not "ok") but it immediately pops up (presumably as LR is processing the next image).
The CE4 Publisher plug in says there's no diagnostic messages.
This is going to be a real pain as I update a few thousand images ![]()
Any clues how to track this down and fix it?
I'd like to remove just one of the sharing options, LinkedIn specifically.
I can hide it using custom CSS, but that seems more like a hack. It also doesn't balance out correctly in the sharing menu within a single image. That may not be avoidable.
Is there some control for removing one of the sharing sites using PHPlugins?