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.
Metadata 1 is turned on, token is {Caption}. Push Metadata without updating existing photos.
Now I cannot find a mistake of mine.
Rainer
@Rod
It works, set it for testing to 14000.
<?php defined('APP_DIR') or die('No direct script access allowed in ' . __FILE__); ?>
$('[data-fancybox=gallery]').on('click', function(e) {
<?php if ( $model->value('photos_for_download.source') != 'disabled' ): ?>
/**
* CMD/CTRL-Click to Download Image
*/
if( e.ctrlKey || e.metaKey ){
var href = $(e.target).closest('figure').find('.download_image').attr("href"),
path = href.split('file=')[1],
url = (
getMobileOperatingSystem() == 'Android' ||
getMobileOperatingSystem() == 'iOS' ||
getMobileOperatingSystem() == 'Windows Phone'
) ? path : href,
a = $('<a />').attr({ 'href' : url, 'target' : '_blank', 'download' : '' }).appendTo("body");
;
a[0].click(); a.remove();
}
else {
<?php endif; ?>
/**
* +Fancybox Gallery
*/
var visibleLinks = $('[data-fancybox=gallery]:visible, .page-navigation-notice');
$.fancybox.open( visibleLinks, {
animationEffect : <?php echo $model->value('slideshow.animationEffect') == 'disabled' ? 'false' : '\'' . $model->value('slideshow.animationEffect') . '\'' ?>,
slideShow : {
autoStart : false,
speed : 14000
},
animationDuration : 350,
baseClass : 'fancybox-pangolin-album',
loop : <?php echo $model->on('slideshow.loop') ? 'true' : 'false' ?>,
margin : [ 6 , 6 ],
transitionEffect : <?php echo $model->value('slideshow.transitionEffect') == 'disabled' ? 'false' : '\'' . $model->value('slideshow.transitionEffect') . '\'' ?>,
transitionDuration : 350,
trapFocus: <?php echo (__c('FOTOMOTO_STORE_ID') && $model->value('addon_feature') == 'fotomoto') ? 'false' : 'true' ?>,
zoomOpacity : true,
onInit : function( e, instance ) {
//console.log( $.fancybox.getInstance() );
},
lang : 'en',
i18n : {
'en' : {
CLOSE : '<?php echo __t('loc.fb.close', 'Close (Esc, X)') ?>',
NEXT : '<?php echo __t('loc.fb.next', 'Next (right arrow)') ?>',
PREV : '<?php echo __t('loc.fb.prev', 'Previous (left arrow)') ?>',
ERROR : '<?php echo __t('loc.fb.error', 'The requested content cannot be loaded. <br/> Please try again later.') ?>',
PLAY_START : '<?php echo __t('loc.fb.play', 'Start Slideshow (P)') ?>',
PLAY_STOP : '<?php echo __t('loc.fb.pause', 'Pause Slideshow (P)') ?>',
FULL_SCREEN : '<?php echo __t('loc.fb.fullscreen', 'Full-screen (F)') ?>',
THUMBS : '<?php echo __t('loc.fb.grid', 'Thumbnails (G)') ?>'
},
}
}, visibleLinks.index( this ) );
/**
* -Fancybox Gallery
*/
<?php if ( $model->value('photos_for_download.source') != 'disabled' ): ?>
}
<?php endif; ?>
return false;
}); // $('[data-fancybox=gallery]').on()
$(document).on('afterKeydown.fb', function(e, instance, current, keypress, keycode) {
// "Z"
if ( !keypress.ctrlKey && !keypress.metaKey && keycode === 90 ) {
keypress.preventDefault();
instance.isScaledDown() ? instance.scaleToActual() : instance.scaleToFit();
}
// "X"
if ( !keypress.ctrlKey && !keypress.metaKey && keycode === 88 ) {
keypress.preventDefault();
instance.close();
}
});Rainer
It is {Caption}.
You can use each album of my website below.
Rainer
Thanks I will test it.
Rainer
Now, at home, I have republished all metadata again, but they will not appear under the thumbnails.
In Pangolin Album Template it is {caption} like in Okapi Album Template.
???
Rainer
Edit: In your custom css file:
.copyright {
font-size: 0.9375rem;
}.fancybox-caption-collapsible .fancybox-caption {
font-size: 0.9375rem;
}Rainer
Hi, is there a way to increase the duration of the slides during slideshow?
Rainer
Found it and I will test it.
Rainer
Edit: How can I place the menu bar under the slideshow?
Hi, is it possible to place a slideshow in the masthead? Or maybe in a future version of Backlight?
Rainer
Works, thanks Rod.
Rainer
Thanks for your help and information.
Rainer ![]()
No matter what the size of the thumbnail?
It is a pity that there is no documentation of all preferences in new Pangolin. Try to translate gutters to German. Don't know what this means ![]()
Try and error, this is Pangolin for me. ![]()
Rainer
Don't understand this settings - 3:1 ? I know what aspect ratio is, but I do not know the changes of what?
Rainer
Ok, noch nie was von markdown language gehört. Wollte nur die perfekt formatierte Indes Seite haben. Ist sowieso nur Spielerei und Hobby, da sich sowieso niemand für meine Seite interessiert. Macht jedenfalls Spass sich mit dem ganzen Programmieren rum zu schlagen.
Jetzt muss ich auch noch Dein Posting uebersetzen um die Fachausdruecke genau zu verstehen.
Edit: Done
You are right and I will change my programming. But I wanted absolutely first the same design in Backlight like my old Homepage. So I was able to learn a lot of programming.
Gruesse aus Trier,
Rainer
Thanks Matt, seems so. It was only for my old index page to format it for pangolin with all grafics and colors. When Rod says, that there are errors in the code for html 5, I tried to fix it. And now it is done.
Rainer
Yes you are right. I have only noticed it. If it is normal it is ok.
Rainer
Same by me. I have hidden albums with no custom thumbnail. The thumbnails change every time I update the browsers site. There are various sizes. The album changes the heights depending on the heights of the thumbnails. This was not so in Okapi. I am wondering too.
Rainer
I have noticed that if there is a search result over more than one site and you start a slideshow view, the slideshow stops after the last image of the first site or - if you start the slideshow at an other site, always after the last image of this site.
Rainer
I will, but tomorrow.
Thanks
After a search the result is displayed. Is it more than one site, you see the numbers of the sites right above the results. And there are arrows vor the next or the previous sites. If you are on the first site, the arrow to the previous site is displayed, but inactive. The same if you are on the last site, the arrow to the next site is displayed, but inactive. This code in Okapi doesn't show the arrows, if inactive. But it works not in Pangolin.
Rainer
ul.page-navigation li.next.disabled > *::after {
display: none; /* Wenn letzte Seite des Suchergebnisses erreicht wird, wird der Pfeil fuer die naechste Seite nicht mehr angezeigt */
}
ul.page-navigation li.previous.page-link.disabled > *::after {
display: none; /* Auf der ersten Seite des Suchergebnisses wird der Pfeil fuer die vorherige Seite nicht mehr angezeigt */
}This was old css code in Okapi, but does not work in Pangolin. I cannot find any difference.
Is there a new selector?
Thanks, Rainer
Thanks, now I understand what you've meant.
- done -
Rainer