Make plugin work for previews in the WIKI page
Opened this issue · 6 comments
EmilioCasanova commented
Hi
The plugin works fine, but I use I lot of links of documents in the WIKI page of Redmine for my projects and it could be great to have a preview for them. Have you considered integrating the WIKI page into the scope of the plugin?
Best regards
HugoHasenbein commented
Dear Emilio,
interesting feature request. I assume, currently you use a wiki macro like 'attachment:file.zip' or 'source:some/file'? If so, then it would be good practice to not alter the behavior of these links. Rather a new wiki macro link like 'preview_attachment:file.zip' or 'preview_source:some/file' should be implemented. Is that, what you are looking for?
Best regards
Stephan
… Am 28.02.2022 um 14:45 schrieb EmilioCasanova ***@***.***>:
Hi
The plugin works fine, but I use I lot of links of documents in the WIKI page of Redmine for my projects and it could be great to have a preview for them. Have you considered integrating the WIKI page into the scope of the plugin?
Best regards
—
Reply to this email directly, view it on GitHub <#42>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJWRDRH5CSDXO3ZFKHIXGF3U5N37HANCNFSM5PREIAYQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.
EmilioCasanova commented
Dear Stephan,
Thank you for your quick response.
I am not familiar with wiki macros but I suppose it can be a solution to
my problem.
Just to clarify, here is the code that I use in the wiki module.
Now in my wiki module I use links to documents in a server such as :
* [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
When I use pdf files I have a hyperlink with a nice preview when I click on
it
But when I use other formats such as docx such as:
* [Link name [docx](\\\\serverName\\folder\\FileName.docx)
I have a hyperlink without a preview and it only downloads the file when I
click on it.
I read in your github page that :
"Redmine plugin to preview various file types in redmine's preview pane.
Works for issue attachments, documents module, files module and
repositories."
The wiki module is not mentioned, so I figured that it's not in the scope
of the plugin.
Could it be an easy way to make it work with some hyperlinks in the wiki
module or with a macro such as you suggest ?
Best regards
Emilio
Le lun. 28 févr. 2022 à 20:02, Dr. Stephan Wenzel ***@***.***>
a écrit :
… Dear Emilio,
interesting feature request. I assume, currently you use a wiki macro like
'attachment:file.zip' or 'source:some/file'? If so, then it would be good
practice to not alter the behavior of these links. Rather a new wiki macro
link like 'preview_attachment:file.zip' or 'preview_source:some/file'
should be implemented. Is that, what you are looking for?
Best regards
Stephan
> Am 28.02.2022 um 14:45 schrieb EmilioCasanova ***@***.***>:
>
>
> Hi
> The plugin works fine, but I use I lot of links of documents in the WIKI
page of Redmine for my projects and it could be great to have a preview for
them. Have you considered integrating the WIKI page into the scope of the
plugin?
>
> Best regards
>
> —
> Reply to this email directly, view it on GitHub <
#42>, or
unsubscribe <
https://github.com/notifications/unsubscribe-auth/AJWRDRH5CSDXO3ZFKHIXGF3U5N37HANCNFSM5PREIAYQ
>.
> Triage notifications on the go with GitHub Mobile for iOS <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
> You are receiving this because you are subscribed to this thread.
>
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS4UHWZBSJDZ4TGR77RJI6LU5PBEXANCNFSM5PREIAYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Emilio Casanova
ing. dipl. EPFL microtechnique
Chemin de Bérée 8b
CH – 1010 Lausanne
Natel 078 749 58 81
***@***.***
HugoHasenbein commented
Dear Emilio,
the markdown link
* [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
links to another server than redmine itself. Therefore, redmine does not have access to \\folder\\FileName.pdf on \\\\serverName. The plugin needs to convert the file to something readable for a browser on the server itself. Browsers can deal with pdf's, therefore the existing pdf preview in your current setup.
To make links like * [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf) work, then redmine would need to first download the file from "serverName" and the convert it locally and then present to the browser the converted file. Further, the path \\\\serverName\\folder\\FileName.pdf may work for your browser but not necessarily for the remote server, so that redmine would not necessarily be able to download the file at all.
I doubt, this setup is implementable in an easy way.
Best regards
Stephan
… Am 28.02.2022 um 21:00 schrieb EmilioCasanova ***@***.***>:
Dear Stephan,
Thank you for your quick response.
I am not familiar with wiki macros but I suppose it can be a solution to
my problem.
Just to clarify, here is the code that I use in the wiki module.
Now in my wiki module I use links to documents in a server such as :
* [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
When I use pdf files I have a hyperlink with a nice preview when I click on
it
But when I use other formats such as docx such as:
* [Link name [docx](\\\\serverName\\folder\\FileName.docx)
I have a hyperlink without a preview and it only downloads the file when I
click on it.
I read in your github page that :
"Redmine plugin to preview various file types in redmine's preview pane.
Works for issue attachments, documents module, files module and
repositories."
The wiki module is not mentioned, so I figured that it's not in the scope
of the plugin.
Could it be an easy way to make it work with some hyperlinks in the wiki
module or with a macro such as you suggest ?
Best regards
Emilio
Le lun. 28 févr. 2022 à 20:02, Dr. Stephan Wenzel ***@***.***>
a écrit :
> Dear Emilio,
>
> interesting feature request. I assume, currently you use a wiki macro like
> 'attachment:file.zip' or 'source:some/file'? If so, then it would be good
> practice to not alter the behavior of these links. Rather a new wiki macro
> link like 'preview_attachment:file.zip' or 'preview_source:some/file'
> should be implemented. Is that, what you are looking for?
>
> Best regards
>
> Stephan
>
> > Am 28.02.2022 um 14:45 schrieb EmilioCasanova ***@***.***>:
> >
> >
> > Hi
> > The plugin works fine, but I use I lot of links of documents in the WIKI
> page of Redmine for my projects and it could be great to have a preview for
> them. Have you considered integrating the WIKI page into the scope of the
> plugin?
> >
> > Best regards
> >
> > —
> > Reply to this email directly, view it on GitHub <
> #42>, or
> unsubscribe <
> https://github.com/notifications/unsubscribe-auth/AJWRDRH5CSDXO3ZFKHIXGF3U5N37HANCNFSM5PREIAYQ
> >.
> > Triage notifications on the go with GitHub Mobile for iOS <
> https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android <
> https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> >.
> > You are receiving this because you are subscribed to this thread.
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#42 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS4UHWZBSJDZ4TGR77RJI6LU5PBEXANCNFSM5PREIAYQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
--
Emilio Casanova
ing. dipl. EPFL microtechnique
Chemin de Bérée 8b
CH – 1010 Lausanne
Natel 078 749 58 81
***@***.***
—
Reply to this email directly, view it on GitHub <#42 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJWRDRERL7AR72LMW4SQCZTU5PH5JANCNFSM5PREIAYQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.
EmilioCasanova commented
Dear Stephan,
Thanks for the explanation. It's clearer now.
The idea behind the links to files from another server other than redmine
itself was to have the possibility to always have the last version of a
file and to modify and update the file without uploading it to redmine.
If one day you find a way to do it, I will be glad to be informed to use
this new functionality.
But t understand that now your plugin can convert only files inside the
redmine server.
Best regards
Emilio
Le lun. 28 févr. 2022 à 21:20, Dr. Stephan Wenzel ***@***.***>
a écrit :
… Dear Emilio,
the markdown link
> * [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
links to another server than redmine itself. Therefore, redmine does not
have access to \\folder\\FileName.pdf on \\\\serverName. The plugin needs
to convert the file to something readable for a browser on the server
itself. Browsers can deal with pdf's, therefore the existing pdf preview in
your current setup.
To make links like * [Link name
[pdf]](\\\\serverName\\folder\\FileName.pdf) work, then redmine would need
to first download the file from "serverName" and the convert it locally and
then present to the browser the converted file. Further, the path
\\\\serverName\\folder\\FileName.pdf may work for your browser but not
necessarily for the remote server, so that redmine would not necessarily be
able to download the file at all.
I doubt, this setup is implementable in an easy way.
Best regards
Stephan
> Am 28.02.2022 um 21:00 schrieb EmilioCasanova ***@***.***>:
>
>
> Dear Stephan,
>
> Thank you for your quick response.
>
> I am not familiar with wiki macros but I suppose it can be a solution to
> my problem.
>
> Just to clarify, here is the code that I use in the wiki module.
>
> Now in my wiki module I use links to documents in a server such as :
>
> * [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
>
> When I use pdf files I have a hyperlink with a nice preview when I click
on
> it
>
> But when I use other formats such as docx such as:
>
> * [Link name [docx](\\\\serverName\\folder\\FileName.docx)
>
> I have a hyperlink without a preview and it only downloads the file when
I
> click on it.
>
> I read in your github page that :
>
> "Redmine plugin to preview various file types in redmine's preview pane.
> Works for issue attachments, documents module, files module and
> repositories."
>
> The wiki module is not mentioned, so I figured that it's not in the scope
> of the plugin.
>
> Could it be an easy way to make it work with some hyperlinks in the wiki
> module or with a macro such as you suggest ?
>
> Best regards
>
> Emilio
>
>
>
>
>
>
> Le lun. 28 févr. 2022 à 20:02, Dr. Stephan Wenzel ***@***.***>
> a écrit :
>
> > Dear Emilio,
> >
> > interesting feature request. I assume, currently you use a wiki macro
like
> > 'attachment:file.zip' or 'source:some/file'? If so, then it would be
good
> > practice to not alter the behavior of these links. Rather a new wiki
macro
> > link like 'preview_attachment:file.zip' or 'preview_source:some/file'
> > should be implemented. Is that, what you are looking for?
> >
> > Best regards
> >
> > Stephan
> >
> > > Am 28.02.2022 um 14:45 schrieb EmilioCasanova ***@***.***>:
> > >
> > >
> > > Hi
> > > The plugin works fine, but I use I lot of links of documents in the
WIKI
> > page of Redmine for my projects and it could be great to have a
preview for
> > them. Have you considered integrating the WIKI page into the scope of
the
> > plugin?
> > >
> > > Best regards
> > >
> > > —
> > > Reply to this email directly, view it on GitHub <
> > #42>, or
> > unsubscribe <
> >
https://github.com/notifications/unsubscribe-auth/AJWRDRH5CSDXO3ZFKHIXGF3U5N37HANCNFSM5PREIAYQ
> > >.
> > > Triage notifications on the go with GitHub Mobile for iOS <
> >
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> > or Android <
> >
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> > >.
> > > You are receiving this because you are subscribed to this thread.
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
#42 (comment)
>,
> > or unsubscribe
> > <
https://github.com/notifications/unsubscribe-auth/AS4UHWZBSJDZ4TGR77RJI6LU5PBEXANCNFSM5PREIAYQ
>
> > .
> > Triage notifications on the go with GitHub Mobile for iOS
> > <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> > or Android
> > <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
> >
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
>
> --
> Emilio Casanova
> ing. dipl. EPFL microtechnique
> Chemin de Bérée 8b
> CH – 1010 Lausanne
> Natel 078 749 58 81
> ***@***.***
> —
> Reply to this email directly, view it on GitHub <
#42 (comment)>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AJWRDRERL7AR72LMW4SQCZTU5PH5JANCNFSM5PREIAYQ
>.
> Triage notifications on the go with GitHub Mobile for iOS <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
> You are receiving this because you commented.
>
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS4UHW672SGTND2TIZEBUITU5PKJJANCNFSM5PREIAYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Emilio Casanova
ing. dipl. EPFL microtechnique
Chemin de Bérée 8b
CH – 1010 Lausanne
Natel 078 749 58 81
***@***.***
HugoHasenbein commented
Dear Emilio,
just mount the directory, you link to, with a filesystem repository within redmine.
Best regards
Stephan
… Am 28.02.2022 um 22:44 schrieb EmilioCasanova ***@***.***>:
Dear Stephan,
Thanks for the explanation. It's clearer now.
The idea behind the links to files from another server other than redmine
itself was to have the possibility to always have the last version of a
file and to modify and update the file without uploading it to redmine.
If one day you find a way to do it, I will be glad to be informed to use
this new functionality.
But t understand that now your plugin can convert only files inside the
redmine server.
Best regards
Emilio
Le lun. 28 févr. 2022 à 21:20, Dr. Stephan Wenzel ***@***.***>
a écrit :
> Dear Emilio,
>
> the markdown link
>
> > * [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
>
> links to another server than redmine itself. Therefore, redmine does not
> have access to \\folder\\FileName.pdf on \\\\serverName. The plugin needs
> to convert the file to something readable for a browser on the server
> itself. Browsers can deal with pdf's, therefore the existing pdf preview in
> your current setup.
>
> To make links like * [Link name
> [pdf]](\\\\serverName\\folder\\FileName.pdf) work, then redmine would need
> to first download the file from "serverName" and the convert it locally and
> then present to the browser the converted file. Further, the path
> \\\\serverName\\folder\\FileName.pdf may work for your browser but not
> necessarily for the remote server, so that redmine would not necessarily be
> able to download the file at all.
>
> I doubt, this setup is implementable in an easy way.
>
> Best regards
>
> Stephan
>
> > Am 28.02.2022 um 21:00 schrieb EmilioCasanova ***@***.***>:
> >
> >
> > Dear Stephan,
> >
> > Thank you for your quick response.
> >
> > I am not familiar with wiki macros but I suppose it can be a solution to
> > my problem.
> >
> > Just to clarify, here is the code that I use in the wiki module.
> >
> > Now in my wiki module I use links to documents in a server such as :
> >
> > * [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
> >
> > When I use pdf files I have a hyperlink with a nice preview when I click
> on
> > it
> >
> > But when I use other formats such as docx such as:
> >
> > * [Link name [docx](\\\\serverName\\folder\\FileName.docx)
> >
> > I have a hyperlink without a preview and it only downloads the file when
> I
> > click on it.
> >
> > I read in your github page that :
> >
> > "Redmine plugin to preview various file types in redmine's preview pane.
> > Works for issue attachments, documents module, files module and
> > repositories."
> >
> > The wiki module is not mentioned, so I figured that it's not in the scope
> > of the plugin.
> >
> > Could it be an easy way to make it work with some hyperlinks in the wiki
> > module or with a macro such as you suggest ?
> >
> > Best regards
> >
> > Emilio
> >
> >
> >
> >
> >
> >
> > Le lun. 28 févr. 2022 à 20:02, Dr. Stephan Wenzel ***@***.***>
> > a écrit :
> >
> > > Dear Emilio,
> > >
> > > interesting feature request. I assume, currently you use a wiki macro
> like
> > > 'attachment:file.zip' or 'source:some/file'? If so, then it would be
> good
> > > practice to not alter the behavior of these links. Rather a new wiki
> macro
> > > link like 'preview_attachment:file.zip' or 'preview_source:some/file'
> > > should be implemented. Is that, what you are looking for?
> > >
> > > Best regards
> > >
> > > Stephan
> > >
> > > > Am 28.02.2022 um 14:45 schrieb EmilioCasanova ***@***.***>:
> > > >
> > > >
> > > > Hi
> > > > The plugin works fine, but I use I lot of links of documents in the
> WIKI
> > > page of Redmine for my projects and it could be great to have a
> preview for
> > > them. Have you considered integrating the WIKI page into the scope of
> the
> > > plugin?
> > > >
> > > > Best regards
> > > >
> > > > —
> > > > Reply to this email directly, view it on GitHub <
> > > #42>, or
> > > unsubscribe <
> > >
> https://github.com/notifications/unsubscribe-auth/AJWRDRH5CSDXO3ZFKHIXGF3U5N37HANCNFSM5PREIAYQ
> > > >.
> > > > Triage notifications on the go with GitHub Mobile for iOS <
> > >
> https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
> >
> > > or Android <
> > >
> https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> > > >.
> > > > You are receiving this because you are subscribed to this thread.
> > > >
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> #42 (comment)
> >,
> > > or unsubscribe
> > > <
> https://github.com/notifications/unsubscribe-auth/AS4UHWZBSJDZ4TGR77RJI6LU5PBEXANCNFSM5PREIAYQ
> >
> > > .
> > > Triage notifications on the go with GitHub Mobile for iOS
> > > <
> https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
> >
> > > or Android
> > > <
> https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> >.
> > >
> > > You are receiving this because you authored the thread.Message ID:
> > > ***@***.***>
> > >
> >
> >
> > --
> > Emilio Casanova
> > ing. dipl. EPFL microtechnique
> > Chemin de Bérée 8b
> > CH – 1010 Lausanne
> > Natel 078 749 58 81
> > ***@***.***
> > —
> > Reply to this email directly, view it on GitHub <
> #42 (comment)>,
> or unsubscribe <
> https://github.com/notifications/unsubscribe-auth/AJWRDRERL7AR72LMW4SQCZTU5PH5JANCNFSM5PREIAYQ
> >.
> > Triage notifications on the go with GitHub Mobile for iOS <
> https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android <
> https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> >.
> > You are receiving this because you commented.
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#42 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS4UHW672SGTND2TIZEBUITU5PKJJANCNFSM5PREIAYQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
--
Emilio Casanova
ing. dipl. EPFL microtechnique
Chemin de Bérée 8b
CH – 1010 Lausanne
Natel 078 749 58 81
***@***.***
—
Reply to this email directly, view it on GitHub <#42 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJWRDREOGM55RC6L257RB5TU5PUDVANCNFSM5PREIAYQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.
EmilioCasanova commented
Dear Stephan,
Thanks for the idea.
Best regards
Emilio
Le mar. 1 mars 2022 à 09:05, Dr. Stephan Wenzel ***@***.***>
a écrit :
… Dear Emilio,
just mount the directory, you link to, with a filesystem repository within
redmine.
Best regards
Stephan
> Am 28.02.2022 um 22:44 schrieb EmilioCasanova ***@***.***>:
>
>
> Dear Stephan,
>
> Thanks for the explanation. It's clearer now.
>
> The idea behind the links to files from another server other than redmine
> itself was to have the possibility to always have the last version of a
> file and to modify and update the file without uploading it to redmine.
> If one day you find a way to do it, I will be glad to be informed to use
> this new functionality.
> But t understand that now your plugin can convert only files inside the
> redmine server.
>
> Best regards
>
> Emilio
>
> Le lun. 28 févr. 2022 à 21:20, Dr. Stephan Wenzel ***@***.***>
> a écrit :
>
> > Dear Emilio,
> >
> > the markdown link
> >
> > > * [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
> >
> > links to another server than redmine itself. Therefore, redmine does
not
> > have access to \\folder\\FileName.pdf on \\\\serverName. The plugin
needs
> > to convert the file to something readable for a browser on the server
> > itself. Browsers can deal with pdf's, therefore the existing pdf
preview in
> > your current setup.
> >
> > To make links like * [Link name
> > [pdf]](\\\\serverName\\folder\\FileName.pdf) work, then redmine would
need
> > to first download the file from "serverName" and the convert it
locally and
> > then present to the browser the converted file. Further, the path
> > \\\\serverName\\folder\\FileName.pdf may work for your browser but not
> > necessarily for the remote server, so that redmine would not
necessarily be
> > able to download the file at all.
> >
> > I doubt, this setup is implementable in an easy way.
> >
> > Best regards
> >
> > Stephan
> >
> > > Am 28.02.2022 um 21:00 schrieb EmilioCasanova ***@***.***>:
> > >
> > >
> > > Dear Stephan,
> > >
> > > Thank you for your quick response.
> > >
> > > I am not familiar with wiki macros but I suppose it can be a
solution to
> > > my problem.
> > >
> > > Just to clarify, here is the code that I use in the wiki module.
> > >
> > > Now in my wiki module I use links to documents in a server such as :
> > >
> > > * [Link name [pdf]](\\\\serverName\\folder\\FileName.pdf)
> > >
> > > When I use pdf files I have a hyperlink with a nice preview when I
click
> > on
> > > it
> > >
> > > But when I use other formats such as docx such as:
> > >
> > > * [Link name [docx](\\\\serverName\\folder\\FileName.docx)
> > >
> > > I have a hyperlink without a preview and it only downloads the file
when
> > I
> > > click on it.
> > >
> > > I read in your github page that :
> > >
> > > "Redmine plugin to preview various file types in redmine's preview
pane.
> > > Works for issue attachments, documents module, files module and
> > > repositories."
> > >
> > > The wiki module is not mentioned, so I figured that it's not in the
scope
> > > of the plugin.
> > >
> > > Could it be an easy way to make it work with some hyperlinks in the
wiki
> > > module or with a macro such as you suggest ?
> > >
> > > Best regards
> > >
> > > Emilio
> > >
> > >
> > >
> > >
> > >
> > >
> > > Le lun. 28 févr. 2022 à 20:02, Dr. Stephan Wenzel ***@***.***>
> > > a écrit :
> > >
> > > > Dear Emilio,
> > > >
> > > > interesting feature request. I assume, currently you use a wiki
macro
> > like
> > > > 'attachment:file.zip' or 'source:some/file'? If so, then it would
be
> > good
> > > > practice to not alter the behavior of these links. Rather a new
wiki
> > macro
> > > > link like 'preview_attachment:file.zip' or
'preview_source:some/file'
> > > > should be implemented. Is that, what you are looking for?
> > > >
> > > > Best regards
> > > >
> > > > Stephan
> > > >
> > > > > Am 28.02.2022 um 14:45 schrieb EmilioCasanova ***@***.***>:
> > > > >
> > > > >
> > > > > Hi
> > > > > The plugin works fine, but I use I lot of links of documents in
the
> > WIKI
> > > > page of Redmine for my projects and it could be great to have a
> > preview for
> > > > them. Have you considered integrating the WIKI page into the scope
of
> > the
> > > > plugin?
> > > > >
> > > > > Best regards
> > > > >
> > > > > —
> > > > > Reply to this email directly, view it on GitHub <
> > > > #42>,
or
> > > > unsubscribe <
> > > >
> >
https://github.com/notifications/unsubscribe-auth/AJWRDRH5CSDXO3ZFKHIXGF3U5N37HANCNFSM5PREIAYQ
> > > > >.
> > > > > Triage notifications on the go with GitHub Mobile for iOS <
> > > >
> >
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
> > >
> > > > or Android <
> > > >
> >
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> > > > >.
> > > > > You are receiving this because you are subscribed to this thread.
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly, view it on GitHub
> > > > <
> >
#42 (comment)
> > >,
> > > > or unsubscribe
> > > > <
> >
https://github.com/notifications/unsubscribe-auth/AS4UHWZBSJDZ4TGR77RJI6LU5PBEXANCNFSM5PREIAYQ
> > >
> > > > .
> > > > Triage notifications on the go with GitHub Mobile for iOS
> > > > <
> >
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
> > >
> > > > or Android
> > > > <
> >
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> > >.
> > > >
> > > > You are receiving this because you authored the thread.Message ID:
> > > > ***@***.***>
> > > >
> > >
> > >
> > > --
> > > Emilio Casanova
> > > ing. dipl. EPFL microtechnique
> > > Chemin de Bérée 8b
> > > CH – 1010 Lausanne
> > > Natel 078 749 58 81
> > > ***@***.***
> > > —
> > > Reply to this email directly, view it on GitHub <
> >
#42 (comment)
>,
> > or unsubscribe <
> >
https://github.com/notifications/unsubscribe-auth/AJWRDRERL7AR72LMW4SQCZTU5PH5JANCNFSM5PREIAYQ
> > >.
> > > Triage notifications on the go with GitHub Mobile for iOS <
> >
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> > or Android <
> >
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> > >.
> > > You are receiving this because you commented.
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
#42 (comment)
>,
> > or unsubscribe
> > <
https://github.com/notifications/unsubscribe-auth/AS4UHW672SGTND2TIZEBUITU5PKJJANCNFSM5PREIAYQ
>
> > .
> > Triage notifications on the go with GitHub Mobile for iOS
> > <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> > or Android
> > <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
> >
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
>
> --
> Emilio Casanova
> ing. dipl. EPFL microtechnique
> Chemin de Bérée 8b
> CH – 1010 Lausanne
> Natel 078 749 58 81
> ***@***.***
> —
> Reply to this email directly, view it on GitHub <
#42 (comment)>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AJWRDREOGM55RC6L257RB5TU5PUDVANCNFSM5PREIAYQ
>.
> Triage notifications on the go with GitHub Mobile for iOS <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
> You are receiving this because you commented.
>
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS4UHWZRP5NJGMKDNLUTJ43U5XFVRANCNFSM5PREIAYQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Emilio Casanova
ing. dipl. EPFL microtechnique
Chemin de Bérée 8b
CH – 1010 Lausanne
Natel 078 749 58 81
***@***.***