Loading...
 
Features / Usability

Features / Usability


How to allow download of pictures from a tracker?

Indonesia

Hi all:

I created a tracker which has a field called Picture of type Files.

I can upload the pictures but there's no way to download them again from the tracker. I see the thumbnail, name and small red cross to delete the attachment, but no way to download the attachment (or pop it up to see it big size). (attached screenshot)

The permissions: tiki_p_attach_trackers, tiki_p_tracker_view_attachments, tiki_p_download_files are set globally and not overridden.

So I guess I'm missing something, and could not find it anywhere on the documentation. How to allow the download of an image from the tracker?

Thanks,
Pak

Hi Pak,

I cannot promise to find the solution (travelling tonight, so limited time) but I just tested to an extend. I think it is not related to permissions.

Field type "files" is fine. (mind the "s", which distinguishes it from the old and depricated field of type "file".

The field of type "files" has the option to show as image instead of link (which is default). That gives you at least the option to show the image and to optionally show a slideshow (popup like) but it looks buggy to me and so far I came to now, the solution does not make me confident either.

Still reviewing. C U later.
Regards,
Torsten


Indonesia

Hi Torsten::

Thanks for your fast reply.

I already have set it up as Display Mode: Images and I can see a thumbnail of the file, but no way to download it (or way to show the dialog allowing to save it).

I also checked the parameters at https://doc.tiki.org/PluginImg#content_index1-2 to chngne the parameter "Display parameters" of the tracker field, but it does nto seem to be affecting the thumbnail, so I guess I'm not on the right direction.

If you need more details, please let me know.

Pak


Hi Pak,

I have a tracker with two fields:
one field of type "textfield" name "Title" and permanent name "test_title"
one field of type "files" name "Files" and permanent name "test_files"

Using the PluginList I try to get three columns from the two fields with the following behaviour:

column 1 display the items title with a link to the item

column 2 display the image or thumbnail

column 3 display the link to the image (to download)

My problem right now: column 3 shows the image Id correctly, but it does link to the iem instead of the image.
For example the shown value is "11" and the "dl11" or "display11" but it is "item58"

My code is the following and we would need to find the correct parameters and values for the third FORMAT and display command:

{LIST()}
     {pagination max=5}
     {filter field="tracker_id" content="6"}
{OUTPUT(template="table")}
    {column field="title" label="Title" mode="raw"}
    {column field="files" label="Files" mode="raw"}
    {column field="download" label="Download" mode="raw"}
{tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text" tsfilters="type:text|type:text" tspaginate="max:10"}
{OUTPUT}
    {FORMAT(name="title")}{display name="tracker_field_test_title" format="objectlink"}{FORMAT}
    {FORMAT(name="files")}{display name="tracker_field_test_files" format="trackerrender"}{FORMAT}
    {FORMAT(name="download")}{display name="tracker_field_test_files" format="objectlink"}{FORMAT}
{LIST}


You might find more here:
LIST+-+format+command
or here:
LIST+-+display+command

I have to go. I cross fingers, that you get where you want to - please report, as I would be interested in that kind of display aswell. Hopefully I find some time later this weekend, but I do not promise.

Regards,
Torsten


Hello Pak,

I think I found it. Put the following code on a wiki page (mind: tablesorter will only work in List from Tiki15 onwards). Make sure, to activate Unified Search if not on by default.

Adopt where you find "tracker_field_test_title" or "tracker_field_test_files" to "tracker_field_your_permanent_fieldname".

That should work then.

Two columns:

{LIST()}
     {pagination max=5}
     {filter field="tracker_id" content="6"}
{OUTPUT(template="table")}
    {column field="title" label="Title" mode="raw"}
    {column field="image" label="Image with Download" mode="raw"}
{tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text|" tsfilters="type:text|type:text|" tspaginate="max:10"}
{OUTPUT}
    {FORMAT(name="title")}{display name="tracker_field_test_title" format="objectlink"}{FORMAT}
    {FORMAT(name="image")}
		{display name="wikiplugin_img" format="wikiplugin" fileId="tracker_field_test_files" thumb="box" default="fileId=10"}
		{display name="tracker_field_test_files" format="trackerrender"}
    {FORMAT}
{FORMAT}
{LIST}


Three columns:

{LIST()}
     {pagination max=5}
     {filter field="tracker_id" content="6"}
{OUTPUT(template="table")}
    {column field="title" label="Title" mode="raw"}
    {column field="image" label="Image" mode="raw"}
    {column field="download" label="Download" mode="raw"}

{tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text|" tsfilters="type:text|type:text|" tspaginate="max:10"}
{OUTPUT}
    {FORMAT(name="title")}{display name="tracker_field_test_title" format="objectlink"}{FORMAT}
    {FORMAT(name="image")}
		{display name="wikiplugin_img" format="wikiplugin" fileId="tracker_field_test_files" thumb="box" default="fileId=10"}
    {FORMAT}
    {FORMAT(name="download")}
		{display name="tracker_field_test_files" format="trackerrender"}
    {FORMAT}
{FORMAT}
{LIST}


Best regards,
Torsten

EDIT: attached screenshot

EDIT 2:

The field of type "files" must have the visibility option set to "Links" (which is default).
Then the {display name="tracker_field_test_files" format="trackerrender"} shows the download link of the image/file.

{display name="wikiplugin_img" format="wikiplugin" fileId="tracker_field_test_files" thumb="box" default="fileId=10"} then sorts out the image display ... I guess this should work similarly with a video (which I need soon) ... although at this point it seems not to work to mix image and video, respectively different file types.

But hold on, in case if that would be necessary, there would still be a more advanced way to get it done: a template file could be associated with the List plugin and as a .tpl can contain Smarty syntax, it should be possible to sort out different file types (wikiplugins conditional to the file type) with {if} {elseif} {else} {/if} ... I am pretty sure ;-) .

Regards


Indonesia

Hi Torsten:

I think that my knowlege of TW is not enough to follow your reasoning, :-)

I am not using a List but a Tracker as described at https://doc.tiki.org/PluginTracker

{TRACKER(trackerId="3" fields="42:46:36:31:32:49:37:47" showstatus="y" url="Open+Service+and+Maintenance+Requests")} Thanks! The service and maintenance request has been updated. {TRACKER}


where field 49 is the Files field.
Then if I go to the trackers field maintenance script, I clink on the field 49 and at Option for Files -> Display parameters I copied your parameters it does not work neither.

Should I set these parameters on the {TRACKER } plugin?

Also there's a Image Tracker Field https://doc.tiki.org/Image+Tracker+Field but the description found is not enough for me to understand how to use it.

BTW, I'm using TW 14.0, just in case it's needed.

Thanks,
Pak

United States

You can simply use the TRACKERLIST plugin to display the existing tracker items. If you're using the FIELDS field for your uploads, they'll be listed and available for download.

Here's a quick sample I made: https://demo.tiki.org/14x/TrackerSample

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.

Sure, but I thought,
Pak wanted to show aswell the image (or thumbnail) to open as popup as the download link.

Definitely trackerlist is easier at the first spot, but it is more limited in respect of the output options - just for example.

I did need a very long time to get LIST understood from my non-coder perspective. That is why I took some time and will continue, to explain LIST and to help starting to use it.

I thing when somebody helps he user over the first hurdles of understanding the concept of search/filter + output + format/display and the most important options, it gets very quickly much easier.

As far as I heard from the developers, they do not want to support trackerlist anymore, cause LIST can do all the same plus trillions of things more plus the syntax in the plugin is more logical etc..

So I a not sure, what Pak exactly wants as ideal and where he sees an acceptable compromise.

I might during the week try to meet Paks use case with a trackerlist as far as I get and then compare it with the code of the plugin LIST ...

I can very well understand when Pak is new to Tiki or to this kind of software and is afraid of the sheer looking like code. But maybe we can help out :-) .

Greetings,
Torsten

Hi Pak,

the code above is for a Tracker form to submit data.

What you want to achieve is an output of the tracked data items on a wikipage.

Right now I see three wikiplugins to show the tracker items on a wikipage:

1. Plugin "{trackerlist}" as Rick mentioned

2. Plugin "{trackerfilter}" - similar behaviour and mostly the same parameters, but additionally a filter dialog on top.

3. Plugin "{LIST}" which has newly added documentation and expects more and is in my opinion that what you need - provided I understood right, what result you want to achieve ideally.

Could you please post an answer with the Id number of your tracker and with the Id Number and if possible with the permanent numbers of your fields.

Exact but very brief information about your field types and field option would be helpful aswell.

If we are lucky, I could maybe provide you with a code snipped that you could copy/paste and it works. No promise, but chances are there, if you provide e the right data right.

Greetings,
Torsten

Indonesia

Hi Torsten:

Really helpful reply!

  • I created a wiki page using "tracker" to create an item for (in this case for maintenance request in my company).
  • Then I created another wiki page to list them, using "trackerlist" and we are happy with it (even happier after Rick addition in previous reply about the Files type being listed and downloadable)
  • Then I want the users to be able to modify the "tracker" item. This is where I face the problem. I want users to be able to download the images of the tracker item, so they can write the solution proposed and forward it to the department in charge.It's in this page where I can see the thumbnails but can't downlaod the images.


Tracker Id = 3

Source code of the wiki page where I want to update the item (and be able to download the images):

{TRACKER(trackerId="3" fields="42:46:36:31:32:49:37:47" showstatus="y" url="Open+Service+and+Maintenance+Requests")} Thanks! The service and maintenance request has been updated. {TRACKER}


Tracker fields as exported by TW:

Fields exported
[FIELD45]
fieldId = 45
name = Request#
permName = se
position = 0
type = q
options = {"start":1,"prepend":"","append":"","itemId":""}
isMain = y
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = y
description = Request #
descriptionIsParsed = n
[FIELD42]
fieldId = 42
name = Location affected
permName = locationAffected
position = 10
type = d
options = {"options":["66=Double Six"," AR=Arjuna"," BW=Beachwalk"," JC=Jimbaran Corner"," KA=Kayu Aya"," KS= Kuta Square"," MF= Monkey Forest"," MU= Monkey Utara"," OB=Oberoi"," PA=Padma"," PS= Pura Seminyak"," PU=Pasar Ubud"," SA=Sanur KL"," SS=Sanur Selatan"," SU=Sanur Utara"," SE=Seminyak"," UB=Ubud Raya"," KANTOR=Kantor"]}
isMain = y
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = y
description = Location where the service and maintenance is needed
descriptionIsParsed = n
[FIELD46]
fieldId = 46
name = Issue Type
permName = issueType
position = 20
type = d
options = {"options":["AC=AC"," BO=Bocoran"," IT=IT-Computer-Internet"," TV=CCTV"," FU=Furniture"," LA=Lampu mati"," LI=Listrik"," WA=Wallpaper"," LL=Lain-Lain"]}
isMain = y
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = y
description = General type of the issue to be serviced
descriptionIsParsed = n
[FIELD36]
fieldId = 36
name = Issue Description
permName = f_36
position = 30
type = a
options = {"toolbars":0,"width":0,"height":0,"max":0,"listmax":0,"wordmax":0,"distinct":"n","wysiwyg":"n","samerow":1}
isMain = n
isTblVisible = n
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = Full description of the issue. Be as precise as possible, giving as much details as possible.
descriptionIsParsed = n
[FIELD31]
fieldId = 31
name = Priority
permName = f_31
position = 40
type = d
options = {"options":["1=High","2=Normal","3=Low"]}
isMain = n
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = Assign priority of the request. 
descriptionIsParsed = n
[FIELD47]
fieldId = 47
name = Solved By
permName = solvedBy
position = 90
type = u
options = {"autoassign":0,"notify":0,"groupIds":[0],"showRealname":0}
isMain = y
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = Person solving the issue
descriptionIsParsed = n
[FIELD37]
fieldId = 37
name = Solution
permName = f_37
position = 50
type = a
options = 1,70,10
isMain = n
isTblVisible = n
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = 
descriptionIsParsed = 
[FIELD40]
fieldId = 40
name = Created by
permName = f_40
position = 60
type = u
options = {"autoassign":1,"notify":0,"groupIds":[0],"showRealname":0}
isMain = n
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = User creating the Service and Maintenance Request
descriptionIsParsed = n
[FIELD41]
fieldId = 41
name = Last modification by
permName = f_41
position = 70
type = u
options = {"autoassign":2,"notify":0,"groupIds":[0],"showRealname":0}
isMain = n
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = User doing the last modification to the service and maintenance request
descriptionIsParsed = n
[FIELD32]
fieldId = 32
name = Assigned To
permName = f_32
position = 80
type = u
options = {"autoassign":0,"notify":0,"groupIds":[0],"showRealname":0}
isMain = n
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = 
descriptionIsParsed = n
[FIELD49]
fieldId = 49
name = Picture
permName = picture
position = 100
type = FG
options = {"galleryId":3,"filter":"","count":5,"displayMode":"img","displayParams":"\"format=wikiplugin&thumb=box\"","displayParamsForLists":"","deepGallerySearch":0,"replace":"n","browseGalleryId":3,"duplicateGalleryId":0,"indexGeometry":""}
isMain = y
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = Picture about the Service and Maintenance Request
descriptionIsParsed = n


It has been also very helpful to know "trackerlist" will be off the radars soon. I will check LIST outand study the concepts search/filter + output + format/display as you mentioned. I guess I'm suffering a "terminology concept mix-up".

I imagined my requirement was quite basic for any user, so I guess it's already solved in such a complex project as TW, without needing to code it.

Anyway, thanks for pointing me into the right direction.
Pak

Hello Pak,

two questions:

EDIT: Oh no, only one question! tracker Id is 3 ... ability to read is a clear advantage, sorry.

1.) Which Tiki version you are working with?

