You are not logged in.
<txp:hak_article_image /> is an enhancement to <txp:article_image /> it supports multiple images per article along with various ways of attaching links to the images. The article image field should contain one or more numeric image IDs separated by commas.
<txp:hak_article_thumb /> displays the image thumbnail(s) with an options to link the thumbnail in various different ways.
0.6.2
<txp:image_display /> or <txp:hak_article_image urloverride="1" />.<txp:image_display /> or <txp:hak_article_image urloverride="1" />.<txp:image_display /> or <txp:hak_article_image urloverride="1" />.<txp:image_display /> or <txp:hak_article_image urloverride="1" />.<txp:image_index /> or <txp:hak_article_image displaylink="1" />. Would normally be used along with limit=‘1’<txp:image_index /><txp:hak_article_image /> also supports using forms to format how your article images are displayed. Forms also give you access to the image’s caption information. All the same attributes are available but they are distributed among different tags.
<txp:hak_article_image /> and <txp:hak_article_thumb /> control which images will be used. It takes the following attributes:
<txp:hak_article_image_link /> creates a link with various options. Should be used as a container tag with an opening and closing tag. It takes the following attribues:
<txp:hak_image /> and <txp:hak_thumbnail /> displays either the full size image or the thumbnail. Accept a class attribute.
<txp:hak_image_caption /> displays the caption for the current image. Accepts the standard break, wraptag, class and breakclass attributes.
<txp:hak_image_alt /> displays the alt information for the current image. Accepts the standard break, wraptag, class and breakclass attributes.
These will still work but you should use the new options as they are more flexible
<txp:hak_article_image link="1" linktype="image" popup="1" /><txp:hak_article_image link="1" linktype="page" />Last edited by hakjoon (2007-04-23 01:16:53)
Shoving is the answer – pusher robot
Offline
It doesn’t seem to pick up on having TXP in a subdirectory. I have TXP running under www.somedomain.com/txp/, but it’s referring to the article images as being located in /images/. Looks like you need to tack on the TextPattern install directory in front of that.
I guess that’s an adjustment the zem_article_image code would need too.
Last edited by Sandwich (2005-08-25 06:29:37)
Offline
The main part of this code is pretty old (1.19 gamma). I’m in the process of modifying it to use some of the new globals instead of the old ones. Hopefully that should fix problems like this.
Last edited by hakjoon (2005-08-25 12:27:52)
Shoving is the answer – pusher robot
Offline
Version 0.2.2
I updated the code to use the new globals for site root. This should hopefully make it work properly in subdirectories. I have tested it working with messy urls but I don’t a subdirectory install with clean urls working right now. If someone could let me know if it works.
Shoving is the answer – pusher robot
Offline
I updated hak_article_image to version 0.3. This version adds the ability to create a link from the thumbnail to the same page passing the image id (displaylink=“1”). This id can be picked up by <txp:image_display /> or <txp:hak_article_image urloverride="1" />.
Shoving is the answer – pusher robot
Offline
awesome, thank you so much for adding this functionality.
Offline
oops, finally tried it out and it still generates a popup when I set the displaylink attribute in hak_article_thumb using the latest revision of txp.
Offline
yes, I am using 0.3.1. so far on safari and firefox it is not working properly, there could be a chance I am not using the tags correctly. should they both be in article forms?
Offline