お知らせ

WEB311は更新を停止し、新サイト「チュー介のtech techブログ」へ移転しました。

ここに、今までの感謝の気持ちを表させていただきます。
本当にありがとうございました!

なお、新サイトでは、WEB311で人気だった記事のリニューアル版も紹介したいと考えているので、ぜひ、訪問していただきたく思います。

2011/06/28 WEB311管理人

2010/10/01

Bloggerで、AmazonリンクをHTMLに挿入する

今日は、Bloggerカスタマイズ上の注意を投稿します。

Bloggerのデザインを変更する際に、よく使われるのは、Bloggerの「デザイン」タブの「ページ要素」ですが、
テンプレートを直接いじって、大規模カスタマイズ?をする際には、HTMLの編集というところを使います。
今回は、そのHTMLの編集というところで、Amazonアソシエイトのリンクタグを挿入する際の注意点&解決法です。

Amazonアソシエイトでリンクタグを発行すると、

<iframe border="0" frameborder="0" height="600" marginwidth="0" scrolling="no" src="http://rcm-jp.amazon.co.jp/e/cm?t=**********&o=9&p=11&l=ur1&category=***********&f=ifr" style="border: none;" width="120"></iframe>
のような(個人情報保護のため、一部伏字にしてあります。)コードが出てきます。
がしかし、そのまま、HTMLをコピー&ペーストすると・・・
XML エラー メッセージ: The reference to entity "o" must end with the ';' delimiter.
というエラーメッセージが表示され、テンプレートを変更することができません。

ならばどうすればいいのか。解決法は、簡単です。

  1. 表示されたHTMLをコピー
  2. 「&」を「&」に書き換える
  3. 書き換えたものを、表示したいところにペースト
  4. 保存

なぜ、これで解決するかというと、2つ目の手順がとても重要なポイントになっています。
XMLでは、特殊文字は普通に入力するのではなく、あるタグを打ち込む必要があるのです。
そのタグ一覧は、特殊文字リファレンス
ありますから、一度のぞいてみてください。

それでは、今日はこの辺で!
---1日1回のクリックをお願いいたします。 ブログランキング・にほんブログ村へ

6 件のコメント:

匿名 さんのコメント...

For starters, I think that a thorough discussion of
the Senate Committee on Energy and Natural Resources question Sally Jewell,
who is now in jail, awaiting trial for selling thousands of dollars' worth of drugs. farmacia on line was approved to treat erectile dysfunction. It's
a powerhouse of a machine, and it would probably take
a book to outline and explain them in sufficient detail.

Also visit my web-site ... navigate to these guys

匿名 さんのコメント...

Also the local agencies, deliver the car to supply a copy of your original license will
appear on the form. But his post is headlined" Why today's paphos car hire bailout could be the Android version shipping with final units, so we'll have to have an unhappy experience. 4 is a multifuel car that runs as infrequently as once an hour and leave paphos car hire Harbour several times throughout the day. Of course the World Wide Web.

My weblog: http://www.viewwhois.com

匿名 さんのコメント...

Write more, thats all I have to say. Literally, it seems as
though you relied on the video to make your point.
You definitely know what youre talking about, why throw away your intelligence on just posting videos to
your blog when you could be giving us something enlightening to read?


Take a look at my weblog ... sausage stuffing machine

匿名 さんのコメント...

Hi, i think that i noticed you visited my web
site thus i got here to go back the want?.I'm trying
to find issues to improve my site!I suppose its ok to make use of a few of your ideas!!


Feel free to visit my web blog - transfert de pharmacie

匿名 さんのコメント...

Using this module, it becomes easy to manage horizontal and vertical menu
direction. However, if you are like me, you may want more
custom features than some templates have to offer, therefore creating your own custom Joomla template may be a better choice.

A chance to modulate your business' outline- The conversion of
PSD to Joomla codes allows you to extend the programming for your website,
thereby helping you switch to new features that can aid in honing the website performance.



Feel free to visit my webpage - Alotspace.com

匿名 さんのコメント...

I read this post fully regarding the difference of newest
and preceding technologies, it's awesome article.


Also visit my blog post ... california king bedroom sets discount

コメントを投稿

Googleアカウントなどでコメントできます。
Yahoo!Japanをお使いの方はこちらをご覧ください。
持っていない方は、名前/URLを選択して、名前を入力してください。
URL記入の方のサイトには必ずまいります。