risingisland
sorry for the delayed response - vacation :-)
as already written, a self-created TV did not work. The content was not displayed.
So I used the "normal" [* introtext *]
TV to add text to the gallery.
So for the single gallery page:
...
[* introtext *]
<div class = "gallery">
[! sgLister?
& display = `10`
& orderBy = `sg_title ASC`
& tpl = `@ CODE:
<a class="thumbnail" href="[(base_url)][+sg_image+]" data-lightbox="image-set" data-title="">
<img class="" src="[(base_url)][+sg_image+]" alt="[+e.sg_title+]" title="[+e.sg_description+]"/>
</a>[+e.sg_description+]`
</div>
...
The gallery is displayed with Lightbox Plus, the preview is shown with CSS definitions.
The index page:
Text and a gallery image with sgController are displayed here.
...
[! sgController?
& parents = `6`
& count = `1`
& depth = `1`
& sgDisplay = `1`
& ownerTPL = `@ CODE:
<div class = "XXX">
[+ dl.wrap +]
</div> `
& tpl = `@ CODE:
<article class = "xxx">
<a href="[+url+]" title="[+ pagetitle +]"> <h4> [+ pagetitle +] </h4> </a>
<p> [+ introtext +] </p> [+ images +] `
& sgOuterTpl = `@ CODE: [+ wrapper +]`
& sgRowTpl = `@ CODE:
<a class="image" href="[+url+]"> <img src = "[+ sg_image +]" alt = "[+ e.sg_title +]" title = "[+ e.sg_description +]" /> </ a>
</article> `
& orderBy = `menuindex ASC`
& sgOrderBy = `sg_index ASC`
!]
...
Hope that helps a little further :-)