http://sns.openpne.jp/communityTopic/5339
オリジナルのfaviconを出したい場合、
<link rel="shortcut icon" href="http://xxx.com/favicon.ico" />
みたいなタグがヘッダーに必要で
apps\pc_frontend\templates\_layout.php
に追加してみたらfavicon表示されました!(backendも同様)
という情報がありましたが、手元の環境ではファビコンは表示されませんでした。
httpログ見ても、ファビコンへのアクセスは蹴られてます。
ヘッダに放り込んだのは以下の ←これこれ 行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <?php include_http_metas() ?> <?php include_metas() ?> <?php include_title() ?> <?php include_stylesheets() ?> <?php include_javascripts() ?> <?php if (Doctrine::getTable('SnsConfig')->get('customizing_css')): ?> <link rel="stylesheet" type="text/css" href="<?php echo url_for('@customizing_css') ?>" /> <?php endif; ?> <?php echo $op_config->get('pc_html_head') ?> <link rel="shortcut icon" href="favicon.ico" /> ← これこれ! </head> <body id="<?php printf('page_%s_%s', $view->getModuleName(), $view->getActionName()) ?>" class="<?php echo opToolkit::isSecurePage() ? 'secure_page' : 'insecure_page' ?>"> <?php echo $op_config->get('pc_html_top2') ?> <div id="Body"> <?php echo $op_config->get('pc_html_top') ?> <div id="Container">
なので、OpnePNE3系だと、favicon.ico は予約語かなんかになってるらしくて、favicon2.ico などと、しないと駄目みたい
k222# grep favicon.ico /usr/local/www/apache22/data/OpenPNE3/ -r /usr/local/www/apache22/data/OpenPNE3/apps/api/templates/layout.php: <link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/apps/mobile_mail_frontend/templates/layout.php: <link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/simplepie/simplepie.inc: $favicon = SimplePie_Misc::absolutize_url('/favicon.ico', $url); /usr/local/www/apache22/data/OpenPNE3/lib/vendor/simplepie/simplepie.inc-orig: $favicon = SimplePie_Misc::absolutize_url('/favicon.ico', $url); /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/controller/default/templates/defaultLayout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/exception/data/error.html.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/exception/data/unavailable.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/apps/backend/templates/layout.php: <link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/apps/frontend/templates/layout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/backend_compat/templates/layout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/crud/templates/layout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/frontend/templates/layout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/lib/task/generator/skeleton/app/app/templates/layout.php: <link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/test/functional/fixtures/apps/cache/templates/layout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/test/functional/fixtures/apps/frontend/templates/layout.iphone.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/test/functional/fixtures/apps/frontend/templates/layout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/lib/vendor/symfony/test/functional/fixtures/apps/i18n/templates/layout.php:<link rel="shortcut icon" href="/favicon.ico" /> /usr/local/www/apache22/data/OpenPNE3/plugins/opBlogPlugin/lib/vendor/simplepie.php: $favicon = SimplePie_Misc::absolutize_url('/favicon.ico', $url);
う~~~ん、わかんね ( ̄∇ ̄)