Personal tools
You are here: Home PC zope&plone COREBlog MoblogでのGPS写真
Document Actions

MoblogでのGPS写真

by かわうぃん last modified 2006-01-29 06:56

GPS機能つきAUの携帯電話を使用した、位置情報表示

  • bakaukeBlogさんからCOREBlogBaPluginをダウンロードします。
  • このファイルをZOPEのProductsフォルダへ解凍します。
  • ZOPEを再起動。
  • COREBlogの "Contents" 内で "COREBlogBaPlugin" プロダクトを ba_plugin というIDで追加。

  • COREBlogのentry_macrosを編集し、位置情報を追加したい箇所へ次の行を挿入。
 <!-- Entry Getlive -->
  <span tal:replace="structure entry/getlive" />

例:


COREBlogの「Contents」タブをクリックし、プルダウンメニューからDTML_methodを選択、ID=getlive にしAdd&Edit。以下を追加

<dtml-try>
<dtml-if "ba_plugin.getBa(entry.id) is None">
<BR>
<dtml-else>
<BR>撮影場所:<a href="http://map.yahoo.co.jp/pl?
<dtml-var "ba_plugin.getBa(entry.id)['Mapion']">">
<dtml-var "ba_plugin.getBa(entry.id)['Address']"></a>
</dtml-if>
<dtml-except>
</dtml-try>

以上です。


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: