Re: Show attributes , posted by deletoille on Tue Jul 17 14:05:50 2007
|
Stefan Ritt wrote: | Grrrr. I already told you in elog:2287 to use Show Attributes Edit instead of Show Attributes. So put following into your config file:
show attributes edit = auteur,Icone, Type Equipement
Note the edit. |
ok sorry sorry
its works with show attributes edit  |
Re: Show attachments = 0, posted by Stefan Ritt on Thu Aug 13 08:41:57 2015
|
That's strange. If you use HTML or ELCode encoding, attachments are automatically hidden if they are used inline. So no "Show attachments = 0" necessary! I just tried that with the demo logbook and here is how it looks:

As you can see, there is no attachment shown in the full view. This is actually handled by the function "is_inline_attachment()" in elogd.c. I don't know if you can do debugging, but somehow this inline test won't work for you and the question is why. Can you try the simple configuration from the demo logbook and see if you still have the problem? Can you show me an example when this does not work. I need to reproduce your problem exactly in order to fix it.
Stefan
Eric Quintero wrote: |
I have "Show attachments = 0" set in [global], but attachments are shown in the "Full" view. Is this the intended behavior? Looking at individual entries correctly hides the attachments.
We use inline images often, so when an attachement is shown at the bottom of a post it is effectively a duplicate, which clutters things up a bit.
|
|
Re: Show attachments = 0, posted by Eric Quintero on Mon Aug 31 17:14:08 2015
|
The automatic hiding behavior is what I'm after, and I've discovered that it is only a problem for PDF attachments. I have reproduced this on the demo logbook on git revision f828049.
I've taken a look at the source you mentioned, but as far as I can tell, it is just looking for the opening of the img tag in the HTML source, and I'm not sure why that is different for a PDF. |
Re: Show attachments = 0, posted by Eric Quintero on Fri Oct 16 00:24:50 2015
|
Hm, looking through the source, there are many many places where PDF files are treated differently than strictly image filetypes (PNG, etc.). This makes sense in the context of multi-page documents.
Still, I like using PDFs for vector plots... I suppose I should also confess to the following modification I've made to my ELOG for treating PDFs like images in drag-and-drop uploading.
--- a/scripts/ckeditor/plugins/dndfiles/plugin.js
+++ b/scripts/ckeditor/plugins/dndfiles/plugin.js
@@ -142,7 +142,7 @@ CKEDITOR.plugins.add( 'dndfiles', {
return;
if(src.indexOf(".png") >= 0 || src.indexOf(".jpg") >= 0 || src.indexOf(".jpeg") >= 0
- || src.indexOf(".gif") >= 0 || src.indexOf(".svg") >= 0) { // This is an image
+ || src.indexOf(".gif") >= 0 || src.indexOf(".svg") >= 0 || src.indexOf(".pdf") >= 0) { // This is an image
html += '<a href = ' + src + '><img src = "' + thumb + '">' + '</a>';
} else { // this is not an image
// Server appends 14 characters in front of the name so we should remove them
|
Re: Show all entries made by ME ?, posted by Stefan Ritt on Wed Nov 20 14:53:07 2002
|
> In my bottom.html file I have:
>
> <A Href="host/Forum/?mode=summary&reverse=1&npp=10&Status=Open">Open</A>
> <A Href="host/Forum/?mode=threaded&reverse=1&npp=10&Status=
> Open">(Threaded)</A> /
> <A Href="host/Forum/?mode=summary&reverse=1&npp=10&Status=C
> losed">Closed</A> /
> <A Href="host/Forum/?mode=summary&reverse=1&npp=10">All</A>
> <A Href="host/Forum/?mode=threaded&reverse=1&npp=10">(threaded)</A>
> tickets.
>
> This sort of implements some of the buttons you have in your whishlist.
>
> This works, because it is the same for all users, now what I would like
> is to add some sort of linke that will "show all entries from ME". I
> could do this on a per user basis, but that's not what I want, Something
> general with $user would be preferable.
>
> Something like:
>
> http://midas.psi.ch/elogdemo/Forum/?
mode=threaded&reverse=1&npp=8&Author=$user
>
> Is this possible ?
I added this feature in version 2.2.3, so now you can click on
http://midas.psi.ch/elogdemo/Forum/?mode=threaded&reverse=1&npp=8&Author=$long_name
and see all your entries. |
Re: Show all common attributes, posted by Stefan Ritt on Tue Nov 26 08:59:28 2002
|
> In the "find" command, when searching over all logbooks, it
> would be nice to see ALL attributes, which are common for all
> logbooks (e.g. typically the author name), not just
> logbook name, date and text.
That depends on how you specify what gets displayed in a search (with
the "Display search" option for example). If you try the following link:
http://midas.psi.ch/elogdemo/Forum/?mode=summary&all=1
you see that all attributes are displayed from the three logbooks in this
installation. |
Re: Show all common attributes, posted by Stephan Egli on Tue Nov 26 18:04:43 2002
|
> > In the "find" command, when searching over all logbooks, it
> > would be nice to see ALL attributes, which are common for all
> > logbooks (e.g. typically the author name), not just
> > logbook name, date and text.
>
> That depends on how you specify what gets displayed in a search (with
> the "Display search" option for example). If you try the following link:
>
> http://midas.psi.ch/elogdemo/Forum/?mode=summary&all=1
>
> you see that all attributes are displayed from the three logbooks in this
> installation.
How does the corresponding elogd.cfg entry look like for the
display search command ? - I can't reproduce this behaviour... |
Re: Show all common attributes, posted by Stefan Ritt on Thu Nov 28 10:01:47 2002
|
> > > In the "find" command, when searching over all logbooks, it
> > > would be nice to see ALL attributes, which are common for all
> > > logbooks (e.g. typically the author name), not just
> > > logbook name, date and text.
> >
> > That depends on how you specify what gets displayed in a search (with
> > the "Display search" option for example). If you try the following link:
> >
> > http://midas.psi.ch/elogdemo/Forum/?mode=summary&all=1
> >
> > you see that all attributes are displayed from the three logbooks in
this
> > installation.
>
> How does the corresponding elogd.cfg entry look like for the
> display search command ? - I can't reproduce this behaviour...
Ok, finally I can confirm the problem. It will be fixed from Version 2.2.4
on. |