> ガジェット | カスタマイズ | ラベル >
ラベルページの投稿表示数を指定する
クリボウの写真日記 を例にすると、クリボウの写真日記: 昆虫 というラベルページには、「昆虫」とラベルをつけた投稿全てが一つのページに表示されています。
このラベルページでの投稿表示数を、トップページなどとも合わせて、自分で指定できるようにしたいということだと思うんですが、これは実はけっこう簡単にできます。
投稿表示数の指定方法
それは、ラベルページの URL 末尾に
というラベルページの URL を
とするだけで、このとおり、投稿を 5 件だけ表示するページを開くことができます。6 件目以降の投稿も「Older Posts」リンクからちゃんとさかのぼることができます。もちろん、次のページで表示されるのも 6 件目から 10 件目までの 5 つの投稿。なかなかよくできていますね。
ラベルウィジェットのカスタマイズ
とはいえ、ラベルごとにこのパラメータを付加したリンクを用意するのは面倒ですし、ブログ読者に「自分でパラメータつけてね」と要求する訳にもいかないと思います。そこで、ラベルウィジェットのリンクをカスタマイズして、全ラベルページへのリンクを書き換える方法も書いておきます。
1.Blogger 管理画面「テンプレート > HTML の編集」ページを開き、「ウィジットのテンプレートを展開」チェックボックスにチェックを入れます。
2.テキストエリア内から、テンプレートのラベルウィジェット部分を見つけ出します。
3.手順2で見つけたコードの赤字部分を、
4.最後に「テンプレートを保存」ボタンを押すと、設定がブログに反映されます。これでおしまい。
以上、ラベルページの投稿表示数を指定する方法でした。一つのラベルの適用投稿数が増えすぎて困っている人なんかにもよさそうですね。ぜひお試しくださーい。
スポンサードリンク:
お願い:
2ちゃんねるの「Blogger」スレに面白い質問が。
タグに「風景」とか「人物」を指定して、例えば「人物」をクリックすると
人物のタグがついた記事が全部表示されてしまいますよね?
表示される記事の数を1ページにつき何個までと指定できますか?
クリボウの写真日記 を例にすると、クリボウの写真日記: 昆虫 というラベルページには、「昆虫」とラベルをつけた投稿全てが一つのページに表示されています。
このラベルページでの投稿表示数を、トップページなどとも合わせて、自分で指定できるようにしたいということだと思うんですが、これは実はけっこう簡単にできます。
投稿表示数の指定方法
それは、ラベルページの URL 末尾に
?max-results=5
とパラメータを付け足すという方法。数字の部分には好きな投稿表示数を指定することができます。先ほどの例なら、http://kuribo-photo.blogspot.com/search/label/%E6%98%86%E8%99%AB
というラベルページの URL を
http://kuribo-photo.blogspot.com/search/label/%E6%98%86%E8%99%AB?max-results=5
とするだけで、このとおり、投稿を 5 件だけ表示するページを開くことができます。6 件目以降の投稿も「Older Posts」リンクからちゃんとさかのぼることができます。もちろん、次のページで表示されるのも 6 件目から 10 件目までの 5 つの投稿。なかなかよくできていますね。
ラベルウィジェットのカスタマイズ
とはいえ、ラベルごとにこのパラメータを付加したリンクを用意するのは面倒ですし、ブログ読者に「自分でパラメータつけてね」と要求する訳にもいかないと思います。そこで、ラベルウィジェットのリンクをカスタマイズして、全ラベルページへのリンクを書き換える方法も書いておきます。
1.Blogger 管理画面「テンプレート > HTML の編集」ページを開き、「ウィジットのテンプレートを展開」チェックボックスにチェックを入れます。
2.テキストエリア内から、テンプレートのラベルウィジェット部分を見つけ出します。
id='Label1'
を目印に検索をかけると便利かと。細かい部分は異なるかもしれませんが、こんなコードだと思います。
<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:blog.pageType != "item"'>
<div class='w-content'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:labels' var='label'>
<li>
<b:if cond='data:blog.url == data:label.url'>
<data:label.name/>
<b:else/>
<a expr:href='data:label.url'><data:label.name/></a>
</b:if>
(<data:label.count/>)
</li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</div>
</b:if>
</b:includable>
</b:widget>
<b:includable id='main'>
<b:if cond='data:blog.pageType != "item"'>
<div class='w-content'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:labels' var='label'>
<li>
<b:if cond='data:blog.url == data:label.url'>
<data:label.name/>
<b:else/>
<a expr:href='data:label.url'><data:label.name/></a>
</b:if>
(<data:label.count/>)
</li>
</b:loop>
</ul>
<b:include name='quickedit'/>
</div>
</div>
</b:if>
</b:includable>
</b:widget>
3.手順2で見つけたコードの赤字部分を、
<a expr:href='data:label.url + "?max-results=5"'><data:label.name/></a>
に変更します。青字部分は好きな数値で OK です。4.最後に「テンプレートを保存」ボタンを押すと、設定がブログに反映されます。これでおしまい。
以上、ラベルページの投稿表示数を指定する方法でした。一つのラベルの適用投稿数が増えすぎて困っている人なんかにもよさそうですね。ぜひお試しくださーい。
スポンサードリンク:
「この記事役に立った!」と思ったら、ぜひフィード登録をお願いします。 

