Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW|add member civility to the labels #31710

Merged
merged 9 commits into from
Nov 7, 2024
Merged

Conversation

AlainRnet
Copy link
Contributor

NEW|New add member civility to the labels

as described on https://www.dolibarr.fr/forum/t/modification-carte-ou-licence-adherent/36013/15
But I don't know how to do to add extrafields. If anybody has an idea to get me on the track...

Note that the global variable ADHERENT_ETIQUETTE_TEXT does not work. \n appear in text instead of a return line, only those of this file return a new line, as described on https://www.dolibarr.fr/forum/t/personnaliser-champs-a-imprimer-sur-etiquettes-pdf-des-adherents/47668

add member civility to the labels, as described on https://www.dolibarr.fr/forum/t/personnaliser-champs-a-imprimer-sur-etiquettes-pdf-des-adherents/47668

But I don't know how to do to add extrafields. If anybody has an idea to get me on the track...
@hregis
Copy link
Contributor

hregis commented Nov 6, 2024

@AlainRnet request civility code instead the label and use langs->trans with civility code

as proposed by @hregis
@AlainRnet
Copy link
Contributor Author

You’re absolutely right, thank you for the tip!
Do you have a lead for the extrafields, which are "options" based on what I see in the MySQL rendering: options_". $key ??

@hregis
Copy link
Contributor

hregis commented Nov 6, 2024

@AlainRnet try the tag __OPTIONS_XXXX__ XXX is the $key in upper case

added member extrafields to display extrafields values
@AlainRnet
Copy link
Contributor Author

Thank you @hregis this niew code works for me.

To understand: in the next line, what is the function complete_substitutions_array($substitutionarray, $langs, $adherentstatic);? Strangely, if I comment on this line, it does not change the rendering?!?

@hregis
Copy link
Contributor

hregis commented Nov 6, 2024

@AlainRnet "complete_substitutions_array" is for external module for completed/personnalized the substitution

@eldy eldy merged commit 32640c4 into Dolibarr:develop Nov 7, 2024
2 of 4 checks passed
@AlainRnet AlainRnet deleted the patch-11 branch November 7, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants