We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35756
    • 166 Posts
    Hello together!

    I'm using MODx Revo 2.2.12 with Fancybox for displaying my images in the fancybox/lightbox view which works fine.

    With getResources I'm showing some resources via a chunk:

    <div class="ContentBlock">
    
    <h3>[[+pagetitle]]<br /><span>[[+longtitle]]</span></h3>
    
    [[+content:ellipsis=`800`]]
    
    [[+content:len:gt=`800`:then=`<a class="fancybox" data-fancybox-type="iframe" href="[[~[[+id]]]]">read more</a>`]]
    </div>


    I want to show the "read more"-link when the [[+content]] is bigger than 800 "signs" and on click on the "read more"-link the whole content should open inside the Lightbox.

    The version above I'm using now opens the whole webseite with the header, navigation and such. How do I only load the [[+content]] inside the Fancybox?


    [ed. note: profilneurotiker last edited this post 12 years, 7 months ago.]