=> the tablesorter was not available for the plugin LIST until Tiki 14.x and just resently was integrated in List in Tiki 15.0 alpha (not in the first release numbers straight after branching ... you need a quite new Tiki 15 checkout to have tabesorter in LIST, in case you need it.

2.) What is the tracker Id of your tracker?

=> you posted the tracker fields, which is awesomely helpful, but the Id of the tracker itself is missing

Regards,
Torsten


Indonesia

Thanks Rick.

Tried that and it works. Many, many thanks for that.

Anyway, would be nice to be able to download the images from TRACKER, as I created a TRACKER just to update it with more information. Probably the user updating the TRACKER item will need to see the images in detail.

Also, could not access https://demo.tiki.org/14x/TrackerSample as the user I have to login here does not work there, and can't see the sign up option anywhere at demo.tiki.org.
Regards,
Pak

The login for the demo site is:

user: admin
password: 12345

I just now tested.

For the downloadlink issue please see my two posts above. Rick is right, that trackerlist is since longtime the quite easy to use plugin of choice for tracer display - often in conjunction with further advanced additional functionalities.

Anyway, in my humble opinion, when you want to show a table like output with a link to the tracker item, an image with popup function and a downloadlink, you need Plugin LIST, if you want to avoid coding a template file.

But that is just my opinion.
I must admit, that I am thrilled by the opportunities that Plugin LIST opened for me in the last about two weeks.

