Username Password
Bookmark and Share

Added "attachment" template vars to USS Template


I liked to be able to see the attachments in the
www_view routine of I mean I wanted to see
attachments in USS main view just like you can see
them as you click on the submission. So I added the
template vars to the www_view routine. From now on it
is possible to
use "", "submission.attachment
.url", "submission.attachment.icon", "submission.attachme" in the "Template" just like it was already
possible in "Submission Template".

These are the diffs:
/data/WebGUI/lib/WebGUI/Wobject # diff
< USS_submission.endDate, page.urlizedTitle
> USS_submission.endDate, page.urlizedTitle, USS_submission.attachment
> if ($page->[$i]->{attachment} ne "") {
> my $file = WebGUI::Attachment->new
> $submission->
{""} = $file->box;
> $submission->
{"submission.attachment.url"} = $file->getURL;
> $submission->
{"submission.attachment.icon"} = $file->getIcon;
> $submission->
{""} = $file->getFilename;
> }

Very simple :) Why wasn't this in the routine to start


System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
4licaboros: "

Dear Milo,

I have a  similar problem to solve, as you allready did, but I have WebGUI 6.5.5 installed.

As I see, for this version I don't have, but I have insteed, which has a very different structure, and works with other variables names.

Could you give me a little help to solve this problem for 6.5.5.?

Many thanks,

Lica B.

DownloadUSS_diff.txt USS_diff.txt
LinksNo Support Offered
Statistics Downloads: 915
Views: 6952
Rating: 4
Updated: 8/12/2005
Keywords Assets Templates
NavigationBack to the Bazaar
© 2022 Plain Black Corporation | All Rights Reserved