Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2014-01-15 21:10:28
- kevlove92
- Member
- Registered: 2014-01-15
- Posts: 14
Re: How do i intergrate light box into text pattern theme
I just want it so when you go to article you add the image id, and it shows up on the page with lightbox working.
Offline
#14 2014-01-15 21:13:22
- kevlove92
- Member
- Registered: 2014-01-15
- Posts: 14
Re: How do i intergrate light box into text pattern theme
ALSO is there documents on here explaining the types of forms a little bit better and how to use them?
Offline
#15 2014-01-15 21:26:29
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: How do i intergrate light box into text pattern theme
For example in your page:
<txp:if_article_image>
<txp:images auto_detect="article" break="" form="image-thumbnail" />
</txp:if_article_image>
And in a form named “image-thumbnail”:
<a href="<txp:image_url />" rel="lightbox" title="<txp:image_info />">
<img src="<txp:image_url thumbnail="1" />" height="<txp:image_info type="thumb_h" />" alt="<txp:image_info type="alt" />" />
</a>
In the article image field in your article you can put the IDs of the images, comma separated if are more than one.
Offline
#16 2014-01-15 21:31:28
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: How do i intergrate light box into text pattern theme
As I see in Lightbox 2 you can replace the rel="lightbox"
to data-lightbox="lightbox"
.
Offline
#17 2014-01-15 21:36:45
- kevlove92
- Member
- Registered: 2014-01-15
- Posts: 14
Re: How do i intergrate light box into text pattern theme
it worked! thank you so much!
Offline
#18 2014-01-15 23:15:33
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: How do i intergrate light box into text pattern theme
Fine, but look what I wrote about your HTML.
Last edited by GugUser (2014-01-15 23:16:21)
Offline