Lightbox HowTo on OTRS

Slightly out of the ordinary thing, but I had fun with it ... How to add Lightbox2 to OTRS so when you click on an image attachment, it does that popover effect. http://forums.otterhub.org/viewtopic.php?f=60&t=16302

+1 Thanks for sharing. From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Gerald Young Sent: Friday, July 13, 2012 8:21 PM To: User questions and discussions about OTRS. Subject: [otrs] Lightbox HowTo on OTRS Slightly out of the ordinary thing, but I had fun with it ... How to add Lightbox2 to OTRS so when you click on an image attachment, it does that popover effect. http://forums.otterhub.org/viewtopic.php?f=60 http://forums.otterhub.org/viewtopic.php?f=60&t=16302 &t=16302

Hi!
On Sat, Jul 14, 2012 at 2:21 AM, Gerald Young
Slightly out of the ordinary thing, but I had fun with it ... How to add Lightbox2 to OTRS so when you click on an image attachment, it does that popover effect. http://forums.otterhub.org/viewtopic.php?f=60&t=16302
Nice. I had the idea of doing the same but than with PDF.js < https://github.com/mozilla/pdf.js > so you can show PDF attachments inside the browser, provided you have a decent browser. Would be awesome, but did not get to it; if you feel like it, would be great! - Mike

Michiel, What is in your mind regarding the rendering viewing portal for a
pdf? (How do you want the interface to be for a multi-page pdf?) Lightbox
ish? inline like scribd? replace current page? New window?
On Sun, Jul 15, 2012 at 3:07 PM, Michiel Beijen
Hi!
On Sat, Jul 14, 2012 at 2:21 AM, Gerald Young
wrote: Slightly out of the ordinary thing, but I had fun with it ... How to add Lightbox2 to OTRS so when you click on an image attachment, it does that popover effect. http://forums.otterhub.org/viewtopic.php?f=60&t=16302
Nice. I had the idea of doing the same but than with PDF.js < https://github.com/mozilla/pdf.js > so you can show PDF attachments inside the browser, provided you have a decent browser. Would be awesome, but did not get to it; if you feel like it, would be great! - Mike --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

It should just open in a popup. PDF.js renders multi-pages perfectly
fine, it is just a nice way of not needing to start Adobe Reader or
Document Viewer to read a PDF.
See for example: http://mozilla.github.com/pdf.js/web/viewer.html
--
Mike
On Sun, Jul 15, 2012 at 11:59 PM, Gerald Young
Michiel, What is in your mind regarding the rendering viewing portal for a pdf? (How do you want the interface to be for a multi-page pdf?) Lightbox ish? inline like scribd? replace current page? New window?
On Sun, Jul 15, 2012 at 3:07 PM, Michiel Beijen
wrote: Hi!
On Sat, Jul 14, 2012 at 2:21 AM, Gerald Young
wrote: Slightly out of the ordinary thing, but I had fun with it ... How to add Lightbox2 to OTRS so when you click on an image attachment, it does that popover effect. http://forums.otterhub.org/viewtopic.php?f=60&t=16302
Nice. I had the idea of doing the same but than with PDF.js < https://github.com/mozilla/pdf.js > so you can show PDF attachments inside the browser, provided you have a decent browser. Would be awesome, but did not get to it; if you feel like it, would be great! - Mike --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

