Exporter des traductions
Aller à la navigation
Aller à la recherche
Configuration
Groupe
Accueil
Activity
BOMGenerator
CoefPricR
CustomLine
CustomProduct
CustomTabs
CustomTooltip
DoliSmart
Dolitweak
ExtraECM
Extraexpense
ExtraList
ExtraOdt
Extraprice
Factory
Forecast
Guide d'installation
Guide de mise à jour
MatchR
MoreActionList
MoreField
MoreFlow
MoreHoliday
MyBooking
MyBroadcast
MyClock
MyDiscount
MyField
MyList
MySchedule
Portofolio
ProjectBudget
RmindR
SupplierPricR
Transporteur
Langue
aa - Afar
aae - Arbëresh
ab - Abkhazian
abs - Ambonese Malay
ace - Achinese
acm - Iraqi Arabic
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
ann - Obolo
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
ban-bali - Balinese (Balinese script)
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bci - Baoulé
bcl - Central Bikol
bdr - West Coast Bajau
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bew - Betawi
bg - Bulgarian
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
blk - Pa'O
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
cdo - Mindong
ce - Chechen
ceb - Cebuano
ch - Chamorro
chn - Chinook Jargon
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cpx - Pu–Xian Min
cpx-hans - Pu–Xian Min (Simplified Han script)
cpx-hant - Pu–Xian Min (Traditional Han script)
cpx-latn - Pu–Xian Min (Latin script)
cr - Cree
crh - Crimean Tatar
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
crh-ro - Dobrujan Tatar
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
dag - Dagbani
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
dga - Dagaare
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dv - Divehi
dz - Dzongkha
ee - Ewe
efi - Efik
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - Spanish (formal address)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
fat - Fanti
ff - Fula
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fon - Fon
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gaa - Ga
gag - Gagauz
gan - Gan
gan-hans - Gan (Simplified Han script)
gan-hant - Gan (Traditional Han script)
gcf - Guadeloupean Creole
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
gld - Nanai
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
gpe - Ghanaian Pidgin
grc - Ancient Greek
gsw - Alemannic
gu - Gujarati
guc - Wayuu
gur - Frafra
guw - Gun
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
hno - Northern Hindko
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
hsn - Xiang
ht - Haitian Creole
hu - Hungarian
hu-formal - Hungarian (formal address)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
ibb - Ibibio
id - Indonesian
ie - Interlingue
ig - Igbo
igl - Igala
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kai - Karekare
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kcg - Tyap
kea - Kabuverdianu
kg - Kongo
kge - Komering
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjh - Khakas
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ksw - S'gaw Karen
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kus - Kʋsaal
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mad - Madurese
mag - Magahi
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Māori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mnc - Manchu
mnc-latn - Manchu (Latin script)
mnc-mong - Manchu (Mongolian script)
mni - Manipuri
mnw - Mon
mo - Moldovan
mos - Mossi
mr - Marathi
mrh - Mara
mrj - Western Mari
ms - Malay
ms-arab - Malay (Jawi script)
mt - Maltese
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Minnan
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
nia - Nias
nit - కొలామి
niu - Niuean
nl - Dutch
nl-informal - Dutch (informal address)
nmz - Nawdm
nn - Norwegian Nynorsk
no - Norwegian
nod - Northern Thai
nog - Nogai
nov - Novial
nqo - N’Ko
nrm - Norman
nso - Northern Sotho
nv - Navajo
ny - Nyanja
nyn - Nyankole
nyo - Nyoro
nys - Nyungar
oc - Occitan
ojb - Northwestern Ojibwa
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pcm - Nigerian Pidgin
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
pwn - Paiwan
qqq - Message documentation
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rki - Arakanese
rm - Romansh
rmc - Carpathian Romani
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
rsk - Pannonian Rusyn
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rut - Rutul
rw - Kinyarwanda
ryu - Okinawan
sa - Sanskrit
sah - Yakut
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
se-fi - Northern Sami (Finland)
se-no - Northern Sami (Norway)
se-se - Northern Sami (Sweden)
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
sh-cyrl - Serbo-Croatian (Cyrillic script)
sh-latn - Serbo-Croatian (Latin script)
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy - Shawiya
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sjd - Kildin Sami
sje - Pite Sami
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sms - Skolt Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
sro - Campidanese Sardinian
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - Siberian Tatar
su - Sundanese
sv - Swedish
sw - Swahili
syl - Sylheti
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Tayal
tcy - Tulu
tdd - Tai Nuea
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tly-cyrl - Talysh (Cyrillic script)
tn - Tswana
to - Tongan
tok - Toki Pona
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
ttj - Tooro
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vmw - Makhuwa
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
wal - Wolaytta
war - Waray
wls - Wallisian
wo - Wolof
wuu - Wu
wuu-hans - Wu (Simplified Han script)
wuu-hant - Wu (Traditional Han script)
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yrl - Nheengatu
yue - Cantonese
yue-hans - Cantonese (Simplified Han script)
yue-hant - Cantonese (Traditional Han script)
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Exporter pour une traduction hors-ligne
Exporter au format natif
Exporter au format CSV
Lister
{{DISPLAYTITLE:MyField}}<languages/> {| class="wikitable" |- style="vertical-align:top;" | [[File:Myfield-250x250.png]] | The myField module allows you to customize the labels of menus, tabs, buttons, fields of Dolibarr cards and lists. You can choose the label, color and access of your menus, buttons, tabs and fields of cards and lists yourself |} == Presentation == Depending on the type of myfield (fields of a form, list, tab, ...), several other options can be applied to the fields of the forms such as a background color, display/hide them, add an input mask, input in uppercase ... The combined set of user permissions and myFields access rights allows you to configure user access to the view of fields, their content and their modification. MyField also allows you to hide menus from groups of users and change their destination URL. == Settings == The module is configured from the module administration page accessible via the menus '''Home > Configuration > Modules''' by clicking on the [[file:doli-setup.png]] icon or the [[file:doli-setup-old.png]] icon at the end of the line. [[file:myfield_Configuration_en.png|800px]] <span id="Page_de_configuration_du_module"></span> === Module Configuration Page === ==== Activating the context for development ==== MyField allows you to display on certain Dolibarr pages the contexts that can be used to limit the customization actions of myFields. These contexts will be useful when creating myFields to limit the action of the module to only the pages that have in their code the context indicated on the myField sheet. Configuring the display of contexts on your pages will allow you to identify them to best configure your myfields. {| class="wikitable" | [[file:myfield-Message-contexte.png]] | style="vertical-align:top;" | Enabling the display of contexts results in messages like the one opposite |} ==== Administrators are above access rules ==== You can also choose to disable the use of access rights for the administrator user. If this setting is enabled, the administrator will see, outside of any group, the myfields in operation. ==== Background color of input areas==== By default, input areas in dolibarr are transparent, which does not help readability It is possible to change the background color of input areas ==== Default button color ==== There are three types of buttons in Dolibarr: * Buttons associated with an action * Disabled buttons * Buttons performing a deletion myField allows you to change the color of these ==== Replacing native buttons ==== MyField allows replacing standard Dolibarr buttons with icons. {| class="wikitable" | [[file:myfield_Button-replace.png|300px]] | instead of | [[file:myfield_Button-standard.png|500px]] |} ==== Support Information ==== At the bottom of the configuration page you will find technical information related to your installation. This technical information will be useful and may be requested if you encounter a bug in using the module: [[file:Myfield_Technical-information_en.png||800px]] ===Permissions=== Access to the module's features can be restricted to existing users and groups or those created after the module is installed. Click on the – to add a permission. A granted permission is symbolized by a green check mark ([[file:tick.png]]). {{Note|Warning: there are other settings that can impact access to fields, especially when using an administrator account}} ====User and group permissions==== {| class="wikitable" | [[file:myfield-Permissions-utilisateur_en.png|600px]] | style="vertical-align:top;" | Access to the module's features can be restricted to users and groups, from their profile then Permissions tab, according to the permissions opposite |} <div class="mw-translate-fuzzy"> ====Default Permissions==== {| class="wikitable" | [[file:myfield-Permissions-defaut_en.png|600px]] | style="vertical-align:top;" | The default permissions ('''Home > Users & Group > Choose between Users or Group > Select Permissions'''), granted to any user created after the installation of the module, if he is not added to a group, are the following |} </div> <span id="Démarrage"></span> == Startup == MyField features are accessible from the Patastools main menu tab. Your secondary menu then presents the following menu entries: {| class="wikitable" |- style="vertical-align:top;" | style='border-style: none;' | '''MyField''' | The main entry displays a list of all myFields in your environment |- style="vertical-align:top;" | style='border-style: none;' | '''New mf Field'''<br /> '''New mf Tab'''<br /> '''New mf Tab'''<br /> '''New mf List'''<br /> '''New mf Menu'''<br /> '''New mf Button''' | These entries will display the page for creating a new myField according to its type: * form field * tab * button * list fields * menu |- style="vertical-align:top;" | style='border-style: none;' | '''List of elements''' | This entry will also display the list of myFields saved on your environment |- style="vertical-align:top;" | style='border-style: none;' | '''Access rights to elements''' | This page will allow you to configure the authorizations of user groups to the features of MyFields, tabs and menus. |- style="vertical-align:top;" | style='border-style: none;' | '''Import XML''' | This entry will display a page to copy an import file of a myfield in XML format. |} == Customizations == === Menus === ==== Creating the myField ==== The page for creating a menu-type myField is accessible from the secondary menu link '''Patas-tools > MyField > New myMenu.''' [[File:Myfield-Page-creation-menu_en.png|800px]] {| | style="vertical-align:top;width:50%;" | {| class="wikitable" | style="vertical-align:top;width:25%;" | myField Type | style="vertical-align:top;" | the field automatically filled in based on the menu link you clicked to display this creation page (menu). |- | style="vertical-align:top;" | Native Label | style="vertical-align:top;" | enter here the native label of the menu as it is displayed on your interface. |- | style="vertical-align:top;" | Menu Type | style="vertical-align:top;" | select from the drop-down list the type of menu you want to customize depending on whether it is a main menu, a secondary menu or a secondary menu entry. |- | style="vertical-align:top;" | Replacement text | style="vertical-align:top;" | text of your choice that will be displayed instead of the native label. |- | style="vertical-align:top;" | Author | style="vertical-align:top;" | the name of the creator of the myField |} | style="vertical-align:top;" | {| class="wikitable" | style="vertical-align:top;width:25%;" | Display | style="vertical-align:top;" | *Visible: the field will be displayed. This is the standard operation of Dolibarr. *Invisible: the field will be absent from the cards *Hidden: the field will be absent from the cards but can be displayed (Show/Hide). |- | style="vertical-align:top;" | Background color | style="vertical-align:top;" | use the color selector to determine the background color of the field. |- | style="vertical-align:top;" | Move | style="vertical-align:top;" | enter -1 to move the menu tab to the left, 1 to the right. |- | style="vertical-align:top;" | Redirect URL | style="vertical-align:top;" | Enter here the URL of the page that will be displayed when clicking on the menu tab. If this field is left blank, the native URL of the menu will be kept. |} |} Following the creation of a myField, it will be necessary to define the access rights by user groups from the secondary menu link of the same name (See further) ====Example of customizing a main menu==== Let's customize the ''Home'' menu. [[file:myfield-Param-menu-accueil_en.png|600px]] [[file:Myfield-menu-resultat_en.png|600px]] ====Example of customizing a menu and a secondary menu entry==== Let's customize the Commercial Proposals secondary menu and the New Proposal secondary menu entry. [[file:myfield-Param-menu-secondaire_en.png|800px]] [[file:myfield-Param-entree-menu-secondaire_en.png|800px]] {{Note|The secondary menu entry will be moved down one rank with the code -1 in the Move field of its record}} Following the application of these two customizations, the secondary menu becomes: {| class="wikitable" | [[file:Myfield-entree-menu-secondaire_en.png]] | style="vertical-align:top;" | rather than | [[file:Myfield-menu-secondaire_en.png]] |} ====Special case of secondary menu entries "List"==== To differentiate secondary menu entries of the same name, enter the top-level menu to which they are attached separated by a hash mark ('''#'''): {| class="wikitable" | style="vertical-align:top;" | ''Add to the label the secondary menu: Commercial proposals#List'' [[file:myfield_Liste-param_en.png|600px]] | style="vertical-align:top;" | To get [[file:myfield_Liste-param-menu_en.png]] |} ===Tabs=== ====Creating the myField tab==== The myField creation page is accessible from the secondary menu link '''Patastools > MyField > New MyTab'''. [[file:myfield-Page-creation-onglet_en.png|600px]] {| | style="vertical-align:top;width:50%;" | {| class="wikitable" | style="vertical-align:top;width:25%;" | myField Type | style="vertical-align:top;" | the field automatically filled in based on the menu link you clicked. |- | style="vertical-align:top;" | Native Label | style="vertical-align:top;" | enter here the native label of the menu as it is displayed on the screen. |- | style="vertical-align:top;" | Activation Context | style="vertical-align:top;" | The activation context allows you to limit the action of myFields to only the fields of the pages with the context indicated here. {{Note|<strong>Attention</strong>, for tabs, the context corresponds to the tabTitleText (the name of the first tab) (eg: "Third Party" for the Third Party element, "Product" for the Product element) }} If no context is entered, changes made to the tab by the myfield will apply to all fields with the same label on all records. |- | style="vertical-align:top;" | Replacement text | style="vertical-align:top;" | text of your choice that will be displayed instead of the native label. |- | style="vertical-align:top;" | Author | style="vertical-align:top;" | the name of the creator of the myField |} | style="vertical-align:top;" | {| class="wikitable" | style="vertical-align:top;width:25%;" | Display | style="vertical-align:top;" | *Visible: the field will be displayed. This is the standard operation of Dolibarr. *Invisible: the field will be absent from the cards *Hidden: the field will be absent from the cards but can be displayed (Show/Hide). |- | style="vertical-align:top;" | Background Color | style="vertical-align:top;" | Use the color picker to determine the background color of the myField. |- | style="vertical-align:top;" | Move | style="vertical-align:top;" | Enter -1 to move the menu tab to the left, 1 to move the right. |- | style="vertical-align:top;" | Redirect URL | style="vertical-align:top;" | Enter the URL of the page that will be displayed when the menu tab is clicked. If this field is left blank, the native URL of the menu will be kept. |} |} {{Note|Indicate here only the part of the URL following ''/htdocs/''}} Display request: see Operation section, below Following the creation of a myField, it will be necessary to define the access rights to the myFields by user groups from the secondary menu link of the same name (See section Configuring access rights). ====Example of customizing a tab==== Let's customize the tab sheet of the element sheets. [[file:myfield-Param-onglet-fiche_en.png|800px]] The sheet then becomes [[file:myfield-Natif-fiche_en.png|800px]] {{Note|If the tab is active, the color will be displayed on its edges}} ===Fields=== ====Creating myField==== The myField creation page is accessible from the secondary menu link '''Patastools > MyField > New MyField'''. [[file:myfield-Page-creation_en.png|600px]] {| | style="vertical-align:top;width:50%;" | {| class="wikitable" | style="vertical-align:top;width:25%;" | myField Type | style="vertical-align:top;" | the field automatically filled in based on the menu link you clicked. |- | style="vertical-align:top;" | Native Label | style="vertical-align:top;" | enter here the native label of the field as it is displayed on the screen. |- | style="vertical-align:top;" | Activation Context | style="vertical-align:top;" | the activation context allows you to limit the action of myFields to only the fields of the pages with the context indicated here. If no context is entered, changes made to the tab by the myfield will apply to all fields with the same label on all records. [[#Activation context|List of main contexts]] |- | style="vertical-align:top;" | Replacement text | style="vertical-align:top;" | text of your choice that will be displayed instead of the native label. |- | style="vertical-align:top;" | Author | style="vertical-align:top;" | the name of the creator of the myField |} | style="vertical-align:top;" | {| class="wikitable" | style="vertical-align:top;width:25%;" | Display | style="vertical-align:top;" | *Visible: the field will be displayed. This is the standard operation of Dolibarr. *Invisible: the field will be absent from the cards *Hidden: the field will be absent from the cards but can be displayed (Show/Hide). {{Note|on the latest versions of the module, (Show/Hide) is no longer used, you must now click on the Dolibarr version number (top right)|warn}} |- | style="vertical-align:top;" | Background color | style="vertical-align:top;" | use the color selector to determine the background color of the myField. |- | style="vertical-align:top;" | Move | style="vertical-align:top;" | enter 1 to move up one field, -1 to move down one field. |- | style="vertical-align:top;" | Default value | style="vertical-align:top;" | |- | style="vertical-align:top;" | Input field size | style="vertical-align:top;" | to be defined according to your needs. If left blank, the native value of the field is kept. |- | style="vertical-align:top;" | Mandatory: | style="vertical-align:top;" | check this box to make entering values in the field mandatory to save the creation or modifications of the page {{Note|The control of the field in creation and modification is only carried out if you enter the edition of the field itself|warn}} |- | style="vertical-align:top;" | Input mask | style="vertical-align:top;" | the input mask can be configured with the following characters: *a for a letter (A-Z,a-z) *9 for a number (0-9) *for an alphanumeric character (A-Z,a-z,0-9) :You can add the characters you want to the field to make up your mask. For example, if you want to add an international code to the phone field, the mask will be: +0099-(9)999999999 *UPPERCASE to force uppercase input. *LOWERCASE to force lowercase input. |- | style="vertical-align:top;" | Display request | style="vertical-align:top;" | See Operation section |} |} {{Note|Moving a field in a form is only done within its table. It is therefore possible to move a field up or down, but not to change its column}} Following the creation of a field type myField, it will be necessary to define the access rights to the myFields by user groups from the secondary menu link of the same name (See section Configuring access rights). ====Example of customizing a field==== Let's customize the field ''Id. prof. 2 (SIRET)'' of third-party files. {| class="wikitable" |- style="vertical-align:top;" | [[file:myfield_Param-champ_en.png|600px]] | The field has been set to invisible with a number input mask (999 999 999 99999) |- style="vertical-align:top;" | [[file:Myfield-champ_en.png|600px]] [[file:myfield-Masque_en.png]] | By clicking on the Show/Hide link above the table, the field will be displayed according to the settings saved on the myField sheet When editing the field, the mask will be activated and will only allow the predefined entry and its completion checked (made mandatory) to prevent the page from being saved without it being filled in. |} ===Lists=== It is possible to modify the fields of the native lists of dolibarr (the one with a field selection icon at the end of the list) ====Creating myField==== List myfields allow you to limit the display of fields. It is necessary to open the list page to retrieve information specific to this type of myField * the activation context * the untranslated label of the field ====Example of setting==== We will modify the "Third party" column on the list of interventions [[file:Myfield-masque-tiers_en.png|600px]] Depending on the permissions, the field will also be inaccessible in the field selector. [[file:myfield_Liste-contrats_en.png|600px]] {{Note|If you make a list myField invisible, it will be invisible to all users. To hide it only from one or more groups of users, leave it visible and then add access rights!}} === Buttons === It is possible to modify the buttons present on the dolibarr files ====Creation of myField==== Button myfields allow you to make the button invisible, replace the label, the url associated with the button and make its access visible according to the result of an SQL query [[file:myfield-creation-bouton_en.png|600px]] {{Note|With the native Dolibarr theme, the button label is capitalized, so you must use the original text that you retrieve with the right click and the inspect menu.}} =Conditional display SQL query= The processing query will condition the display of the fields according to the correspondence of the object to the query. It is then possible, for example, to display different fields depending on whether the object is a product or a service. It is possible to transmit two values as parameters: * #ID#: the id of the main object of the page * #USERID#: the id of the active user <span id="Fonctionnement"></span> ==How it works== Enter here the display query applicable to the fields in the following example: #SEL# allows you to replace the SELECT of the SQL query which will be blocked by Dolibarr's native security (SQL Injection) ''#SEL# IF(fk_product_type=1, 1, 0) AS `read`, IF(fk_product_type=1, 1, 0) AS `write` FROM llx_product WHERE rowid=#ID#; '' read allows you to authorize or not the global display of the field write allows you to authorize or not its modification (not necessary in the case of a button or a tab...) If the value is 0, the field is hidden, otherwise it is displayed Be careful, if we leave the field parameter hidden, it will not appear regardless of the value ==Example== With the following myfield [[file:myfield_Creation_requete_en.png|800px]] {| class="wikitable" |- style="vertical-align:top;" | We obtain the following sheet on a '''product''' [[file:myfield_Creation_requete_result_en.png|400px]] | While on the sheet of a '''service''' [[file:myfield_Creation_requete-fiche_en.png|400px]] |} =Setting access rights to myFields, tabs and menus= ==Configuring access rights== As an administrator user, all myFields are visible to you. {{Note|On the MyField module home page, the application of customizations is disabled}} If you have not defined any user groups, myfields are displayed on all users' interfaces. From the secondary menu entry '''Patas-Tools > MyField > tab access rights''', configure the accesses of the user groups: [[file:myfield-Droits-d-acces_en.png|600px]] There are four access rights: {| class="wikitable" |- style="vertical-align:top;" | [[File:lecture-off.png]] Access blocked [[file:lecture-on.png]] Access read | [[file:modif-of.png]] Edit blocked [[file:modif-on.png]] Edit access |} ==Behavior according to access rights== ===Blocked in access ([[file:lecture-off.png]]) === {| class="wikitable" |- style="vertical-align:top;" | [[file:myfield-User-lecture-_en.png|600px]] | The field will be hidden from users in the group. They will not be able to view it the ''Show/Hide'' link will not be active |} ===Read access but blocked from editing ([[file:lecture-on.png]][[file:modif-of.png]]) === {| class="wikitable" |- style="vertical-align:top;" | [[file:myfield-User-lecture-_en.png|600px]] | Users in the group will be able to view the field, but will not be able to edit its content. |} ===Read access and Edit access ([[file:lecture-on.png]][[file:modif-on.png]]) === {| class="wikitable" |- style="vertical-align:top;" | [[file:myfield-User-lecture+-modif+_en.png|600px]] | Users in the group will be able to view and edit the field if their group or user permissions allow them to do so. The field settings then apply (mandatory, input mask, etc.) |} =Other features= ==Importing myFields== It is possible to save a list of myfields and their settings by importing an XML file. From the '''Patas-M Tools > MyField > Import a tab''' page, paste the XML file into the input area and click on the '''Start import''' button. {{Note|If you check the Overwrite previous data box, your list of myfields will be limited to those present in the file you are importing|warn}} Then configure the users' access rights to the myField. ==Activation context== A list of all available contexts is present on the dolibarr wiki: https://wiki.dolibarr.org/index.php?title=Hooks_System#List_of_Contexts_available_in_Dolibarr some of the most common {| | {| class="wikitable" |- style="background-color:orange; font-weight:bold;" | Card | Context |- | Member | membertypecard |- | Categories | categorycard |- | Orders | ordercard |- | Supplier order | ordersuppliercard |- | Contact | contactcard |- | Contract | contractcard |- | Donation | doncard |- | Warehouse | warehousecard |- | Shipping | expeditioncard |- | Customer invoice | invoicecard |- | Supplier invoice | suppliercard |} | style="vertical-align:top;" | {| class="wikitable" |- style="background-color:orange; font-weight:bold;" | Sheet | Context |- | Intervention | interventioncard |- | Delivery | deliverycard |- | Expense report | tripandexpensecard |- | Product | productcard |- | Project | projectcard |- | Commercial proposal | propalcard |- | Customer payment | paymentcard |- | Supplier payment | paymentsupplier |- | Salary | salarycard |- | Task | projecttaskcard |- | Third party | thirdpartycard |- | User | usercard |} |} =Frequently Asked Questions= == General == This chapter lists the difficulties encountered with the module. You will therefore find answers to its use. If you encounter an error other than those described below when using this module: #Disable and reactivate the module, #Check on the ChangeLog if a new version has been published, #Re-install/update the module, #Check that replacing native Dolibarr files is not necessary for the module to work properly. #Check that no incompatibility with another module is indicated. If necessary, follow our recommendations. If, despite these manipulations, the error persists, contact us using the dedicated form (http://docs.patas-monkey.com/support/). This form is the preferred contact method for any difficulty of use or bug report. Also, we thank you for not multiplying the exchange channels for the same object. == Displaying a message at the top of Dolibarr pages== If your Dolibarr pages display a message similar to the following image, it is not an error message, but the display of the contexts of the current page. To no longer see these lines displayed, disable the display of the context (see Configuration). [[file:Myfield-Message-contexte.png]] ==Ordering error message== Some pages of some versions of Dolibarr have an error in their code preventing the correct application of field customization. MyField allows you to identify them in order to correct them. The error message is displayed at the bottom of the page and is as follows: [[file:myfield_Erreur-dbclose-message.png]] Using the URL of the page, open the Dolibarr core file to edit it. For example, if the page containing the message is ''http://.../htdocs/custom/myField/admin/extrafields.php'', successively open the folders ''htdocs'', ''custom'', ''myField'', ''admin'' and open the file ''extrafields.php''. The error comes from the inversion of the lines ''llxFooter();'' and ''$db->close();'' at the end of the file. {| class="wikitable" style="width:60%;" |- style="vertical-align:top;" | Edit the page code to get [[file:Erreur-dbclose-correction.png]] | instead of [[file:Erreur-dbclose.png]] |} ==Multicompany== With the multicompany module, it is necessary to activate the module on each entity
Menu de navigation
Outils personnels
français
Se connecter
Espaces de noms
Traduire
français
Affichages
Statistiques de langue
Statistiques du groupe de messages
Exporter
Plus
Rechercher
Navigation
Accueil
Modifications récentes
Page au hasard
Aide concernant MediaWiki
Outils
Pages spéciales
Version imprimable