Hello,
today I was checking why bing don't indexes my piwigo pages and the motive is because piwigo themes, put this code:
<meta name="robots" content="noindex,nofollow">
in all the pages !!!!
I'm not sure where is the problem, but this problem ocurre with a lot of themes, for example:
themes that work well:
- simple white
- kardon
- clear
- dark
- elegant
- bootstrap default
- simpleNG
themes that generate the problem:
- bootstrap darkroom
- stripped / stripped responsive
- greydragon
Any idea how check and fix the problem ??
Piwigo version: 2.8 and 2.9
PHP version:
MySQL version:
Piwigo URL: http://
Offline
IMO that's a more a problem of Piwigo than the theme.
picture.php contains
if ( $metadata_showable and pwg_get_session_var('show_metadata') ) { $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); }
I guess the idea was to avoid a second indexing if the robot follows the "show exif" link, but there should be a cleaner solution.
ATM I simply commented out the line.
Oliver
Offline
Hello there..
but it work with one themes and others not !!
so, themes bugs ?? ;-)
anyway... thanks for the "fix".
attentive
Last edited by victorhugops (2017-05-31 22:55:12)
Offline
This is bound to show_metadata=true session variable. This can be enabled by default in local/config/config.inc.php, or set by the theme (bootstrap darkroom does it), and then the logic in core Piwigo is broken, it should be reversed.
See also [Github] piwigo-bootstrap-darkroom issue #64
It's a core issue.
Offline
I created an issue here: [Github] Piwigo issue #698
Offline
Contibuted the necessary code to make a fix possible.
We need to discuss if we should really keep the "nofollow" option in there.
See: [Github] Piwigo issue #698
Offline
Yes, this is a problem to have no search engine parsing the page. But the real problem is the way we show/hide metadata. The way it's done was OK in 2004, but it's not valid today anymore. We should not reload the full page to display EXIF/IPTC, an Ajax call to pwg.images.getMetadata should be enough without reload the whole page. This way we would avoid the mess of setting noindex/nofollow.
Offline
plg wrote:
pwg.images.getMetadata
This method doesn't exist yet, though. Or does it?
Offline
I see your point as you wouldn't need a config option in that case.
However, this is a severe issue affecting a lot of pages, which can be easily fixed. I see that we can make it deprecated after a lot of themes have updated - or we leave it as there is no way to set a "default" behavior for metadata loading built in Piwigo!
Offline
Thank you for this information.
Offline