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.
Yes I had a look on this page and tested, but impossible, I didn't find any solution to avoid the translation of quotes and signs like <>, even with LUA..
Maybe someone know how to do, but I tried many many times and no success.
For the precedent problem, it's ok. It works with another Phplugin folder with another name. So the shop will have his own phplugin folder and the main website his own too. Not perfect, but it works. Until I have to use publisher to upload galleries in the shop. I will see that at this moment..
Yes it is exactly what I tried..
So ok I erased everything and restarted. Go back to the non altered module, and retried this.
As before, it makes problems:
For the shop gallery it works. (Exported with lightroom)
But all the others galleries (publisher) are broken. Nothing load.
EDIT :
/// The problem I think is in the code I have to paste, this kind of "popup" for the basket : it has also a Css... /// --> No
----> Yes, The problem comes with the script.js. It breaks the others galleries, when it is at the end of the head.
well.. maybe another idea...
Lets try another PhpPlugin folder to see.. To avoid altering the firsts galleries, and link only this "shop" gallery.
Any idea with the translation of quotes and signs in html code, with Publisher ?
Thank you Rod, and sorry for my bad utilisation of the Engine.
Ouch, I didn't know that ! My bad
As I saw some other posts about changing some lines of code in the Engine, for the problem of quotes (I don't remember where in the forum...) I thought it was ok...
So I don't know how to do...
Use only phpPlugins didn't work.. It add the code at the end of the Head and no success... If there is a way to put it right under the start of the "Head", I will be glad to know it, without altering the engine..
For the token, yes I tried. I have mentioned it in other posts, about the problem of quotes and other signs. They are "translated" in html code when publishing... The information I put in the Urlcopyright is like this :
<a class="wl-photo-order" rel="nofollow" href="http://www......">Command</a>
Ok so...
I found a solution but I keep my precedent question
What I have done :
In the Gallery webEngine, pasted this code in the HEAD.html : (almost the same as ttg_head_end)
// <% if publish and M.phplugins.enable then write ("<?php\n" ..
// "if ( function_exists('ttg_head_start') ) {\n"..
// " $void = ttg_head_start( TTG_COMP, TTG_ROOT );\n"..
// "} ".."?"..">") end --[[ ttg_head_start ]] %>
And pasted the master code in the Phplugins.php.
//function ttg_head_start( $style, $path ) {
// echo '
//<link rel="stylesheet" href="http://www...." />
// <script src="http://www....script.js"></script>
//
// ';
// } // END
And so far, it works when exporting the gallery with lightroom.
Have to check if a publisher still work with these changes now..
Verified another thing, it doesn't work to duplicate and rename a webEngine, Lightroom doesn't recognize it.. So if you have a solution for this...
For now, the changement is for all the gallery pages...
I will try now to do this for the Pages module, in order to have the "basket" on all the pages.
And still, do you think it has been a good solution ?
Thank you.
F.
Hello everyone,
I come back for a new question about adding 2 lines of code in the head of a gallery and also in Pages.
I already spoke about adding links to thumbnails images in precedent posts and found some solutions.
Here the workflow :
For the Gallery :
1/ I add a different link in the UrlCopyright of each different image. (Purchase button and link)
Ask to the gallery template to show it (and it works when exporting the gallery, not with publisher)
2/ I have to add two lines of code in the head of the index file and mobile file. (Basket links)
--> I pasted directly in them the code in the beginning of the head, before everything else. --> it worked.
3 / Now I have succeeded doing this, I would like to make the part 2 also automatic, with phpPlugin.
But :
In phpPlugin, I can just add some lines at the "End" of Head. And when doing that, the code doesn't work.
So seeing how the Php plugin works, I tried this :
Add in the index and mobile php files of the gallery : Part A :
Head start :
// if ( function_exists('ttg_head_start') ) {
// $void = ttg_head_start( TTG_COMP, TTG_ROOT );
// } ?>
And in the Phplugins.php : Part B
// function ttg_head_start( $style, $path ) {
// echo '
// <link rel="stylesheet" href="http:etc..." />
// <script src="http://www.etc.../script.js"></script>
//
// ';
// } // END
And it works.
But now I have done that, I would like to make it automatic when I export Gallery and Pages from lightroom. If I'm right, I have to make some changes in the webEngine no ? If yes, in which files do I have to add my part A ? For the part B I keep this in the phpPlugin file.
To prevent any problem, I will duplicate gallery and pages webeengines, and rename them for this special workflow, doing this, I hope to see them in lightroom..
So would you have some advices for this last part ? In which files of the "Pages" and "Gallery" webengine I will have to add this little code in the head, and also, is this a good idea to make some changes in the webengine, and duplicate them ? Or, is there a simpler way ?
Thank you very much for your answers.
F.
Hi,
Thank you for your answer.
Yes I put the question on publisher forum because if I have found a solution to put these codes on templates, I would have preferred to use Publisher to upload images with their third-party link.
I would really like to keep the Printing studio I choose and use these codes to manage the service and images.
So it's why at this moment the workflow look like the one I've described before. It's not great at all like this, but it is the only way I found ..
And for CE4 cart, it would have been great to use it, but if I can't use the html codes.. too bad..
It is pretty much what I have finally done at this moment.. If I keep this, the workflow will be like that :
. Import New Image in lightroom
. Paste the code in Url copyright
. switch to web module / Gallery with the complete folder with the new image and oldest ones.
. Lightroom Export a Html version of the gallery.
. Edit in index.html, search the """ and replace with "
. I have also to insert a block of code in the HEAD. (I was not speaking about this problem yet ...)
And upload all the folder to FTP.
Each time I have a new Image.
If I don't do like this and edit the code completely manually each time, when I will have 80 images to re-upload, it will be a little heavy to do...
You are also talking about CE4 cart. Yes I was thinking about it. Maybe with the options of this module, I would be able to paste somewhere the head Code I have, and link for each image the 2nd code. But I'm not sure at all if it can be done in this module ?
Otherwise, what was your idea about Cart ?
thank you for your reply !
Hi Everyone,
I am looking for a solution for a "little" problem ;
For print and selling purpose, I have to insert a link to an image, published with Publisher, in a gallery.
The link will appear below the thumbnail, same way as the title of the image.
The html code for each image is almost the same, except an "id".
For example the link :
<a class="wl-photo-order" rel="nofollow" href="http://TheSite.fr/app_dev.php/order/items/new/0123456789">Purchase</a>
The changing part of the code for each image is "0123456789"
I tried to simply paste the entire link in myImage Metadata, for exemple in the CopyrightUrl metadata.
Specified in the TTG gallery's template to use the Metadata1 with the "CopyrightUrl" and show it.
Published the gallery's template, and publish the Image with it.
It almost worked. On the website, the link is below the image , but it can't work because all the "quotes" have been replaced in the source code by the html number of a quote : "
I tried with php code to force the "string" to be used like it is, with the quotes, (using echo, backslash etc...) but no success.
Also tried to only insert the html link, doesn't work.
So I am looking for a solution for this. Use the quotes in the entire link as "" and not " ; Setting this in the metadata of the picture and the template.
I have seen that we can use custom tokens and also LUA, to make some little "code". Maybe the solution would be using this ?
Thank you in advance for your answers.
Hello Rod,
My apologies for this late reply. I am always in the code and the construction of the site
So, for this problem of presentation on Ipad, it's solved !
In fact, it was ok to change this code, I finally saw if I didn't paste the whole code, for this part, it couldn't work...
I pasted and change the whole part and it is ok and perfect the presentation is ok !
And for Stage, ok I think the presentation will stay as it is I have still a lot of work to do before changing this
Thank you again Rod !
And at this moment I am struggling with Stage for such a simple thing..
To put the identity plate at the Center of the page... All kind of changements in lightroom do nothing, so I am looking for the good line in the CSS to
Héhé yes it worked And... you're right ! it's going to be a little more complicated than that.
I have not seen that at the moment.. but :
The result is ok on Mobile devices, for the iconic thumbnails in autoindex pages.
but it breaks completely the presentation of the thumbnails in the galleries.. in landscape mode... And... breaks also the black and white overlay on the thumbnails...in landscape mode.. No problem in portrait mode.
So.. what can I say.. It works ! but .. It breaks many things
I have to search what to keep in this custom code. I think it is in this block, where I have to erase some lines.
I have to test ..
@media screen and (max-width: 992px) {
.container_12 .grid_1,
.container_16 .grid_1,
.container_12 .grid_2,
.container_16 .grid_2,
.container_12 .grid_3,
.container_16 .grid_3,
.container_12 .grid_4,
.container_16 .grid_4,
.container_12 .grid_5,
.container_16 .grid_5,
.container_12 .grid_6,
.container_16 .grid_6,
.container_12 .grid_7,
.container_16 .grid_7,
.container_12 .grid_8,
.container_16 .grid_8,
.container_12 .grid_9,
.container_16 .grid_9,
.container_12 .grid_10,
.container_16 .grid_10,
.container_12 .grid_11,
.container_16 .grid_11,
.container_12 .grid_12,
.container_16 .grid_12,
.container_16 .grid_13,
.container_16 .grid_14,
.container_16 .grid_15,
.container_16 .grid_16 {
display: block;
float: none;
width: auto
}
.container_12.step_down .grid_1,
.container_16.step_down .grid_1,
.container_12.step_down .grid_2,
.container_16.step_down .grid_2,
.container_12.step_down .grid_3,
.container_16.step_down .grid_3,
.container_12.step_down .grid_4,
.container_16.step_down .grid_4,
.container_12.step_down .grid_5,
.container_16.step_down .grid_5,
.container_12.step_down .grid_6,
.container_16.step_down .grid_6,
.container_12.step_down .grid_7,
.container_16.step_down .grid_7,
.container_12.step_down .grid_8,
.container_16.step_down .grid_8,
.container_12.step_down .grid_9,
.container_16.step_down .grid_9,
.container_12.step_down .grid_10,
.container_16.step_down .grid_10,
.container_12.step_down .grid_11,
.container_16.step_down .grid_11,
.container_12.step_down .grid_12,
.container_16.step_down .grid_12,
.container_16.step_down .grid_13,
.container_16.step_down .grid_14,
.container_16.step_down .grid_15,
.container_16.step_down .grid_16 {
display: block;
float: none;
width: auto
}
I think I can say "just perfect" !
It is exactly what I was looking for all day...
So ok next problem...
Thank you very much !
Again thank you Rod to have a look on this question
It's ok I have unminified the css, and going to look for these lines.
Hope it will work !
Hi Everybody,
So another little issue with the presentation of the site on Ipad.
I have an autoindex page created within "Page", and the presentation shows only one column of several thumbnail / galleries.
On desktop browser, it's perfect, on Iphone almost,
But on Ipad, the module decided to show two columns in portrait mode... If I turn the Ipad on landscape mode, the "one column" comes back.. The opposite with the Iphone : One column in portrait mode, two columns in landscape mode...
So it is just a matter of screen resolution...
As before, I tried to solve the problem with PhpPlugin and CSS customisation.
I tried to find the good line / code in the (style-component.css and others) to change this column / resolution issue , and edit the custom CSS, but I really don't find anything matching this.
EDIT : I have also a standalone autoIndex, and the same problem happens...
Does someone have a solution for this ?
Thank you.
F.
Exact ! I thought about it and forget since I had the mind in the code..
So it is ok for that ! It works for the thumbnails of the galleries. Not all, but it is a good start.
Ah ok, I will search for this too.
At the moment, I don't find the good lines of code to do the good setup. I thought to understand, but I have several issues
For example, I found how to change the size of the thumbnails, but I see now "two" thumbnails in the cells on Ipad, and the 2nd image of this thumbnail is not centered in the cell at all...
And it breaks also the thumbnails on the iphone...
...
Ah ok. I thought to see the iconic mode on the iphone, but wrong, my mistake.
Thank you.
So, I am trying some codes in the phpPlugin to modify the CSS.
There is a thing I won't be able to find, it is how to enable the iconic mode for CE4 standard...
I see some lines about iconic mode, but I don't see how to activate it with a line of code..
Do you know how to do it ?
Thank you !
Yes it is exactly what I am trying to do It works to edit the CSS in the PhpPlugin, copying and editing parts of CE4 standard yes
I will play with this and let you know how it evolves !
héhé ok
I just tried.
It doesn't work... At the moment we switch back to masonry, the plugin doesn't export the setup made with the standard version...
So the setup has to be done in the CSS ?
Can it be done in the custom CSS from phpPlugin ? To avoid to do it each time there is a change in the template...?
So, if I consider that the desktop gallery will be Masonry and mobile will be Standard,
how it works to adjust each version ?
In lightroom with the Gallery template, do I have to make at first a setup for desktop with the Masonry, and switch to Standard to make the mobile version ? And switch back to masonry before export ?
Or does it work differently ?
Thank you Rod.
Ah ok I was afraid of that..
So my question is irrelevant I think...
I send you anyway link and captures by mail. To speak about that and see how to make this work for a better result.
Could I send you this by mail or MP ?
Hello Everybody,
I have an issue with the gallery module of ttg-CE4. With the thumbnail grid on Ipad.
With the Freewall Masonry layout (rigid or elastic), it is perfect on desktop web browser, same on Iphone (the icons change to square, so great ! and the composition is ok) but :
On Ipad, the thumbnails don't resize like the desktop version... They keep a "square cell" and don't "assemble" themselves like the desktop version. It makes the look crazy with empty spaces everywhere, depending of the ratio of the images. (I don't have background color around the thumbnails)
And my idea was not to make the Ipad's thumbnails square like iphone version (changing for that the mobile breakpoint I think...?).
I have seen the result working with another site on Ipad (I don't know if it use TTG, but it use something like the freewall for sure), so, is there a way to make the thumbnails on Ipad works like the desktop version ?
Thank you !
Perfect ! It works
Firefox ok, Safari Mac ok, and chrome ok. Will check with the others IE etc..
Many many Thanks Rod, I will now be able to finish this page, finally after one day, and begin the others