Control on frappe to use templates of installed apps

problem :
i want to control how frappe choose which template produced from the installed apps in site

for example if i have three installed apps each one of them has a footer ,header and navigation bar template … i want to tell frappe which one to use and which not to use
but the default behaviour is that frappe uses the first created app and the last created app as a default

work done :
i tried to know how frappe made this , i found in init file and jinja file in frappe use sort parameter with True value in function “get_installed_apps(sort=True)” … when i change it to false it works well (hooks and templates arranged according to installation time) but i don’t know how to make this without change in frappe code.

how can i solve this problem ?

1 Like