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.
Don, just to double check: you used the API Username and API Password when you set up PayPal in Backlight and didn't use your PayPal login credentials. Correct?
The concept of different templates is one that I have been using since the 90s, so that is easy, and I ahve started along that path.
I have been watching Matthew's YouTube (don't know how I missed that in my searches before), but when I go to our website and I click on Contact or About, I get
OOPS! THAT PAGE CAN’T BE FOUND.
I am not sure how I achieved that! How do I get those back so they at least look the way Matthew's do before any design changes I might make?
There are some benefits to do this type of work in a sub-domain so we can see what you are doing.
I shortened the file attributes to less than 48 characters for the trial in the test album https://www.rainerhassmann.de/galleries/Test-Prag/ and it worked. However, there was also an image in the album that previously had less than 48 characters (39) in the file attribute and still produced the error in another album. Hhmm ....
should it be less than 39 characters? Where is the limit?
The short term solution is to put following code into your existing photoart.css file.
.main__column { min-width: 0; }A permanent fix will come with the next release. Since Matt has found the solution for the issue you discovered, there is no need to change the length of the description!
That's interesting Daniel. What's weird is that these albums are of the same template.
It's going to be interesting to find out what the ultimate cause is.
I wonder if anybody else is seeing this.Looking around my test site, I've found at least one album that's exhibiting the same issue. Your css fixes it for me.
It seems to have something to do with the length of the image attribute:
<ul class="image_metadata">
<li>Lorem ipsum dolor sit amet, consectetur lorem i</li>
</ul>47 characters are okay, 48 start to change the look. Adding many more characters increases the size of the thumbnails.
Hi Matt,
When I disable nowrap, the page seems to look correct. Note, this is only visible with a small browser width:
ul.image_metadata li {
white-space: nowrap;
}Hallo Rainer, you might want to try to add
ul.image_metadata li {
white-space: initial;
}to your photoart.css file. Please note that this is only a workaround waiting for a better solution ![]()
Make sure that the page_match variables match your url setup.
Daniel’s code calls for the url to be /services.php.
Your site looks like it’s set up so the url in the page_match variable would be /services/ (or services/index.php)
As always, Rod has eyes of an eagle.....
If you go to https://markhoffmanphotography.com/services.php, breadcrumbs show!
So best is, to match for /services in order to catch both cases.
Backlight provides the option to use breadcrumbs on all gallery pages to simplify navigation. I like to have a common look and feel of my site and prever to have breadcrumbs on all pages. Thanks to phplugins, this is something that can easily be done.
First I use some helper functions to keep my code clear and legible:
function page_match($gallery) {
if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
return 1;
} else {
return 0;
}
}
function ttg_crumb( $page_name ) {
echo '<ul class="breadcrumbs"><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></li><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">'. $page_name .'</span></li></ul>';
}Breadcrumbs are located at the top of the 'main' section. So I use ttg_main_top to insert them:
function ttg_main_top( $style, $path ){
// Add breadcrumbs to non-gallery pages
if ( page_match('/about') ) {
ttg_crumb('About');
} elseif ( page_match('/contact') ) {
ttg_crumb('Contact');
} elseif ( page_match('/backlight/search') ) {
ttg_crumb('Search');
} elseif ( page_match('/xxxx') ) {
ttg_crumb('Xxxx');
}
}If you have other pages on your site, just add them in another 'elseif' branch. All this code belongs into your custom phplugins file.
You find a bit more about phplugins in the documentation at http://backlight.theturninggate.net/doc … _phplugins.
With CE4, G_STYLE could be used to insert page specific PHP code using phplugins. With Backlight, this is no longer possible. But there is a simple way around that:
First I need a simple helper function to keep my code clear and legible:
function page_match($gallery) {
if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
return 1;
} else {
return 0;
}
}And then I use this function to match specific pages:
function ttg_main_top( $style, $path ){
if ( page_match('/about') ) {
echo '....';
} elseif ( page_match('/contact') ) {
echo '....';
} elseif ( page_match('/galleries/') ) {
echo '....';
} elseif ( page_match('/backlight/search') ) {
echo '....';
}
}As you can see, this can be used to select a single page or several pages on a lower level (eg, galleries) and then introduce page specific code. On my site, I use this add breadcrumbs to my standard pages.
All this code belongs into your custom phplugins file.
You find a bit more about phplugins in the documentation at http://backlight.theturninggate.net/doc … _phplugins.
Something strange is going on here....
I'm in Google Chrome and set the window width to 540px, both for the Prag and Venedig albums.
When I check the calculated parameters for '<div 'class="page__column main__column spinal__column">'', Prag is 604.188px wide and Venedig is the expected 540px. So Prag is wider than the viewport....
The width of the thumbnails is derived from the above width and therefore all numbers are off. Looks like this is the cause for this difference. But I have no idea why this is happening. Both galleries use the same template and CSS.
Here would be the description on how to create a new top-level gallery: http://community.theturninggate.net/vie … hp?id=6366
Is it possible to have it point to a page in the site or just the home page?
Also, how do I put this in htaccess or html or php?
Thanks
-Herschel
You can do either. Just google it and you will find several options.
It seems like you are pointing several domains to the same Backlight installation. AFAIK, this doesn't work.
Each domain needs its own installation. But you can put a redirect (either html, php, htaccess) in the root directory of your secondary domains (eg, rt-66.com) and point it to the target location (eg http://caddinfo.com/photo-now-backlight … route-66/). This way one installation works for all.
cool Daniel, that's handy. You should add that to the Tips and Tricks forum
Thanks, I'll do.
Edited: Here we go http://community.theturninggate.net/vie … 201#p51201
I use a simple function to match a specific page:
function page_match($gallery) {
if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
return 1;
} else {
return 0;
}
}And then I used like this
function ttg_main_top( $style, $path ){
// Add breadcrumbs to non-gallery pages
if ( page_match('/about.php') ) {
ttg_crumb('About');
} elseif ( page_match('/contact.php') ) {
ttg_crumb('Contact');
} elseif ( page_match('/backlight/search') ) {
ttg_crumb('Photo Search');
}
}Hi Lynne,
Yep, that's something I wanted too and I have added it using phplugins:
First some helper functions that don't need any modifications:
function page_match($gallery) {
if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
return 1;
} else {
return 0;
}
}
function ttg_crumb( $page_name ) {
echo '<ul class="breadcrumbs"><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></li><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">'. $page_name .'</span></li></ul>';
}ttg_main_top that adds the breadcrumbs to the missing pages. If you need the breadcrumbs on other pages, just add them in another elseif branch:
function ttg_main_top( $style, $path ){
// Add breadcrumbs to non-gallery pages
if ( page_match('/about.php') ) {
ttg_crumb('About');
} elseif ( page_match('/contact.php') ) {
ttg_crumb('Contact');
} elseif ( page_match('/xxxx.php') ) {
ttg_crumb('Xxxx');
}
}All these functions belong into your custom phplugins file.
But, the whole menu pallet is a bit low.
This is because of this generic css in luc-fr.css:
div {
height: 200px;
...You should be more specific with your css code.
There is an error in your css. The h2 tags are not correct.
This happens when using virtual copies.
Your link refers to Okapi modules, don't think that is the right place to look.
My link refers to an answer Ben gave to another user that had the same error message. Ben's link goes to Okapi standard modules which start with the name 'standard'.
Nope. Just checked, and it is still there.
How about the standard modules? (http://community.theturninggate.net/vie … 494#p50494)
same problem here and #25 does not solve the problem either (apart from the fact that 'dynamics' should be 'dynamic').
I guess you mean #24. Just double checking that you cleared the template cache. Sorry, don't thind a reference to 'dynamics'.
Do you have a link to your gallery that shows the error?
Ahhh, yes! I now have a working test.
Good catch - my installation of PHP7 doesn't have short tags enabled, which would account for the borkage.
Now all I need is the time to configure it!
Many thanks, Daniel
![]()
I think I found the culprit: Open the file /backlight/modules/pangolin-galleria/dynamic/js/galleria-pangolin.php in an editor and change line 14 from
<?to
<?phpThen clear the template cache (http://yourdomain.com/backlight/designer/?a=clear_cache).
It seems like different opening and closing tags for php can be used, but only if the platform is configured for it. It looks like this was the case for all beta testers ![]()
The error is now on line 35
Could you post the entire error message please?
Also tried the fix and it did not work. The publisher plugin is the latest. Also re copied just to check prior to republishing. Sorry cannot provide a link as my workflow involves a local website prior to uploading in case of issues like this
Did you clear the template cache after modifying the file http://yourdomain.com/backlight/designer/?a=clear_cache