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.
Matt and Ben have to walk a fine line between putting in enough controls to get the job done for most people and overwhelming everyone with too many controls.
Personally speaking, I find it overwhelming to read in a lot of post answers: "Use custom css or phplugins or both to do that".
I mean, things like having breadcrumbs on all page or having the menu item selected highlighted in the menu, etc. are pretty basic to me and having to go into phplugins to accomplish that is quite a steep learning curve for the average user. Much more difficult then having to understand the function of a few more buttons in the backlight2 backend.
My2cents
@ Ben
Thanks for the Cookie information! So I guess I will have to also enable that one to make sure I am on the safe side as far as the new european privacy legislation is concerned.
Yeah, using several browsers did help a bit, but I guess logging out and relaunching the browser is a must.
Well, I did one with message.error also.
Having the messages displayed on top is ok, it is better for the user than not to see that there are any messages displayed.
To make it easier for the user to get back to the form, I inserted a link after the reply text in the language section that can be clicked to get back down to the form. That seems like an acceptable work around right now.
One question: Any time I change something in the language section, it seems like it takes forever to update. Clearing all caches still doesn't show the changes I made. That has been a problem all along since working with BL2 and is a bit annoying since you can't go on, when you don't know if something is working right.
I just tried the work around putting all the privacy infos in the main copy of the form.
This works as far as getting the messages displayed, when the checkbox is not checked or other stuff is missing, but you have to scroll down again every time to get to the form again. Not so intuitive.
I try your message.success thing, but I guess it will be similar. Is there also a different one for the message unsuccessful?
Thanks!
not tested (and it could possibly break things) but you can try adding this right after the first script.
<script>
$("ul.sub-menu a[href='" + window.location.pathname + "']")
.parentsUntil('.menu .sub-menu', 'li')
.addClass("current_page_item")
;
</script>
I always keep a testing site, so it is ok, if things break;-)
I put the code in;
function scripts() {
echo <<<SCRIPT
<script>
$("ul.menu a[href='" + window.location.pathname + "']")
.parentsUntil('.menu', 'li')
.addClass("current_page_item")
;
</script>
<script>
$("ul.sub-menu a[href='" + window.location.pathname + "']")
.parentsUntil('.menu .sub-menu', 'li')
.addClass("current_page_item")
;
</script>
SCRIPT;
return false;
} // END /**/
It doesn't seem to do the trick, but also doesn't break things.
Thanks for trying anyway!
If you move your contact page text to the contact form copy area, then you won't have all that text on the success page pushing the success message down the page.
Ok, that looks like a work around and I will test it out. I could also have an extra contact form page, but I wanted to keep it simple stupid;-)
If you want all that text there, the message can be moved using css positioning. jQuery could probably be used too.
CSS positioning sounds like the way to go. I will google that?
PS: Problem 2, GDPR solved itself;-) I thought there would be a popup like with the cookies and didn't realize that it shows on my contact form.
Still, does backlight use cookies?
And the problem with jumping to the top of the page after sending is not solved, meaning messages are not being read.
No, but you could probably modify it to also affect the sub-menu class
You could probably;-) I certainly am not able to do any of that stuff. I am happy, when I can change some formatting via css now.
So, if any person would be interested to implement that for sub menu....I would be mor than thankful!
Hi,
contact form problem:
The contact form is at the very end of my contact page, since all the required (in Europe) privacy stuff is on there, too.
Now, if somebody fills out the contact form and sends it, he will not see the thank you notice, since that is also displayed at the bottom and the page jumps to the top after sending.
Also, if someone makes a mistake filling out the form and clicks send, he will not see the red warning, since the page jumps to the top after sending. So, he/she will think the form was send but it wasn't. Not good.
How can that be solved? Could there be the option, to display the messages on top? Just like with the Cookie notice? Or is there a css/ phplugins way of handling that?
I don't want to move my contact form on top of the page, because then all the legal stuff comes after it.
Request: I would also like the option of a checkbox with a line that "one agrees to the personal data being send", that has to be checked before sending works.
Most sites have that with their contact forms, even though they already do have the GDPR agreement when first visiting the site. There are some lawyers over here, whose business model is crawling sites that may miss some of that and then make easy money suing them.
GDPR enabled problem:
It doesn't show? I have emptied cache of browser, etc., same in Backlight with cache, but when I load the page, nothing comes up?
When I tried that with the cookie option, that one worked. BTW, is backlight using cookies in any form?
Link to the contact page:
Ok, thanx for the hint, I will try that out later, when I have time.
edit: Had to try it out now and it works! Great, thanks!
Doesn't seem to work for submenus though, I thought that the plugin code also was working on those.
http://testsite.petervogel.com/kontakt/
or did you mean a link to the phplugins file?
Hi,
I had a custom php script for that working under CE4 and now thought, that this feature was implemented in the pangolin php plugins file as
current_page_menu_item
also see:
http://community.theturninggate.net/vie … hp?id=7246
So, for testing, I created a class in my custom css
.current_page_item {color: red}
with the php code enabled:
function scripts() {
echo <<<SCRIPT
<script>
$("ul.menu a[href='" + window.location.pathname + "']")
.parentsUntil('.menu', 'li')
.addClass("current_page_item")
;
</script>
SCRIPT;
return false;
} // END /**/
But it is not doing anything? Any help would be great!
Thanx
Sounds great! Thanxs for the feedback!
This would interest me too, since my provider informed me a couple of month ago, that support for legacy php 5.x versions would cost an extra 9,99 € each month starting in March 2019 (which I find a rip off).
This is what they wrote as far as php support:
PHP 5.6 up to Feb. 2019
PHP 7.0 up to Feb. 2019
PHP 7.1 up to Jan. 2020
PHP 7.2 current
Since my CE4 page will not work any more correctly by March, I dove into BL2 now and really like it so much better than doing everything out of Lightroom. I was also going to add the cart function later on, but if that would stop working by the end of this year, it wouldn't make much sense to go through the hassle of setting it all up.
Info on that would be great!
Thanx
Just for anybody who is interested to know:
The sort order in the albums by "name", "descending name" works fine with sequenced images as long as you use double or triple digit numbering of the images! Lightroom (at least version 6.x that I am still using) doesn't support exporting numbering sequences with double or triple digits. So my work around was to export the images and then rename them with a renaming tool.
This numbering will NOT work correctly, when using the sorting option in an album:
image_1.jpg
image_2.jpg
...
image_10.jpg
etc.
This numbering will do the trick to make it work right:
image_001.jpg
image_002.jpg
....
image_010.jpg
...
image_100.jpg
etc.
Of course, if you have more than 1000 images, you have to start with image_0001.jpg and if you have under 100, then image:_01.jpg is sufficient, too.
Something's not right then. As Rod commented, it should just work by changing the sorting criteria. Can you create a test album that exhibits the ordering problem (if you don't still have one on your server) and provide me with a link and Backlight admin via email?
Hi Ben,
sorry I am so late with this, but I had other stuff to do over the weekend;-)
I sent you an Email with a login and more info.
Thanx!
Well, sorting doesn't seem to work for me.
I deleted all images and uploaded them again. When "lightroom order" is selected, they do display in the order they were uploaded. Still, if image 5 is faster uploading then image 4, 5 will be displayed before 4, which messes up my order.
I tried setting to "name" and "name descending" but that doesn't do anything, on the contrary, it messes up the order completely and it looks like images are displayed at a random order now.
So, I finally uploaded them one by one to get the order I wanted. That is ok for now, but certainly not a great solution for the future.
As I suggested in another post, it would be great to be able to rearrange sorting order in the backend by just dragging the pics around as it can be done in many other backend solutions.
Ok, finally I get the whole problem:
When I open the site with:
http://testsite.petervogel.com
All works fine and as it should.
Now, if I go to another menu like Kontakt or Vita and then go back to the "Home" button, then it does not load:
http://testsite.petervogel.com
but it loads:
http://testsite.petervogel.com/galleries/homepage/
and since there is no copy on that page, it does not show up. So, that only took me 4 hours to figure out and without your help I would still be fishing in the dark.
So, as usual, the problem was sitting between the screen and the chair;-)
I checked my navigation menu and the Home button was linked directly to the gallery "homepage" and not to the page "homepage"!
I changed it now and now copy does show and I can navigate around and go back and it is still there;-)
Time for a beer now....
Yes, I am on the latest version that just came out. I will try to work that out tomorrow.
I just looked at your Home page. There is no text.
If you want text on the home page you need to put it in the Home oage’s Page copy.You also have a hidden album for insertion into the Home page. That’s here: http://testsite.petervogel.com/galleries/homepage/ (could this what you’re looking at?)
That album contains your text. But the text included in that album cannot appear on a page in which the album is inserted. You must add any text to the home page itself.
Ok, now I got it, I was on my homepage and reloading it after changes in the backend and I didn't realize, that it was not on testsite.....com/ but on testsite..com/galleries/homepage already, that is why the copy did show up one time and another it didn't.
Yes, the homepage album is just there for the index page slideshow and not for the galleries. I deleted the copy from this album now and put it back into the (index) page itself and now it does show up, when I load testsite...com.
Thanks!
I deleted it from the (index)"page" and put it in the (homepage) album itself:
Page content->page copy
and selected "replace template page copy"
Now it does show up again on the iMac and iPhone 5s.
your html is out of date for html5:
<center class="homepage-kategorien">Fotografie in den Bereichen:<br>Architektur • Business • Events • Industrie • People • Porträt • Still Life<br>für Werbung, Public Relations und Editorial </center>
This would be better
<p style="text-align:center;" class="homepage-kategorien">Fotografie in den Bereichen:<br>Architektur • Business • Events • Industrie • People • Porträt • Still Life<br>für Werbung, Public Relations und Editorial </p>
Hmm, I changed it now to your code, but still not showing up.
Ok, I think I am in the process of getting it;-) Thanks.
Still something is inconsistent, if the copy sits in a place that is being overridden when inserted into a page, but it does show up on some devices and on others it doesn't.
Now it sits in the copy area of the (home)page and still doesn't show.
skipper wrote:Ok, that doesn't really make sense to me. Why would there be a "main copy" option in the album with the option to display it underneath or above and then you say that the text will not be shown?
So, ok, how do I solve the problem then:
I have a galleria slide show on my index page and want some text underneath it to show?
The reason that there's a main copy option in the album is so that the album can have copy. But it won't appear when inserted in to a page because you may or may not want that copy on the page. Or you may be using the album in other pages and you may not want the same copy on all those pages.
To put text underneath the album on the home put text in copy area of the home page. When inserting the album, place it above the text.
But an album always has to be inserted into a page, right? It can't reside in space;-) I just don't seem to get it, sorry.
Ok, I did insert it now in:
Designer->pages->home->design->page copy
<center class="homepage-kategorien">Fotografie in den Bereichen:<br>Architektur • Business • Events • Industrie • People • Porträt • Still Life<br>für Werbung, Public Relations und Editorial </center>
And it does not show for me. Why?
Ok, there are basically three places where I could paste the text:
1. as you stated in the "page" (doesn't seem to work)
2. in the very album - There is an option to replace the page text with that one?¿ which I did not see and use before
3. In the album template (that is where I had it and it did not always show up, but sometimes it did)