I saw that, and I've distilled necessary install to about 5 files, though
the example given is a new html page, which may detract from ideal user
experience.
When you say, "popup", you have to deal with popup blockers. If you go to a
web page (unless it's some sort of dtl "action") you remove people from the
user experience of OTRS.
The question I'm asking is more in lines of, "what's the least messy way of
providing the document so people don't feel like they've been kicked out of
OTRS and yet their browser (popup blocker) won't be in the way?"
In my opinion, it may be more in line with attempting to do this in a
lightbox-ish popover, or skinned dtl otrs "action".
On Mon, Jul 16, 2012 at 10:52 AM, Michiel Beijen
It should just open in a popup. PDF.js renders multi-pages perfectly fine, it is just a nice way of not needing to start Adobe Reader or Document Viewer to read a PDF. See for example: http://mozilla.github.com/pdf.js/web/viewer.html -- Mike
On Sun, Jul 15, 2012 at 11:59 PM, Gerald Young
wrote: Michiel, What is in your mind regarding the rendering viewing portal for a pdf? (How do you want the interface to be for a multi-page pdf?) Lightbox ish? inline like scribd? replace current page? New window?
On Sun, Jul 15, 2012 at 3:07 PM, Michiel Beijen < michiel.beijen@gmail.com> wrote:
Hi!
On Sat, Jul 14, 2012 at 2:21 AM, Gerald Young
wrote:
Slightly out of the ordinary thing, but I had fun with it ... How to add Lightbox2 to OTRS so when you click on an image attachment, it does that popover effect. http://forums.otterhub.org/viewtopic.php?f=60&t=16302
Nice. I had the idea of doing the same but than with PDF.js < https://github.com/mozilla/pdf.js > so you can show PDF attachments inside the browser, provided you have a decent browser. Would be awesome, but did not get to it; if you feel like it, would be great! - Mike --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Mike,
So I'm browsing Defaults.pm and see something quite interesting ...
# --------------------------------------------------- #
# MIME-Viewer for online to html converter
# --------------------------------------------------- #
# (e. g. xlhtml (xls2html), http://chicago.sourceforge.net/xlhtml/)
# $Self->{'MIME-Viewer'}->{'application/excel'} = 'xlhtml';
# MIME-Viewer for online to html converter
# (e. g. wv (word2html), http://wvware.sourceforge.net/)
# $Self->{'MIME-Viewer'}->{'application/msword'} = 'wvWare';
# (e. g. pdftohtml (pdf2html), http://pdftohtml.sourceforge.net/)
# $Self->{'MIME-Viewer'}->{'application/pdf'} = 'pdftohtml -stdout -i';
# (e. g. xml2html (xml2html))
# $Self->{'MIME-Viewer'}->{'text/xml'} = $Self->{Home}.'/scripts/tools/
xml2html.pl';
What could it be?
added to Config.pm
$Self->{'MIME-Viewer'}->{'application/pdf'} = 'pdftohtml -stdout -i';
then
apt-get install poppler-utils
and checked a linked pdf. There's an interesting little monitor icon there.
click - rendered.
Thought that might be of interest to you.
On Mon, Jul 16, 2012 at 10:52 AM, Michiel Beijen
It should just open in a popup. PDF.js renders multi-pages perfectly fine, it is just a nice way of not needing to start Adobe Reader or Document Viewer to read a PDF. See for example: http://mozilla.github.com/pdf.js/web/viewer.html -- Mike
On Sun, Jul 15, 2012 at 11:59 PM, Gerald Young
wrote: Michiel, What is in your mind regarding the rendering viewing portal for a pdf? (How do you want the interface to be for a multi-page pdf?) Lightbox ish? inline like scribd? replace current page? New window?
On Sun, Jul 15, 2012 at 3:07 PM, Michiel Beijen < michiel.beijen@gmail.com> wrote:
Hi!
On Sat, Jul 14, 2012 at 2:21 AM, Gerald Young
wrote:
Slightly out of the ordinary thing, but I had fun with it ... How to add Lightbox2 to OTRS so when you click on an image attachment, it does that popover effect. http://forums.otterhub.org/viewtopic.php?f=60&t=16302
Nice. I had the idea of doing the same but than with PDF.js < https://github.com/mozilla/pdf.js > so you can show PDF attachments inside the browser, provided you have a decent browser. Would be awesome, but did not get to it; if you feel like it, would be great! - Mike --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
participants (3)
-
Gerald Young
-
Michael D. Wood
-
Michiel Beijen