Hi,
would someone mind suggesting how I go about having different favicons and crests for each gedcom i have created.
Is it better to create blocks or modifying the config.php file?
I want to have a gedcom specific favicon and a family specific crest to appear above the menu where the PGV logo currently is.
Thanks
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-11-22
Paul
Favicon image and location are set in each theme (theme.php), but cannot be set for individual gedcoms, It is a site specific feature (on any web site, not just PGV).
The area above the menu is also site specific, so again, cannot be changed on a per-gedcom basis. In this case the best alternative would be a block - the HTML or advanced_html blocks can both have images included. Unfortunately blocks only appear on the Welcome and My Portal pages, so once you get further into the data they will not be visible.
Your only other option would be to wrap PGV in something such as an iframe, with an independent front-end to select the gedcom.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are 2 ways of specifying a favicon. The first is to have a *favicon.ico* file at the root of your webserver (http://www.yoursite.com/favicon.ico). The second is to include a special *link* element in your HTML's head section. Using this second method, it could be possible to specify a different favicon per GEDCOM.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Techie,
thank you. That is what had prompted me because I had seen it somewhere else.
I might make it a feature request for the next version ;-)
Thanks
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-11-23
LT, you are right - and the link in the HTML head section is what PGV currently uses. That works to give a different favicon per THEME - but how would you go about making it per GEDCOM?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whilst you could probably change the header programmatically to reflect the current gedcom, you might find that browsers have a habit of caching the favicon, so you may have difficulty getting it updated when a user switches gedcom.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
would someone mind suggesting how I go about having different favicons and crests for each gedcom i have created.
Is it better to create blocks or modifying the config.php file?
I want to have a gedcom specific favicon and a family specific crest to appear above the menu where the PGV logo currently is.
Thanks
Paul
Paul
Favicon image and location are set in each theme (theme.php), but cannot be set for individual gedcoms, It is a site specific feature (on any web site, not just PGV).
The area above the menu is also site specific, so again, cannot be changed on a per-gedcom basis. In this case the best alternative would be a block - the HTML or advanced_html blocks can both have images included. Unfortunately blocks only appear on the Welcome and My Portal pages, so once you get further into the data they will not be visible.
Your only other option would be to wrap PGV in something such as an iframe, with an independent front-end to select the gedcom.
Kiwi,
thanks you I think I'll leave it. I'll probably end up registering each tree to a separate domain.
Paul
There are 2 ways of specifying a favicon. The first is to have a *favicon.ico* file at the root of your webserver (http://www.yoursite.com/favicon.ico). The second is to include a special *link* element in your HTML's head section. Using this second method, it could be possible to specify a different favicon per GEDCOM.
Techie,
thank you. That is what had prompted me because I had seen it somewhere else.
I might make it a feature request for the next version ;-)
Thanks
Paul
LT, you are right - and the link in the HTML head section is what PGV currently uses. That works to give a different favicon per THEME - but how would you go about making it per GEDCOM?
Whilst you could probably change the header programmatically to reflect the current gedcom, you might find that browsers have a habit of caching the favicon, so you may have difficulty getting it updated when a user switches gedcom.
Yes I've seen that IE updates the favicon on a fresh but Firefox doesn't even do it on a restart!
It would probably be pointless unless everyone is using IE, what a scarey thought.