georgie
Member
Hi
I answer just now because thanks to your last post, I have greatly improved my PDF exports, but it took time to adapt my code, but with success!!!
So thank you! My exports are increasingly pro!
So now, I'd like to go further, and I have some more questions:
- How to hide a field without condition ?
In fact, I can already do this, but like this:
It work, but I do not know if it is really the good way. What do you think about ?
- How to view complete email address in the PDF export (no problem in my web form).
Indeed, in my PDF, I have always:
- How to "catch" a field, or a field title, or a complete group, to customize it in the custom_css.php ?
Indeed, I can customized all the "fabrikElement", but I can not customized fields separately. For example, I have tried this but without success:
- How to insert images in the detail template default.php ?
Indeed for example, when I use this code, image are in black and with and bad quality:
- More difficult : how to hide a group according the value of a field that is not in the group in question ?
Indeed, thanks to you, I can already hide a group according the value of a field, but only if the field is in the group, like this:
Aaarf, sorry for all questions, but more it work, more we want it work !
Thank you !!!!
I answer just now because thanks to your last post, I have greatly improved my PDF exports, but it took time to adapt my code, but with success!!!
So thank you! My exports are increasingly pro!
So now, I'd like to go further, and I have some more questions:
- How to hide a field without condition ?
In fact, I can already do this, but like this:
Code:
if ($element->id == 'mytable___field1_ro' && $this->elements['field1']) {continue;}
- How to view complete email address in the PDF export (no problem in my web form).
Indeed, in my PDF, I have always:
This e-mail address is protected against spambots. You need JavaScript enabled to view it
- How to "catch" a field, or a field title, or a complete group, to customize it in the custom_css.php ?
Indeed, I can customized all the "fabrikElement", but I can not customized fields separately. For example, I have tried this but without success:
Code:
#{$form} .fabrikElement div#mytable___field1{
background-color: red !important;
}
- How to insert images in the detail template default.php ?
Indeed for example, when I use this code, image are in black and with and bad quality:
Code:
<img style="float: right;" alt="logo DRIIHM" src="images/logo.png">
- More difficult : how to hide a group according the value of a field that is not in the group in question ?
Indeed, thanks to you, I can already hide a group according the value of a field, but only if the field is in the group, like this:
Code:
if ((int) $group->id === 111 && $this->groups['Name of the group']->elements['field1']->value === '') :continue;endif;
Aaarf, sorry for all questions, but more it work, more we want it work !
Thank you !!!!