# Ignition 8: script naming in template projects

**URL:** <https://forum.inductiveautomation.com/t/ignition-8-script-naming-in-template-projects/44906>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [March 25, 2021, 1:35pm UTC](https://forum.inductiveautomation.com/t/ignition-8-script-naming-in-template-projects/44906 "2021-03-25T13:35:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [March 25, 2021, 1:35pm UTC](https://forum.inductiveautomation.com/t/ignition-8-script-naming-in-template-projects/44906/1 "2021-03-25T13:35:37Z")

</div>

Hi all,I have a project `Proj1` which includes a template project `global`. Both projects have a `script1` script in the _Project library_. Question: how does function naming work in this case? Name merging? Name shadowing? Can `Proj1` call functions defined in `global.script1` script? Does `Proj1.script1` functions shadow `global.script1` functions, when function names are the same?

Thanks, regards

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 25, 2021, 3:02pm UTC](https://forum.inductiveautomation.com/t/ignition-8-script-naming-in-template-projects/44906/2 "2021-03-25T15:02:16Z")

</div>

IIUC, the scripts are _ **not** _ merged. `script1` in your leaf project _replaces_ (aka “overrides”) the global `script1`.

Don’t use script names in your leaf projects that match script names in inherited projects.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 25, 2021, 3:57pm UTC](https://forum.inductiveautomation.com/t/ignition-8-script-naming-in-template-projects/44906/3 "2021-03-25T15:57:04Z")

</div>

> [@pturmel](#):
>
> IIUC, the scripts are _ **not** _ merged. `script1` in your leaf project _replaces_ (aka “overrides”) the global `script1` .

Yes, that's correct. An entire script module is a distinct resource entry - so you either have everything from the parent, or everything from the child; nothing in between.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [March 26, 2021, 9:22am UTC](https://forum.inductiveautomation.com/t/ignition-8-script-naming-in-template-projects/44906/4 "2021-03-26T09:22:43Z")

</div>

Thanks pturmel, PGriffith, that was also my final verdict after some trials.
