Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#151 Re: Backlight Support » Metadata after changing to Pangolin » 2017-08-16 06:52:39

Metadata 1 is turned on, token is {Caption}. Push Metadata without updating existing photos.
Now I cannot find a mistake of mine.

Rainer

#152 Re: Backlight Support » Fancybox Slideshow » 2017-08-16 05:00:30

@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

#153 Re: Backlight Support » Metadata after changing to Pangolin » 2017-08-16 04:32:15

It is {Caption}.

You can use each album of my website below.

Rainer

#155 Re: Backlight Support » Metadata after changing to Pangolin » 2017-08-16 03:34:21

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

#157 Re: Backlight Support » Make the footer text & the slideshow title/caption size bigger? » 2017-08-13 01:02:24

Edit: In your custom css file:

.copyright {
	font-size: 0.9375rem;
}
.fancybox-caption-collapsible .fancybox-caption {
    font-size: 0.9375rem;
}




Rainer

#158 Backlight Support » Fancybox Slideshow » 2017-08-11 22:35:38

Rainer Goergen
Replies: 15

Hi, is there a way to increase the duration of the slides during slideshow?

Rainer

#159 Re: Backlight Support » Slideshow in masthead » 2017-08-10 01:43:25

Found it and I will test it.

Rainer

Edit: How can I place the menu bar under the slideshow?

#161 Backlight Support » Slideshow in masthead » 2017-08-09 02:28:20

Rainer Goergen
Replies: 5

Hi, is it possible to place a slideshow in the masthead? Or maybe  in a future version of Backlight?

Rainer

#163 Re: Backlight Support » Pangolin Album Height » 2017-08-08 17:30:34

Thanks for your help and information.

Rainer smile

#164 Re: Backlight Support » Pangolin Album Height » 2017-08-08 06:11:53

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 hmm
Try and error, this is Pangolin for me. roll

Rainer

#165 Re: Backlight Support » Pangolin Album Height » 2017-08-08 02:58:21

Don't understand this settings - 3:1 ? I know what aspect ratio is, but I do not know the changes of what?

Rainer

#166 Re: Backlight Support » Pages - change from Okapi to Pangolin » 2017-08-08 01:42:00

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

#167 Re: Backlight Support » Pages - change from Okapi to Pangolin » 2017-08-07 16:20:35

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

#169 Re: Backlight Support » Search result with more than one site » 2017-08-07 08:47:36

Yes you are right. I have only noticed it. If it is normal it is ok.

Rainer

#170 Re: Backlight Support » Pangolin Album Height » 2017-08-07 08:32:15

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

#171 Backlight Support » Search result with more than one site » 2017-08-07 08:24:44

Rainer Goergen
Replies: 2

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

#173 Re: Backlight Support » Selector Okapi - Pangolin may be new » 2017-08-07 07:57:04

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

#174 Backlight Support » Selector Okapi - Pangolin may be new » 2017-08-07 07:38:16

Rainer Goergen
Replies: 5
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

#175 Re: Backlight Support » Pages - change from Okapi to Pangolin » 2017-08-07 06:11:12

Thanks, now I understand what you've meant.

- done -

Rainer

Board footer

Powered by FluxBB