virk
I have the following set of data:
---- dataentry ----
documentnr : 34363
Factuurnr : 2014036
date : 2014-11-27
project : 2089
debiteur : ssdle SA
omschrijving : 3rd Invoice
bedrag-ex-btw :
btw :
bedrag-inc-btw :
bedrag-ex-btw-uit : 200,00
btw-uit : 0,00
bedrag-inc-btw-uit : 200,00
betaaldatum :
link_img : prjasdekte:xcvd:ssdfsdf:facturen_uit:34sd3_201436_2089_le.pdf
type : facturen_uit
----
Now I show a table of all data sets like the above with:
---- datatable facturen ----
cols : %pageid%,date,betaaldatum,factuurnr,crediteur,debiteur,omschrijving,bedrag-ex-btw_euro,bedrag-ex-btw-uit_euro,link_img,note
headers : Col.nr,Datum, Bezahlt,F.-Nr.,Crediteur,Debiteur,Beschreibung,AUSGANG,EINGANG,Link,Note
align : r,r,r,r,r,r,r,r,r,r,r,l
max : 100
filter : project=2089
filterand: type*~facturen*
sort : ^%pageid%
summarize: 1
dynfilters: 1
widths : 46px,56px,56px,48px,80px,80px,-,60px,60px,10px,16px
----
The problem now is that the "link_img" appears as "prjasdekte:xcvd:ssdfsdf:facturen_uit:34sd3_201436_2089_le.pdf". This is much too long for being shown in this table. It would be better, if I just saw a pdf-icon, f.e.
Does anybody understand and knows how to solve my problem?
virk
For to be honest, the problem has occurred with the update :-) Before the update I just saw a pdf-icon, which was sufficient for me. Now dokuwiki tries to show the complete link to me, which widens the column far too much.
virk
I attached a screenshot of my situation. In the column "link" you can see what I mean.
Kind regards
CORRECTION: I just saw, it is without the namespace, but unfortunately it is still too long. Just a pdf-icon would be nice. Is that possible somehow?
virk
I just checked it out and it comes very close to my intention. Thank you!
But one question remains: I now have added a type alias called "pdf" with just a "-" in the suffix. In the data entry my line is:
link_img : projekte:6300:buchhaltung:facturen_uit:34363_2014036_2089_gaastale.pdf| #
In the data table with ...w-uit_euro,link_pdf,noteā¦ in the definition line I see the pdf-icon plus the configured "-" of the type alias. I think to need this "-" because otherwise the complete filename is displayed. Is there a way to only show the icon?
In any case, thank a lot; a further step ahead for me.
klap-in
Using only | without some text trailing, but only spaces or nothing, means that the mediaid is used. It is a default feature of the link build function to use the mediaid instead of empty strings, and is difficult to avoid for me. I don't know a simple solution for this so far. Suggestions welcome.