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.
I already checked the vegas_js file (as seen in a previous response) and the slideshow segment looks like this:
<script>
var slideshow = '<?php echo $model->value('presentation.vegas.type') == 'full-screen' ? '.background__album' : '.gallery' ?>';
$(slideshow).vegas({
autoplay: <?php echo $model->value('presentation.vegas.controls') && ! $model->value('presentation.vegas.autoplay') ? 'false' : 'true' ?>,
color: '<?php echo $model->value('presentation.bgcolor') ? $model->value('presentation.bgcolor') : $model->dynamicValue('colorBase') ?>',
cover: <?php echo $model->value('presentation.vegas.cover') == 'repeat' ? '\'repeat\'' : ($model->value('presentation.vegas.cover') == 'cover' ? 'true' : 'false'); ?>,
delay: <?php echo $model->value('presentation.vegas.delay') ?>,
overlay: <?php echo $model->value('presentation.vegas.overlay') != 'none' ? '\''.$this->getLocalURL().'static/images/'.$model->value('presentation.vegas.overlay').'.png\'' : 'false' ?>,
shuffle: <?php echo $model->on('presentation.vegas.shuffle') ? 'true' : 'false' ?>,
timer: <?php echo $model->on('presentation.vegas.timer') ? 'true' : 'false' ?>,
transition: '<?php echo $model->value('presentation.vegas.transition') ?>',
transitionDuration: 6000,
slides: [<thp>echo $slides</thp>],
init: function (globalSettings) {
You can see that the transition duration is set to 6000 and not 4000 as displayed on the home page.
Further, I checked index, download, lib, single php files as well as the gallery.xml file to no avail.
Since I can see the offending script in the inspector (see the image in previous reply), where is that html code?
This is my phplugin file:
<?php
function user_load($style, $path) {
$g_tsvrl = explode(' ', $style); // Extract gallery type
define ('G_STYLE', strtoupper($g_tsvrl[1])); // and set global for later
$g_path = str_ireplace('\\','/',$path); // change \ to /
$chunks = explode('/',$g_path); // and put into array
define ('G_PATH', strtoupper($chunks[count($chunks)-2])); // gallery folder name is second to last
//define ( 'TTG_SITE', ''); // set new site root for navigation, resources, etc.
}
if (defined('BACKLIGHT_HOOK')) {
require_once(realpath(BACKLIGHT_HOOK).'/modules/module-designer/application/helpers/APHPlugins.php');
}
class PHPlugins extends APHPlugins
{
/* breadcrumbs */
function page_match($gallery) {
if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
return 1;
} else {
return 0;
}
}
/* Replace the mobile menu icon with the word "Menu" */
function scripts () {
echo'
<script>
$(".page__toggle__buttons label ul").replaceWith("<p>Menu</p>");
</script>
<script>
jQuery(document).ready(function($){
$(\'#search form\').find("input[type=text]").each(function(ev)
{
if(!$(this).val()) {
$(this).attr("placeholder", "Placer le terme de recherche entre des guillemets");
}
});
});
</script>
';
}
/* Display the logo in pallet_top */
function pallet_top_title () {
echo '
<li class="top-pallet-logo"><a href="https://pideja.ca/"></a></li>
';
return false;
}
} ?>
I can't find any reference to that script. Even checked CSS and, as you know, the vegas_js script.
As per suggested here: https://ttg-tips-and-tricks.barbeephoto … ide-shows/, I checked the vegas_js.php file and the transitionduration is set to 6000 so I don't know where that script displayed on the Home page comes from.
So, if the marccharlebois.com is still CE3, does this mean...redesign and re-publish? There is no upgrade possible?
I don't think so...where would I have done that? In Backlight>Designer>Templates>introduction>Design>Presentation I have selected Vegas slide show with a slide delay of 5000ms. If I did hack the code, I don't remember how or where.
Received the notice today and successfully updated my sites save one: marccharlebois.com; when I try to get to http://www.marccharlebois.com/backlight I get a 404 error. Same if I try marccharlebois.com/fr/backlight or marccharlebois.com/en/backlight
Could it be that these pages are still OKAPI? Why can't I reach Backlight?
I commented the line and...no change! So, one less line to clutter my code.
Merci!
Based on your excellent suggestion, I tailored the code to read:
/* Top pallet (bannière en image de fond sur portable) */
.top-pallet-logo {
background-image: url("https://pideja.ca/backlight/designer/page/image/9"), url("https://pideja.ca/backlight/designer/page/image/24");
background-repeat: no-repeat;
background-position: 15px, 65px;
float: none;
height: 38px;
width: 100%;
}
I now have the logo on the left, but not hugging the limits of the page. And, the nameplate is centred. It's still a bit low and small but, why quibble. I probably will make one a tad larger...
Also, now that the position is specified, do I really need the float command?
Thanks for the help!
Chose
.top-pallet-logo {
background-image: url("https://pideja.ca/backlight/designer/page/image/9"), url("https://pideja.ca/backlight/designer/page/image/27");
background-repeat: no-repeat, no-repeat;
background-position: 150px, center;
height: 48px;
width: 100%;
}
The logo looks pretty good on the wide display; looks very good at 1440px wide; disappears on the Mobile phone (thats fine).
Thanks again.
Thanks, Rod
I did not place two "no-repeat" instructions. I didn't think I should. And the width at 100% now that's good.
But, If I want to position the logo, more to the center, in a mirror position to the "menu", should I use the margin or padding instructions?
Back with more Top Pallet woes...
Still working on pideja.ca and I had already a "nameplate" in the centre of the Top Pallet. I now tried adding a logo in the same Top Pallet but this time left-aligned.
Using this php:
function pallet_top_title () {
echo '
<li class="top-pallet-logo"><a href="https://pideja.ca/"></a></li>
';
return false;
}
} ?>
witch works, so I tried adding the logo in CSS like this:
/* Top pallet (bannière en image de fond) */
/* Pierre Desjardins photographe */
.top-pallet-logo {
background-image: url("https://pideja.ca/backlight/designer/page/image/27");
background-repeat: no-repeat;
float: centered;
height: 48px;
width: 316px;
}
/* logo */
.top-pallet-logo {
background-image: url("https://pideja.ca/backlight/designer/page/image/9");
background-repeat: no-repeat;
float: left;
height: 48px;
width: 30px;
}
li.top-pallet-logo a {
display: block;
height: 75%;
width: 75%;
}
Evidently something is wrong here because now, the logo shows up (albeit not the right position, but that wil be changed) but not the nameplate!
What's wrong with my code?
Thank you, Rod, Daniel and Ben,
After closely reviewing all the metadata and keywords in LR, all now seems quiet on the search front. Searching using the form + theatre "+season year span" now seems to work.
I tried multiple seasons but that was pushing it a bit.
As of this morning, these work well:
+Duceppe "+2018-2019"
or
+Rideau "+2018-2019"
but not
+TNM "+2018-2019"
Must be how the metadata or keywords are written for this theater, probably in LR.
UPDATE: found quite a few errors in the way the keywords are attributed in LR. I'll get back once everything is sorted out...
Rod wrote:
Remember too, file names are included in Search.
The problem with that is that the file naming system I use is somewhat difficult to remember for someone looking for a specific image. As an example, an image from the TNM production of Hamlet staged during the 2010-2011 season has the name TNM110308-6656 .
Most search I anticipate will be done by Theater, by Season or years, by Author, by any of the people named in the credits... One might want to find sets designed by Richard Lacroix by searching for "Richard "Lacroix" and it would return the production of Hamlet. Most of these queries work rather well up to now. It's when asking for a specific season that mistakes crop up.
I changed the season denominations from 2018-2019 to 2018/2019 as a trial and tried a search this way: « +TNM +2018-2019 » and also this way: « +TNM » « +2018/2019 » but both d’ailes.
I am in the process of reviewing everything, metadata, keywords and republishing all. I will try variants of how I name things until it works. It's got to work.
Tried to change all season names from using the "-" to using the "/" like 2009-2010 becomes 2009/2010
No change. If I ask
+TNM +"2010/2011" or "+duceppe +"2010/2011"
I get multiple shows on multiple dates.
Problem is, many activities that have seasons piggybacking two years have a tendency to name their periods of activity in this manner (Repertory Theatre of St. Louis Announces 2020-21 Season). Got to find a satisfactory replacement for that nomenclature.
Thanks, Ben...so, if I have further questions, I'll know who to contact. But first, read the suggested link and experiment.
But, I can already indicate that using
+TNM +"2018-2019"
with or without " ", will yield many productions of different years or this
+TNM +2018-2019
will yield no results. But this
"+ 2018-2019" +"TNM"
displays the correct years but multiple theatres and not all productions.
I will double-check how the metadata and keywords are written in LR. Maybe that's where things get awry...
Any way to get all that info directly in Backlight?
Thanks Daniel and Jim, precious information that I was nor aware of. One problem would be that theater seasons are typically referred to as "Saison 2019-2020" (meaning the 2019-2020 season).
Great attention must be paid when assigning keywords, titles and dates.
Back to setting up the SEARCH function in pideja.ca.
Works great with single word queries. But, for multiple entries, the SEARCH will return errors. As an example:
search: TNM will return all shows produced by this theater; search: 2019-2020 will return all shows, by all theaters for the 2019-2020 season; but, this search:TNM + 2019-2020 returns many shows from mutliple theaters and multiple seasons!
I've tried using "" "" but no better results. Keywords in Lightroom are: TNM, Saison 2019-2020, name of show for each image of each show of that season.
Frankly, I'm at a loss here.
I got the GALERIES breadcrumb to appear, but now I have two!
Considering abandoning this project. All it does is get one back to HOME. If this was a gigantic site (and it might be, someday) I might need this, but for now, I think I'll comment out the php code and save it for later.
Thank you Daniel, sorry to have wasted your time.
this line caused a problem:
} } else if (strtolower($this->slug) == 'contact') {
so I changed it to:
} else if (strtolower($this->slug) == 'contact') {
and it seems to work.
Why no breadcrumbs on the RECHERCHE and GALERIES pages?
All this might be overkill. I'm trying to make it so that when anywhere on the site, one could go to another page without going to the MENU button.