ありがとうございます。
ReplyDeleteさっそく試してみます。
Bloggerのカスタマイズは、なかなか難しいので、いつも助かります。
面白い質問は僕も刺激になって楽しいです。
ReplyDelete全てに答えることは出来ないと思いますが、また何かあればお気軽にどうぞ。
こんにちは。
ReplyDeleteどうも最近(2008)のブロガーは、ラベルをクリックすると、標準で20タイトルまでしか一度に表示しないみたいなのです。
私の場合、この投稿の内容とは逆に、ラベルをクリックしたら、すべての該当タイトルが表示されるようにしたいのです。どうしたらよいか、わかりますでしょうか。
この投稿を参考に、表示タイトル数を100などにしてみても、変わらないみたいです。
もし何か、ご助言を頂けたら幸いです。
こんにちは。
ReplyDeleteこの方法を試したのですがうまく適応されません。
なにがおかしいのかよくわからないのですが...
自分の場合は
Deleteid='Label2の2箇所を変更しました
2016-01-06keyun
ReplyDeletep90x
cheap toms
jordan retro 11
michael kors handbags
hollister kids
uggs for men
ralph lauren outlet
north face jackets
abercrombie and fitch
air max 95
ralph lauren outlet
chanel outlet
the north face jackets
true religion jeans outlet
mont blanc pens
coach outlet store online
lebron 12
ralph lauren outlet
uggs outlet
louis vuitton bags
adidas superstar shoes
oakley sunglasses
ralph lauren
louis vuitton
cheap oakley sunglasses
tory burch boots
retro 11
ugg boots on sale
ugg australia
discount ugg boots
instyler
louis vuitton bags
coach outlet online
michael kors outlet
ralph lauren home
uggs sale
cheap ray ban sunglasses
hollister
fake oakley sunglasses
beats by dr dre
2016-03-05keyun
ReplyDeletelouis vuitton handbags
kids lebron shoes
canada goose
michael kors outlet
hollister clothing
air max 90
michael kors handbags
cheap jordans
air max 95
cheap rolex watches
ugg outlet online
uggs on sale
canada goose outlet
retro 11
rolex watches
air jordans
oakley sunglasses wholesale
coach outlet
timberlands
hollister clothing
air max 95
cheap uggs
michael kors outlet clearance
coach outlet store online
uggs sale
coach factory outlet online
michael kors outlet
fitflop clearance
hollister clothing
nike roshe run mens
gucci outlet
p90x
ralph lauren outlet
kobe 8
ralph lauren
kobe shoes
abercrombie and fitch
kd 8
kate spade outlet
yeezy boost 350
ReplyDeletecheap mlb jerseys
cheap jordan shoes
hugo boss outlet
birkenstocks
converse trainers
coach outlet store
michael kors handbags
michael kors outlet
titans jersey
تور تایلند
ReplyDeleteدانلود آهنگ جدید
اخبار هنرمندان
آموزش موسیقی
معرفی ساز ها
تور تایلند
طراحی موشن گرافیک
ReplyDeleteخرید هاست ارزان
سایت تفریحی
ReplyDeleteSample Assignment is one of those reliable academic websites from where you can get online help with assignment at the most affordable rates. Students can go through a huge list of full-length assignment samples which can be found on their website. This online assignment service provider has three teams who work together to produce and deliver high-quality assignments to the client’s doorstep. Customer care executives, subject experts, and the quality assurance team provide all kinds of university assignments such as dissertations, essays, reports, literature reviews, and more. We also have a 24-hour online assignment help service, which students can avail of via WhatsApp, Messenger, and email. Simply let us know your assignment’s requirements and our teams will bring you the best assignment help service written by them.
ReplyDeleteخرید هاست ارزان
ReplyDeleteWith such a huge rise in demand of Artificial Intelligence assignment help, My Assignment Services has been delivering high quality assignments by the means of their professional experts. We are effectively helping you conquer in all the disciplines of management as well as business studies such as Managerial Economics assignment help. We have a range of quality services such as proofreading and editing, plagiarism check, quality check, online tutoring sessions, etc. Our economics experts also are on the top by helping students across the world with our Economics, Macroeconomics assignment help and many of the different components. We deliver you with the 100% original, plagiarism free content every time that you can ask for. You just need to contact our Artificial Intelligence assignment help experts available 24x7 to provide you with solution to each one of your assignment related queries at My Assignment Services. And you get every one of the service at a cheap price that you have never thought of.
ReplyDeleteABAssignmentHelp has been the best name in the UK in recent years. We generally work hard to give assignment help services according to the prescribed measures and principles that can help students achieve the best evaluation. We are providing the best writing services at an affordable price.
ReplyDeleteAll the student needs to do is to contact us, feed us the requirements of the assignment related to any academic field and we will ensure that the assignment work is up to the mark. Customer satisfaction is our number one priority and there is 100% guarantee that our students will score best grades in the assignments provided by Assignment studio.
ReplyDeleteFor further information queries visit our website Assignment Help
if you are panic about writing your english essay and you want your essay to be best you should consult abc assignment help. we will provide you best of writer in your subject specific area.
ReplyDeleteessay writing help
Assignment Help Australia
ReplyDeleteLooking for Affordable Assignment Help Australia? Hire Austraalian Experts for your University or College Assignment Help Professionals in the niche of academic writing, such as those from myassignmenthelp, understand the effort Assignment Help
Australia writing requires
I really appreciate the way you write...Please check my work as well
ReplyDeleteJaipur call girl
Jaipur call girl
Jaipur call girl
Delhi call Girl
Guwahati call girl
Guwahati call girl
Guwahati call girl
Guwahati call girl
Aerocity call girl
Lucknow call girl
pg 1
ReplyDeletepandora charms
stone island outlet
kyrie shoes
supreme t shirt
kobe shoes
supreme
golden goose
ggdb
curry 6 shoes
yeezy boost 350
ReplyDeletenike off white
supreme
curry shoes
jordan 4
supreme clothing
off white x jordan 1
lebron 18
jordan sneakers
steph curry shoes
golden goose
ReplyDeleteyeezy
birkin bag
hermes birkin
russell westbrook shoes
lebron shoes
birkin bag
bape
kd shoes
jordan shoes
Togel sangatlah diminati oleh banyak kalangan, dari muda hingga paruh baya semua sangat senang dengan taruhan menebak angka ini. Tidak sedikit juga para togel lovers suka atau tertarik dengan jenis taruhan live casino atau yang biasa kami sebut live games. Maka dari itu winlotre yang berpartner dengan IDNLIVE bekerja sama menyediakan berbagai jenis permainan casino. Yang berpusat di luar negri, Winlotre dan IDN menyajikan taruhan casino secara Live atau online. Dengan User Interface dan server yang canggih, live games yang disediakan pun banyak diminati bahkan menjadi populer. poker pasti bayar dan terpercaya
ReplyDelete