Web based family history software

file Question default.phtml in wt 2.2

  • Franz Frese
  • Franz Frese's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 weeks 2 days ago #1 by Franz Frese
default.phtml in wt 2.2 was created by Franz Frese
The file default.phtml in ..../resources/views/layouts seems to be no longer used in the standard themes. Where is it gone?

I changed a script part (colorbox - jackmoore) there, to show only the clicked image. That now works only with the rural theme (or may be with other non original wt themes). No effect if one of the original wt themes is selected.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #2 by fisharebest
Replied by fisharebest on topic default.phtml in wt 2.2
/resources/views/layouts/default.phtml is still used for all the genealogy pages (i.e. not the admin pages).

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Franz Frese's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 weeks 2 days ago #3 by Franz Frese
Replied by Franz Frese on topic default.phtml in wt 2.2
I am not talking about the admin pages.
I changed the default.phtml.
Its effective only for the rural theme.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #4 by fisharebest
Replied by fisharebest on topic default.phtml in wt 2.2
> Its effective only for the rural theme.

I think you are mistaken.

This file is used for all themes.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Franz Frese's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 weeks 2 days ago - 2 weeks 2 days ago #5 by Franz Frese
Replied by Franz Frese on topic default.phtml in wt 2.2
I can rename the default.phtml to something.txt and wt still runs (if I have webtrees theme).

I just did, and you can see my site is running.
Last edit: 2 weeks 2 days ago by Franz Frese.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #6 by fisharebest
Replied by fisharebest on topic default.phtml in wt 2.2
If I rename default.phtml to default.txt, then my site fails with the expected error:

RuntimeException: View file not found: /Users/gr4376/Projects/webtrees/app/../resources/views/layouts/default.phtml

Modules can replace existing views.

Maybe you have a module that replaces default.phtml with its own version?

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Franz Frese's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 weeks 2 days ago #7 by Franz Frese
Replied by Franz Frese on topic default.phtml in wt 2.2
thx, disabled the vesta modules, getting the expected error message.

I'll contact Richard.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #8 by fisharebest
Replied by fisharebest on topic default.phtml in wt 2.2
If two modules try to modify the same thing, only one of them can "win".

I'm not sure there is a solution to this type of problem.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Franz Frese's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 weeks 2 days ago #9 by Franz Frese
Replied by Franz Frese on topic default.phtml in wt 2.2
so it is. I changed this small part in the vesta modul and so I do win.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum