plainblack.com
Username Password
search
Bookmark and Share

    
Goto page «Previous Page   1 2    Next Page»

collaboration attachment_loop

User christian_g
Date 2/11/2010 2:28 am
Views 1017
Rating 0    Rate [
|
]
Previous · Next
User Message
christian_g

I am using WebGUI version 7.7.19. I would like to make a file manager template (similar as in WebGUI version 5.4). I tried to do it with a collaboration system, allowing the poster to attach files. I added to the link list template some lines that should (to my understanding) show the attached files with a link to download them:

<tmpl_loop post_loop>
   <tmpl_loop attachment_loop>
      <a href="<tmp_var url>"> 
         <tmpl_var icon><tmpl_var name>
 
     </a>
   </tmpl_loop>
</tmpl_loop>

If I upload some files, nothing is shown. The post loop works, but the attachment_loop does not go throught. Using

<tmpl_var attachment.url>
<tmpl_var attachment.icon>
<tmpl_var attachment.name>

does not work either.

Does anybody know how to make a file manager like in Version 5.4. There was a table with Title, File Type icon, File name, Description and upload date. The user could sort the table clicking on a table header. That was very handy and I wonder why it has been lost on further development of WebGUI.

--- (Edited on 2/11/2010 2:28 am [GMT-0600] by christian_g) ---



Back to Top
Rate [
|
]
 
 
bartjol

I think you can just make a map/folder with a template to do that

--- (Edited on 11-February-2010 16:54 [GMT+0100] by bartjol) ---



Back to Top
Rate [
|
]
 
 
perlDreamer

Bartjol is correct (as usual).  The File Manager was eventually replaced with the Folder Asset.  It is much more flexible, however, it will not do any sorting other than that set in the Folder properties.

If this is an important feature, I would suggest building a custom template using a YUI DataTable.  It will handle pagination, sorting, and does a nice job of rendering.

This can also be done in a collaboration, but in the Collaboration Template there is no attachment_loop.  That loop is only available in the Thread Template.

--- (Edited on 2/11/2010 8:04 am [GMT-0800] by perlDreamer) ---



Back to Top
Rate [
|
]
 
 
christian_g

Dear bartjol and perldreamer

Thank you for trying to help me, but:

The folder asset does not have a upload date variable, nor does it have the possibility to sort and search in the entries. The files can't have an additional description field.

The data table is nice, but it would mean that everybody of the team that collaborates with uploading files would have to upload a file, to give him an url and to enter this url in the data table tab of the data table editor form. I fear this would go beyond of the capapilities of the contributors. The data table would still need an image type of field to show the file type icon.

With the former file manager asset I could create nice tables with files, images associated to these files, file descriptions, upload dates,... The tables were sortable, searchable. I think about throwing away all the work done with version 7.7 and return to version 5.4.

How much work would it be to extend 7.7 to get my loved file manager back. Would it be possible to change collaboration to have access to its childs?

--- (Edited on 2/12/2010 2:13 am [GMT-0600] by christian_g) ---



Back to Top
Rate [
|
]
 
 
martien

 

The folder asset does not have a upload date variable, nor does it have the possibility to sort and search in the entries. The files can't have an additional description field.

With the former file manager asset I could create nice tables with files, images associated to these files, file descriptions, upload dates,... The tables were sortable, searchable. I think about throwing away all the work done with version 7.7 and return to version 5.4.

 

I love Thingy + SQLReport for everything I'm missing for data handling within WebGUI...


How much work would it be to extend 7.7 to get my loved file manager back.

Within 5 minutes, you'll have a upload-possibility and you'll need a bit more for making the SQLReports.
To make Thingy fields human usable, have a look at rfe  #11329

--- (Edited on 12.02.2010 11:35 [GMT+0100] by martien) ---



Back to Top
Rate [
|
]
 
 
perlDreamer

The folder asset does not have a upload date variable, nor does it have the possibility to sort and search in the entries. The files can't have an additional description field.

The "upload date variable" in the file_loop of the folder is called date.epoch.

The "additional description" field is called "synopsis".

The data table is nice, but it would mean that everybody of the team that collaborates with uploading files would have to upload a file, to give him an url and to enter this url in the data table tab of the data table editor form. I fear this would go beyond of the capapilities of the contributors. The data table would still need an image type of field to show the file type icon.

I don't believe this is true.  All the data table does is display the contents of the folder.  For uploading, you would still use the URL provided by the Folder (Add Files), once the files are uploaded, they would show up in the table automatically.

As to the file type icon, it's also provided for you by the file_loop.  It's called icon.small, or icon.large.

I'm halfway tempted to implement this myself just to prove that it can be done.

How much work would it be to extend 7.7 to get my loved file manager back. Would it be possible to change collaboration to have access to its childs?

There is an RFE to make the Collaboration have access to all the attachements of it's first post, but it will slow down the Collaboration a lot.  It would probably take several hours of work to update the old File Manager to WebGUI 7, but it's doable.

--- (Edited on 2/12/2010 7:39 am [GMT-0800] by perlDreamer) ---



Back to Top
Rate [
|
]
 
 
perlDreamer

I'm halfway tempted to implement this myself just to prove that it can be done.

I went from halfway tempted to fully tempted.  The template package is over in the Marketplace/Bazaar.

--- (Edited on 2/12/2010 9:06 am [GMT-0800] by perlDreamer) ---



Back to Top
Rate [
|
]
 
 
bartjol

Have you looked in the bazaar for assets, that might help you out? http://www.webgui.org/bazaar?func=byKeyword;keyword=assets

Further I wouldn't recommend going back to 5.x. Mostly because of (known) safety problems.

you also might wanna check out thingy, I think there should be possibilties and it alos has a sortable yui interface, and different data types. I haven't worked with it myself, but maybe it can give you what you want.

 

--- (Edited on 12-February-2010 11:00 [GMT+0100] by bartjol) ---



Back to Top
Rate [
|
]
 
 
christian_g

Thanks all for your help. I tried perlDreamers template. It looks better now. I have two questions left:

Where does synopsis come from (I tried to edit the synopsis field of the assetData table directly in the database, but it does not show up in the table)?

Why does the resulting table look different than the original dataTable asset, even if it uses "yui skin sam" class (from datatable.css)?

--- (Edited on 2/15/2010 8:13 am [GMT-0600] by christian_g) ---



Back to Top
Rate [
|
]
 
 
christian_g

I could resolve the layout problem:

perlDreamers Template missed a surrounding div tag with class "yui-skin-sam":

<div class="yui-skin-sam">
<div id="file_manager_wrapper" class="yui-skin-sam yui-dt">
...
</div>
</div>

The table looks good now. A similar Template can be used to show the collaboration post loop. The advantage of using collaboration system are the userDefined variables which can be used for anything special.

--- (Edited on 2/16/2010 9:03 am [GMT-0600] by christian_g) ---



Back to Top
Rate [
|
]
 
 
     Goto page «Previous Page   1 2    Next Page»



© 2012 Plain Black Corporation | All Rights Reserved