Gallery Modul - Bild in Content zeigen

Hilfe zu Modulen und Tags
brandy
Forum Members
Forum Members
Posts: 146
Joined: Mon Apr 21, 2008 5:32 pm

Gallery Modul - Bild in Content zeigen

Post by brandy »

Hallo!

Wie der Titel schon sagt - kann ich beim Klick auf ein Bild einer Gallerie, das Bild selbst im Contentbereich anzeigen lassen?

Vielen Dank für eine Antwort!

lg
nockenfell
Power Poster
Power Poster
Posts: 751
Joined: Fri Sep 12, 2008 2:34 pm
Location: Schweiz / Switzerland

Re: Gallery Modul - Bild in Content zeigen

Post by nockenfell »

Du meinst anstelle der Lightbox das Bild direkt im Content drin anzeigen?

Soweit ich das Module bisher kenne, ist das glaube ich nicht möglich.
[this message is written with 100% recycled bits]
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Gallery Modul - Bild in Content zeigen

Post by Rolf »

brandy wrote: Wie der Titel schon sagt - kann ich beim Klick auf ein Bild einer Gallerie, das Bild selbst im Contentbereich anzeigen lassen?
Vielleicht die neue AD-Gallery template... http://dev.cmsmadesimple.org/project/files/726
(http://coffeescripter.com/code/ad-gallery/)

Gruss, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
brandy
Forum Members
Forum Members
Posts: 146
Joined: Mon Apr 21, 2008 5:32 pm

Re: Gallery Modul - Bild in Content zeigen

Post by brandy »

Naja möchte nur beim Klick eine Ausgabe im Content, ohne jeglicher LightBox... Funktioniert das mit dem ImageGallery-Tag?
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery Modul - Bild in Content zeigen

Post by Jos »

Was Rolf angegeben hat kannst du machen mit das Gallery Modul.

Die AD-Gallery template ist nagelneu und muss du noch extra dowmloaden. Sehe ganz unten auf http://dev.cmsmadesimple.org/project/files/726
brandy
Forum Members
Forum Members
Posts: 146
Joined: Mon Apr 21, 2008 5:32 pm

Re: Gallery Modul - Bild in Content zeigen

Post by brandy »

Und wie bearbeite ich nun das Template, dass das Bild einfach nur angezeigt wird? Momentan schauts so aus: http://www.ago-einrichtung.at/cms

Vielen Dank
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery Modul - Bild in Content zeigen

Post by Jos »

Das ist nicht mit dem Gallery Modul gemacht, wie ich es jetzt sehe  :-X
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Gallery Modul - Bild in Content zeigen

Post by nicmare »

Jos wrote: Das ist nicht mit dem Gallery Modul gemacht, wie ich es jetzt sehe  :-X
sicher?
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery Modul - Bild in Content zeigen

Post by Jos »

ja sicher  8)
brandy
Forum Members
Forum Members
Posts: 146
Joined: Mon Apr 21, 2008 5:32 pm

Re: Gallery Modul - Bild in Content zeigen

Post by brandy »

Last edited by Anonymous on Wed Mar 17, 2010 10:11 pm, edited 1 time in total.
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Gallery Modul - Bild in Content zeigen

Post by nicmare »

@Jos, meine Frage ist gleichzeitig ein Link :D
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery Modul - Bild in Content zeigen

Post by Jos »

Nicmare, entschuldigung, das hatte ich nicht gesehen.

Brandy, du kannst eine neue Gallery template machen, mit im Feld "template source"

Code: Select all

<div class="gallery">
{if !empty($module_message)}<h4>{$module_message|escape}</h4>{/if}
{if !empty($gallerytitle)}<h3>{$gallerytitle}</h3>{/if}
{if !empty($gallerycomment)}<div class="gallerycomment">{$gallerycomment}</div>{/if}
<p>{$imagecount}</p>
<div class="pagenavigation">
{if $pages > 1}
<div class="prevpage">{$prevpage}</div>
<div class="nextpage">{$nextpage}</div>
{/if}
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{if $pages > 1}<div class="pagelinks">{$pagelinks}</div>{/if}
</div>

{foreach from=$images item=image}
	<div class="img">
	{if $image->isdir}
		<a href="{$image->file}" title="{$image->title}"><img src="{$image->thumb}" alt="{$image->title}" /></a><br />
		{$image->title}
	{else}
		<img src="{$image->file}" alt="{$image->title}" />
	{/if}
	</div>
{/foreach}
<div class="galleryclear"> </div>
</div>
Und lössche im Feld "Template CSS-stylesheet" alles nach .galleryclear { clear: both; }
Und mach Feld "Template JavaScript" leer.

Ist das was du vor hast?
brandy
Forum Members
Forum Members
Posts: 146
Joined: Mon Apr 21, 2008 5:32 pm

Re: Gallery Modul - Bild in Content zeigen

Post by brandy »

Naja schätze, dass es das ist was ich will, jedoch gibt er mir dann gleich die erste Anzeige anders aus. Ich will, dass er mir zuerst nur die Thumbnails anzeigt und beim Klick dann im Content öffnet - funktioniert das vielleicht mit dem ImageGallery Modul besser?

Vielen Dank
NaN

Re: Gallery Modul - Bild in Content zeigen

Post by NaN »

Eigentlich brauchst Du nur ein Galerie Template welches beim Klick auf eines der Thumbnails nicht das Fancybox Javascript ausführt, sondern ein eigenes auf Deine Seite abgestimmtes Script.
Ändere mal in Deinem Seitentemplate

in

in

(dann kann man die Elemente im Javascript über die ID besser ansteuern)
Nimm also ruhig wieder das alte Gallery Template, aber ändere das Javascript folgendermaßen:

Code: Select all


<__script__ type="text/javascript">
$(document).ready(function() {

	var origContent = $("#content").html();

	$("#content_left div.gallery a.group").click(function() {
		var src = $(this).attr('href');
		$("#content").html('<img id="gallery_content_img" src="'+src+'">');
		$("#gallery_content_img").click(function() {
			$("#content").html(origContent);
		});
		return false;
	});
});
</__script>

Das sollte eigentlich alles gewesen sein.
brandy
Forum Members
Forum Members
Posts: 146
Joined: Mon Apr 21, 2008 5:32 pm

Re: Gallery Modul - Bild in Content zeigen

Post by brandy »

Jetzt siehts so aus:

www.ago-einrichtung.at/cms

lg
davidb
Post Reply

Return to “Module und Tags”