Troost Posted June 30, 2017 Share Posted June 30, 2017 Hiya, I'd searched the forums but only found answers for multilingual sites.This is a non multilingual site. I'm currently busy with a website but i't wont show the images like it does over here. (Only when I'm logged in as admin). I looked at the roles of the Guest, and it seems that everything is ok. Thanks in advance. [SOLVED] The field itself wasn't set to view for guests Link to comment Share on other sites More sharing options...
louisstephens Posted June 30, 2017 Share Posted June 30, 2017 Just wondering, is this supposed to be commented out in the template? <!-- echo "<li class='item'><a href='#' data-featherlight='#mylightbox" . $childIndex . "'><img id='mylightbox" . $childIndex . "' src='{$image->url}' class='image'></a><p class='worktitle' alt='worktitle'>$child->title</p><p class='omschrijving' alt='omschrijving'>$child->image_description</p><p class='formaat' alt='formaat'>$child->formaat</p></li>"; --> I am not too familiar with the featherlight gallery, but I noticed an error in the console as well that "prototype" was undedefined in the .js file. 1 Link to comment Share on other sites More sharing options...
Troost Posted June 30, 2017 Author Share Posted June 30, 2017 16 minutes ago, louisstephens said: Just wondering, is this supposed to be commented out in the template? <!-- echo "<li class='item'><a href='#' data-featherlight='#mylightbox" . $childIndex . "'><img id='mylightbox" . $childIndex . "' src='{$image->url}' class='image'></a><p class='worktitle' alt='worktitle'>$child->title</p><p class='omschrijving' alt='omschrijving'>$child->image_description</p><p class='formaat' alt='formaat'>$child->formaat</p></li>"; --> I am not too familiar with the featherlight gallery, but I noticed an error in the console as well that "prototype" was undedefined in the .js file. Thanks for your reaction, Yeah, thats a thing for myself. I need to add the description from fields underneath the lightbox image, but I can't get that fixed either :p. So I commented it out for myself to play a bit with... I looked at the console and commented that out, now the error is gone. Link to comment Share on other sites More sharing options...
Troost Posted June 30, 2017 Author Share Posted June 30, 2017 Its by the way just the pages with images. The text pages work for the guests. Link to comment Share on other sites More sharing options...
Mats Posted July 1, 2017 Share Posted July 1, 2017 Could you share the complete template code? 1 Link to comment Share on other sites More sharing options...
Troost Posted July 1, 2017 Author Share Posted July 1, 2017 Hiya Mats, Thanks for responding... Pffffff, what a dumb mistake by me. The field itself was not visable by guests... Now it works again... wheheheheh Thanks for your time anyway! 1 Link to comment Share on other sites More sharing options...
fbg13 Posted July 1, 2017 Share Posted July 1, 2017 @Troost Use print_r or var_dump to check $page->children and $child->head_image (before the if statement). Also enable debug if it's not? 1 Link to comment Share on other sites More sharing options...
Troost Posted July 1, 2017 Author Share Posted July 1, 2017 Hiya FBG, thanks for responsding. It was just a 'checkbox' view for guests which I had put off without noticing Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now