Web based family history software

check Solved Howto use own favicons in webtrees 2.0

  • jopla
  • jopla's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #1 by jopla
Hello,

How can I use own favicons in 2.0? Is sufficient to replace the favicons in the public folder or has there to be done more?

Thanks

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

More
5 years 1 month ago #2 by fisharebest
Replied by fisharebest on topic Howto use own favicons in webtrees 2.0
> Is sufficient to replace the favicons in the public folder

That should work - although you must repeat this after every upgrade.

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

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

  • jopla
  • jopla's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #3 by jopla
Replied by jopla on topic Howto use own favicons in webtrees 2.0
Thanks for your reaction. For the time being, it can be a temporarily solution.

Is there also a better solution, or has that to be still involved in the 2.0 version? If yes, is there an ambition to do it?

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

More
5 years 1 month ago #4 by fisharebest
Replied by fisharebest on topic Howto use own favicons in webtrees 2.0
There are several complications.

For example, the file favicon.ico must exist for sites *without* pretty URLs.
But it must *not* exist so that it can be customized by sites *with* pretty URLs.
Unless the rewrite rule is changed from "if path does not exist" to "if path does not start /public".

Also, we need to update our list of favicons, to reflect modern browsers.

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

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

More
5 years 1 month ago #5 by rola
Replied by rola on topic Howto use own favicons in webtrees 2.0
Perhaps I am wrong, but the file favico.ico in the root is used only when displaying pdf reports (its only my sugestion). And the Control Panel is using the favicon.ico in the source directory. When we find a solution for the "normal" sites, it is a big help - you have to change only one, or two files after an update.

I am often saying on this forum "in 1.7 this worked better" - favicons are in v 2.0 simplier to handle, there is also a workaround which cann help. Whats realy good - favicons are in one directory and not in the theme-directories.

Ladislav

Ladislav

webtrees 2.0.24 + ⚶ Vesta modules (from cissee.de/ )
testing webtres 2.1.5 + ⚶ Vesta modules
on PHP Version 7.4.28

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

  • jopla
  • jopla's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #6 by jopla
Replied by jopla on topic Howto use own favicons in webtrees 2.0
Hi Greg,

Thanks for your reaction. I understand the problems but I hope it will be done in the future.

Or that you will not make to often an update ;) :D

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

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
5 years 1 month ago #7 by bertkoor
Replied by bertkoor on topic Howto use own favicons in webtrees 2.0
There might be a solution for these kind of issues, basically for any small change you want to make to core code.

Clone the webtrees git repository. Create your own branch and do your changes in there. Regulary merge the master or 2.0.x branch into your own branch. Make a local build of minified assets like javascript & css. Deploy manually to your server from your own repository.

It's a trade-off. You get to store your own enhancements under version control, but you also need to learn some development tools.

stamboom.BertKoor.nl runs on webtrees v2.2.1

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

More
5 years 1 month ago #8 by fisharebest
Replied by fisharebest on topic Howto use own favicons in webtrees 2.0
The ability to do this needs to be part of the core code.

I want to get the design right first.

For example, I am not certain that this should be part of a theme.
You might want to add your own favicon, but still allow users to switch themes.
Or perhaps you want to use your own icon with a third-party theme.

The module system was designed to allow lists of zero/one/more features (tabs, blocks, etc.).

It wasn't designed for "select one thing from a list". e.g. what happens if you install two "custom favicon" modules?

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

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

  • jopla
  • jopla's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #9 by jopla
Replied by jopla on topic Howto use own favicons in webtrees 2.0

bertkoor wrote: There might be a solution for these kind of issues, basically for any small change you want to make to core code.

Clone the webtrees git repository. Create your own branch and do your changes in there. Regulary merge the master or 2.0.x branch into your own branch. Make a local build of minified assets like javascript & css. Deploy manually to your server from your own repository.

It's a trade-off. You get to store your own enhancements under version control, but you also need to learn some development tools.


Not a bad idea, only I m not so familiar with GitHub. But if you can help me a little - in Dutch - than I want to try. I have some experience - with other applications - with sending my suggestions to the main, but to sent the main to mine, I 've never done.

@Greg: Yes, I can understand that there are a few more important challenges.

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

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
5 years 1 month ago #10 by bertkoor
Replied by bertkoor on topic Howto use own favicons in webtrees 2.0
No problem.

Contact me by email ( bertkoor at gmail.com ) and I'll send you some instructions.
First question: do you work on a Mac or Windows pc?
Second: do you rather use command line tools or GUIs?

stamboom.BertKoor.nl runs on webtrees v2.2.1

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

  • jopla
  • jopla's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 3 weeks ago #11 by jopla
Replied by jopla on topic Howto use own favicons in webtrees 2.0
Thanks Bert, I have sent you an email.

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

  • jopla
  • jopla's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 3 weeks ago #12 by jopla
Problem solved.

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

More
5 years 2 weeks ago #13 by rogerco
Replied by rogerco on topic Howto use own favicons in webtrees 2.0
Just to add to this, if you want to change the set of icons used then the file you need to modify to write the correct links in the page < head > section is
/resources/views/layouts/default.phtml

You can simply replace all the specific favicon sizes there with your own names, links and meta tags for the various sizes of favicon you have for android apple ms and generic use

I use the online tool at realfavicongenerator.net/ to generate a complete set of icons, it provides options to optimise for various uses from a single image file. There are probably other online services available.

Ideally a future version of webtrees would work with some tool like this so that a whole set of favicons and the html to link them could be uploaded and then it wouldn't matter what particular set you used.

Essentially any images, browserconfig.xml and site.webmanifest files could be uploaded to /public/ by the site admin together with an .html file called something like favicon.html which would be automatically inserted into default.phtml. That way webtrees could provide a default set and the site admin could replace it with whatever he liked without things breaking on upgrade (assuming you don't wipe the public folder - or use some other folder that you don't wipe on upgrade)

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

More
1 year 3 months ago #14 by RickM
Replied by RickM on topic Howto use own favicons in webtrees 2.0
message

Rick M
Tauranga
Nu Tirani - New Zealand

alineofmalkins.com/wt-malkins
Webtrees v2.2.1
Hosted by HostAmarada on litespeed Server, PHP v8.3
Offline: WebTrees v2.2.2-dev
Laragon v6, PHP v8.3.15

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

Powered by Kunena Forum