Loading...
 
Features / Usability

Features / Usability


Photo description in wiki page?

posts: 74 United States

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?

Photos

posts: 3665 United States
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.
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.
posts: 74 United States
Rick Sapir / Tiki for Smarties wrote:

Sure, just use the DESC parameter:



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...
Copy to clipboard
thumb=box&max=800

to this

Copy to clipboard
thumb=box&max=800&desc=desc

posts: 74 United States
Would it be possible to also show the date uploaded below an image?
posts: 3665 United States
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
Copy to clipboard
{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.
posts: 74 United States
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
Copy to clipboard
{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

posts: 3665 United States
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.
posts: 74 United States
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.
Copy to clipboard
{$f_lastmodif|tiki_short_date|tiki_short_datetime}


Lastmodif

posts: 3665 United States
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.

Copy to clipboard
{$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.
posts: 74 United States
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.