Joomler!.net - Decided on Joomla!

デル株式会社

Jboard is Multiple Board!

Latest Posts

Re:外部テンプレート
Avatar alicesmile 2010/10/02 14:40
お問い合わせフォームを設置しましたが送信を押してもウンともスンともいいません。 ソースを見るとドメイン ドメイン//templates/xxx/scripts/js/iepngfix.htc...
Re:メール送信が出来ません
Avatar alicesmile 2010/10/02 14:39
たとえば、インストールしてるエクステンションがスタイルを出力しているかもしれないし、クラス接尾辞が影響していたりと。 サイトを見ないとわかりません。 簡単なことで時間があるときならご指摘する...
Re:キャッシュをONにするとFatal Error
Avatar sherry1 2010/05/27 15:08
In computer science, a cache is a component that improves performance by transparently storing da...
Re:インストールについて・・・
Avatar Joomler! 2010/03/02 16:38
単純にデータベース設定が間違っているのでは? ありがちなミスとして、host設定でサーバーによっては、データベース用のhostがある場合があります。 その時は、localhostでは無く...
Re:2つの言語で作られたサイトを移行
Avatar Sarah 2009/12/08 12:56
Joomler!さん、ありがとうございます。 JoomFishは翻訳するものじゃないんですね。リサーチ不足ですみませんでした。 もしかしてJoomla1つで大丈夫かもしれないですね。試してみ...

Popular Posts

