# I have my own module, which contains project numbers, how can I make the Projectnumber a hyperlink to the Project?

**URL:** <https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559>\
**Category:** Developing for Dolibarr\
**Created:** [September 22, 2020, 6:05am UTC](https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559 "2020-09-22T06:05:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dokik](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/c77e96/32.png) [@Dokik](https://www.dolibarr.org/forum/u/Dokik)\
**Post date:** [September 22, 2020, 6:05am UTC](https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559/1 "2020-09-22T06:05:24Z")

</div>

Hello guys, I have made my own module which is basically just a list of Projectnumbers with the Customer Orders/Purchase Orders that are connected to it.  
All I want to do is make the Projectnumber a hyperlink to the project just like in the Project Module.  
I have tried to look at the code of the Project module, but I cannot figure out how it works.  
Can somebody give me a tip?

---

<div class="post-metadata">

**Author:** ![davidb](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/76d3ee/32.png) [@davidb](https://www.dolibarr.org/forum/u/davidb)\
**Post date:** [October 12, 2020, 1:50pm UTC](https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559/2 "2020-10-12T13:50:02Z")

</div>

Have you used model builder to generate the code?  
Maybe you can tell us what you did, e.g. show the relevant code lines?

---

<div class="post-metadata">

**Author:** ![Dokik](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/c77e96/32.png) [@Dokik](https://www.dolibarr.org/forum/u/Dokik)\
**Post date:** [October 12, 2020, 2:30pm UTC](https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559/3 "2020-10-12T14:30:27Z")

</div>

I used module builder to generate the code back then.  
I filled the list with a phpmyadmin trigger on the commande/fournisseur tables that updates my own module on update/ on insert.  
Other than that I have done nothing at all.

---

<div class="post-metadata">

**Author:** ![davidb](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/76d3ee/32.png) [@davidb](https://www.dolibarr.org/forum/u/davidb)\
**Post date:** [October 15, 2020, 8:43pm UTC](https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559/4 "2020-10-15T20:43:13Z")

</div>

If the module (MyModule) is created by the module builder you also can create the object (or element) at the module builder. Once the object/element (ElementName) is created you do have a file in folder custom/MyModule/class/ElementName.class.php.  
Part of `public $fields=array` can be:  
`'fk_project' => array('type'=>'integer:Project:projet/class/project.class.php:1', 'label'=>'Project', 'enabled'=>'1', 'position'=>52, 'notnull'=>-1, 'visible'=>1, 'index'=>1,),`

Depending on the parameter ‘visible’ you will see or not see the Project as a clickable html reference in the list view, file custom\MyModule\ElementName\_list.php.

Please post some code or the reference to your repository if this doesn’t help.  
Cheers!

---

<div class="post-metadata">

**Author:** ![Dokik](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/c77e96/32.png) [@Dokik](https://www.dolibarr.org/forum/u/Dokik)\
**Post date:** [October 20, 2020, 6:43am UTC](https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559/5 "2020-10-20T06:43:07Z")

</div>

Thank you for your help, I will test it in the next week or so since I have a lot of other stuff to do.

---

<div class="post-metadata">

**Author:** ![anasmemon](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/779978/32.png) [@anasmemon](https://www.dolibarr.org/forum/u/anasmemon)\
**Post date:** [March 25, 2026, 3:15am UTC](https://www.dolibarr.org/forum/t/i-have-my-own-module-which-contains-project-numbers-how-can-i-make-the-projectnumber-a-hyperlink-to-the-project/19559/6 "2026-03-25T03:15:52Z")

</div>

Hi you can try this module for your project numbering. [Project Ref Pro — Custom Numbering Model for Dolibarr Projects](https://www.dolistore.com/product.php?id=2877&title=project-ref-pro-custom-numbering-model-for-dolibarr-projects&l=en)
