Photo description in wiki page? Posted by Jeffrey Frady 20 Jun 2020 04:14 GMT-0000 posts: 57 I have a pretty tracker that I display images in. There are descriptions attached to the images from when I uploaded them. Is it possible to have these descriptions displayed below the image like a caption?
Posted by Rick Sapir / Tiki for Smarties 20 Jun 2020 13:11 GMT-0000 posts: 3656 Jeffrey Frady wrote: I have a pretty tracker that I display images in. There are descriptions attached to the images from when I uploaded them. Is it possible to have these descriptions displayed below the image like a caption? Sure, just use the DESC parameter: Your description here. See the docs for details. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
Posted by Jeffrey Frady 20 Jun 2020 14:02 GMT-0000 posts: 57 Rick Sapir / Tiki for Smarties wrote: Sure, just use the DESC parameter: Your description here. See the docs for details. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials. That worked, thanks! I went to the field properties in the tracker and modified my code from... thumb=box&max=800 to this thumb=box&max=800&desc=desc
Posted by Jeffrey Frady 22 Jun 2020 15:11 GMT-0000 posts: 57 Would it be possible to also show the date uploaded below an image?
Posted by Rick Sapir / Tiki for Smarties 22 Jun 2020 16:45 GMT-0000 posts: 3656 Jeffrey Frady wrote: Would it be possible to also show the date uploaded below an image? Yes, but there's no built-in syntax for this. You could use the LIST plugin. Something like this: Sample to show last modification date of a file ID #1 {LIST()} {pagination max="1"} {filter field="object_id" content="1"} {filter type="file"} {OUTPUT()} {display name="modification_date"} {OUTPUT} {LIST} For the object_id, simply pass the parameter you're using in your pretty tracker that contains the ID of the file that your displaying, instead of content="1". See the docs for full details on the the List plugin. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
Posted by Jeffrey Frady 22 Jun 2020 17:36 GMT-0000 posts: 57 Rick Sapir / Tiki for Smarties wrote: Yes, but there's no built-in syntax for this. You could use the LIST plugin. Something like this: Sample to show last modification date of a file ID #1 {LIST()} {pagination max="1"} {filter field="object_id" content="1"} {filter type="file"} {OUTPUT()} {display name="modification_date"} {OUTPUT} {LIST} For the object_id, simply pass the parameter you're using in your pretty tracker that contains the ID of the file that your displaying, instead of content="1". See the docs for full details on the the List plugin. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials. Thanks for your help! I will have to experiment with this to get a full understanding. If you want to take a look, this is the template page. http://www.wikigrave.com/tiki-index.php?page=Memorial-TPL The tracker ID is 5, the photographs field ID is 92. This is an example of the output page. http://www.wikigrave.com/tiki-view_tracker_item.php?itemId=94
Posted by Rick Sapir / Tiki for Smarties 22 Jun 2020 18:48 GMT-0000 posts: 3656 Jeffrey Frady wrote: This is an example of the output page. http://www.wikigrave.com/tiki-view_tracker_item.php?itemId=94 I'm not 100% clear on your setup, but unless you're allowing images to be uploaded separately, you can simply use the tracker item's date as the image date, right? If so, simply use the lastmodif for the tracker item your displaying. See "Pre-defined Variables in the Pretty Tracker docs. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
Posted by Jeffrey Frady 22 Jun 2020 19:16 GMT-0000 posts: 57 Rick Sapir / Tiki for Smarties wrote: I'm not 100% clear on your setup, but unless you're allowing images to be uploaded separately, you can simply use the tracker item's date as the image date, right? If so, simply use the lastmodif for the tracker item your displaying. See "Pre-defined Variables in the Pretty Tracker docs. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials. I added in this line and it does work for that entire field but I would rather have a date/time shown for each individual upload. {$f_lastmodif|tiki_short_date|tiki_short_datetime}
Posted by Rick Sapir / Tiki for Smarties 23 Jun 2020 20:40 GMT-0000 posts: 3656 Jeffrey Frady wrote: I added in this line and it does work for that entire field but I would rather have a date/time shown for each individual upload. {$f_lastmodif|tiki_short_date|tiki_short_datetime} It depends how you have your tracker set... If you're using a single field for multiple photos, then yes you're only going to get a single date using this. My original suggestion (with the LIST plugin) may work better for you, since it uses the individual ID for each photo from the gallery, not the tracker item itself. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
Posted by Jeffrey Frady 24 Jun 2020 04:02 GMT-0000 posts: 57 Rick Sapir / Tiki for Smarties wrote: It depends how you have your tracker set... If you're using a single field for multiple photos, then yes you're only going to get a single date using this. My original suggestion (with the LIST plugin) may work better for you, since it uses the individual ID for each photo from the gallery, not the tracker item itself. HTH, - Rick | My Tiki Blog | My Tiki UserPage Why be a dummy? Get smarty! TikiForSmarties.com Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials. Makes sense, I'm using a single field for multiple photos. I'm not sure if the LIST plugin will work for my configuration.