Google翻訳ツールいいですね~
Avatar retro 2008/03/27 17:53
お疲れ様です^_^ リリースされてたのに気づいたので、 Google翻訳ツール導入してみました!かなりいい感じですね~…。 海外からのお客さんも、これとサイト全文翻訳つければ グロー...
Joomla全般の雑談
Avatar retro 2008/02/12 17:54
Joomlaに関する雑談スレッドです http://joomlaeasy.net/multithumb-for-joomla-15.html Joomla Easy.netさんの先日の記...
サイトデザインリニューアルおめでとう&お疲れさまです
Avatar retro 2008/05/13 08:31
お久しぶりです~。ようやくJoomla1.5.3にアップデートできました サイトがいつの間にかカッコヨクなってますね^_^ AjaxVoteがついてて、あれっ、これもう出たんだっ?と思っ...
Joomla!での携帯対応について質問させてください。
Avatar eiichi 2009/03/10 00:57
いつも参考にさせていただいてます。有益な情報ありがとうございます。 ●Joomla!と携帯に関して質問させてください。 Joomla!をお使いの方って、Joomla!で携帯対応のサイトを...
バナー二題
Avatar kaba101 2008/11/27 22:42
どうも毎度お世話になってます。 ちょっとバナーの話題をふたつばかり。 現在、日英二言語対応のサイトを作っているわけですが…。 文字コンテンツはだいたいJoom!fish(なんで魚...

Forum Stats

All times are UTC + 9 hours
Total Topics:201
Total Posts:1137
New Members:
Avatar JimJo

Forum Online

Total Online:111
Total Guest:111
Bottom
Home » Support » Joomla! CMS » General » 下にlink rel=style sheet他が入ってしまう問題
下にlink rel=style sheet他が入ってしまう問題
下にlink rel=style sheet他が入ってしまう問題
Sunday, 25 January 2009 16:27
0 votes
Joomla1.0.15のトラブル?です。

自作テンプレートを作ってます。
普通にソースコードをみると問題ないのですが、
Firebugなど、デバッグツールを使って実行結果のソースをみると
、通常テンプレートの<head></head>間にlink rel=stylesheet
(CSSファイルの読み込み)記述が入らないと駄目だと思うのですが、

<body>直下にCSSファイル読み込み,Favicon読み込みなど、テンプレートで記述していない
位置にソースコードが書かれてしまっています。

これは、そもそも問題があるのでしょうか?正しくないのでしょうか?

ソースコードは下記。

<?php 
defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php
if ( $my->id ) { initEditor(); }
?>

<?php mosShowHead(); ?>

<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php
echo "<link rel="stylesheet" href="$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css" type="text/css"/>" ;
?>
<?php
echo "<link rel="shortcut icon" href="$GLOBALS[mosConfig_live_site]/images/favicon.ico" />" ;
?>
<?php
if(mosCountModules("left"wink.png&&!mosCountModules("right"wink.png){ $contentwidth="main";}
if(mosCountModules("left"wink.png&&mosCountModules("right"wink.png) {$contentwidth="center";}
?>

</head>

<body>
<div id="wapper">
<div id="content">
<div id="header">
<?php mosLoadModules(''header'',-1);?>
</div>
<div id="navi">
<?php mosLoadModules(''navi'',-0);?>
</div>
<div id="left">
<?php mosLoadModules ( ''left'',-2); ?>
</div>
<div id="main_r">
<?php if (mosCountModules( "right" )) { ?>
<div id="right">
<?php mosLoadModules ( ''right'',-2); ?>
</div>
<?php } ?>
<div id="main_out<?php echo $contentwidth; ?>">
<?php mosMainBody();?>
<?php mosLoadModules ( ''center'',-2); ?>
</div>
</div>
<div id="footer">
<?php mosLoadModules(''footer'',-1);?>
</div>
</div>
</div>
</body>
</html>
自作PC大好きな男です。
http://www.dos-v.biz/
retro
Expert Boarder
Expert Boarder
117
2007/12/05
Re:下にlink rel=style sheet他が入ってしまう問題
Tuesday, 27 January 2009 09:15
0 votes
どこかに閉じタグのヌケ・欠けは、無いですか?
意外に単純な理由かもしれません。

ソース見る限りおかしくないと思われ・・・。
Joomler!
Platinum Boarder
Platinum Boarder
477
2007/08/26
Re:下にlink rel=style sheet他が入ってしまう問題
Tuesday, 27 January 2009 23:55
0 votes
<?php   
echo "<link rel="stylesheet" href="$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/  css/template_css.css" type="text/css"/>" ;   
?>  


<?php
echo "<link rel="stylesheet" href="$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css" type="text/css" />" ;
?>


<?php   
echo "<link rel="stylesheet" href="$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css" type="text/css"/>" ;   
?>  


ちょっとテストしたわけでないのであれですが、ちょっと見た目で、echo 使っているからエスケープしないと駄目でないの?

# あれ?この書き込みは、code で括ってもエスケープ文字が表示されないのかな...?

# Joomler! さん、ちょっと追加でソースの書き込みテストしましたが、エスケープ文字が表示されないみたいですね。
gondayu
Fresh Boarder
Fresh Boarder
18
2007/10/23
Last update:Wednesday, 28 January 2009 00:02
Re:下にlink rel=style sheet他が入ってしまう問題
Wednesday, 28 January 2009 07:57
0 votes
ホント消えますねぇ。
もう、今更Fireboardをさわる気があまりしないですけど。

retroさんのは、エスケープとかって事じゃないと思います。単にうちのがエスケープがエスケープしてるだけだと思う・・・。
Joomler!
Platinum Boarder
Platinum Boarder
477
2007/08/26
Re:下にlink rel=style sheet他が入ってしまう問題
Wednesday, 04 February 2009 09:58
0 votes
なぜかわからないうちに治ってました^^;

ところでこのソースなんですが、なぜかヘッダーに一行空白ができてしまうんですよ…
テンプレートを入れなおしてみてもダメですし、ヘッダーの空白がどうしても取れないんです…
(ヘッダーに空白がない時点をローカルで確認したテンプレートを入れてみてもダメ。)

何かJoomla周りの仕様があるんですかね???
自作PC大好きな男です。
http://www.dos-v.biz/
retro
Expert Boarder
Expert Boarder
117
2007/12/05
 
Home » Support » Joomla! CMS » General » 下にlink rel=style sheet他が入ってしまう問題
joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.