I loved trackerlist so far and I still respect this plugin, as it gave so many opportunities to show content from trackers - never will forget it. But compared to LIST, I feel kind of released from a prison and now breathing deep on a ship hat brings me to a new world.

Ok, that might be pathetic.


Hello Pak,

please make sure, that you change the display mode in the field options of field 49 (permName is "picture") from Images to Links

Then copy the code below and paste it to a wiki page "tracker" and save.
Then please report what happens.
Regards,
Torsten

For two columns:

{LIST()}
     {pagination max=5}
     {filter field="tracker_id" content="3"}
{OUTPUT(template="table")}
    {column field="title" label="Request #" mode="raw"}
    {column field="image" label="Picture with Download" mode="raw"}
{tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text|" tsfilters="type:text|type:text|" tspaginate="max:10"}
{OUTPUT}
    {FORMAT(name="title")}{display name="tracker_field_se" format="objectlink"}{FORMAT}
    {FORMAT(name="image")}
		{display name="wikiplugin_img" format="wikiplugin" fileId="tracker_field_picture" thumb="box" default="fileId=10"}
		{display name="tracker_field_picture" format="trackerrender"}
    {FORMAT}
{FORMAT}
{LIST}


For three columns:

{LIST()}
     {pagination max=5}
     {filter field="tracker_id" content="3"}
{OUTPUT(template="table")}
    {column field="title" label="Request #" mode="raw"}
    {column field="image" label="Picture" mode="raw"}
    {column field="download" label="Download" mode="raw"}

{tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text|" tsfilters="type:text|type:text|" tspaginate="max:10"}
{OUTPUT}
    {FORMAT(name="title")}{display name="tracker_field_se" format="objectlink"}{FORMAT}
    {FORMAT(name="image")}
		{display name="wikiplugin_img" format="wikiplugin" fileId="tracker_field_picture" thumb="box" default="fileId=10"}
    {FORMAT}
    {FORMAT(name="download")}
		{display name="tracker_field_picture" format="trackerrender"}
    {FORMAT}
{FORMAT}
{LIST}

Indonesia

Hi Torsten:

Thanks for the code. i tried and worked quite OK. I just need to clean it up and filter to be able to get just 1 item. Will use LIST and come back to share the results once done.

BTW: using TW 14.0

many thanks,
Pak

Ok Tiki 14 so. Please mind that the line of code that includes {tablesorter ... } has no effect until one day you upgrade. You either can leave it there and use it later or delete it and add it back when you need it after the upgrade.

I am very happy, that it works for you now.
Happy Easter,

Torsten


Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.