Forum
Blog Post_in_list link to lightbox / External link
Is there a way to make a blog article in "Post_in_list.html" link to an external link or a Lightbox?
Basically I want to make a certain blog postings open a Lightbox Video instead of going to a separate page. Ideally I would like to do this with "Post Types" so users could select the Post Type was a Video.html rather that a post.html
Hello James,
Conditional tags can be helpful here: https://docs.grabaperch.com/templates/conditionals/
If you have a field called
video
that you only populate if the post is a video, you can conditionally output different things to the page:If you're using post types, you can test against
postTemplate
:Thanks for the reply. I have tried it with one of my non-video templates first.
I have tried the postTemplate option above and it doesn't seem to work. It just misses any post.
I cant seem to find any documentation on the use of postTemplate either?
This is my post_in_list.html file
What's the value of
postTemplate
in<perch:showall>
?ah that helped. It needed to be
Thanks guys :-)