First of all: the target page itself has some errors:
Code: Select all
<__script__>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR_APP_ID', // App ID
channelUrl : 'http://http://www.facebook.com/Papageienpark.Bochum' // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
Double 'http://' and probably you need to escape those '//' because Javascript interprets them as comment
Code: Select all
http:\/\/www.facebook.com/Papageienpark.Bochum'
404 error on
Code: Select all
<__script__ type="text/javascript" src="modules/Gallery/templates/jquery/jquery.mousewheel.pack.js"></__script>
Furthermore, jQuery library is not included anywhere as far as I can see.
About the conditional Gallery calls: I think it doesn't work because the Gallery module will completely 'replace' the {content} tag with his own contents. This would mean that you have to do your logic in the Gallery templates.
I once did something like you want I guess. It does NOT involve another target page alias. In your case it would show the photo's on the home page.
I created two templates within Gallery
Template 'gallerytree2':
Code: Select all
<div id="projecten"><ul>
{foreach from=$images item=image name=img}
{if $smarty.foreach.img.index == 0}{assign var="org_gallerydir" value=$gallerydir}{/if}
{Gallery dir="projecten/`$org_gallerydir`/`$image->filename`"}
{/foreach}
</ul></div>
This template will walk through the images of (sub)galleries and everytime it finds an image with index == 0 it will the Gallery module again. Because the inner Gallery call has no template parameter, it uses the default tempate for that:
Template 'gallerytree' (set as default template!):
Code: Select all
{foreach from=$images item=image name=img}
{if $smarty.foreach.img.index > 0}</li>
{/if}
<li{if $smarty.foreach.img.index > 0} class="hide"{/if}><a class="fancybox-thumbs" data-fancybox-group="thumb{$galleryid}" id="fototekst" title="{$image->comment}" href="{$image->file}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="">{if $smarty.foreach.img.index == 0}<span>{$gallerytitle}</span>{/if}</a>
{assign var='g_prevdepth' value=$image->depth}
{/foreach}
</li>
{if $gallerycomment}
<li class="hide"><a class="fancybox-thumbs" data-fancybox-group="thumb{$galleryid}" href="#inline{$galleryid}"><img src="{uploads_url}/template/images/txt.jpg" alt="" />Extra informatie</a></li>
<li><div id="inline{$galleryid}" style="width:800px;display: none;">{$gallerycomment}</div></li>
{/if}
Then, in the page content I call the Gallery with template 'gallerytree2'
Code: Select all
{Gallery dir="projecten/klassiek" template="gallerytree2"}
You might want to use the 'number' parameter here and of course another starting directory.
Of course you should alter this code to suite you needs but I guess it could get you in the right direction.
I just saw the <div> inside the <li> in the last template, which I think is not valid html. But again, this example could point you in the right direction.