MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Aug 08, 2008, 01:57 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Donate to MODx:
Donations
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Creating & Repurposing Content
»
Ditto
(Moderators:
Mark
,
PaulGregory
)
»
[Tutorial] Google Sitemap with Ditto
Pages: [
1
]
2
Go Down
« Previous topic
Next topic »
Print
Author
Topic: [Tutorial] Google Sitemap with Ditto (Read 11768 times)
0 Members and 1 Guest are viewing this topic.
neon_eddy
Full Member
Posts: 150
I like Turtles
[Tutorial] Google Sitemap with Ditto
«
on:
Apr 02, 2007, 04:07 PM »
http://webbake.com/tutorials/modx-cms/google-sitemap-with-ditto
Here ya go. I need to get commenting and such on the site, but well see.
Logged
~Shawn Himmelberger
Check out my
Minneapolis MODx Web Design
Company - Himmelberger Design | Also visit my friend's
Minneapolis Computer Repair
company - Alt Repair
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #1 on:
Apr 02, 2007, 04:15 PM »
Excellent tutorial! Please note that if you are using Ditto 2 you don't need the tv prefix and descendentDepth is simply depth.
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
neon_eddy
Full Member
Posts: 150
I like Turtles
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #2 on:
Apr 02, 2007, 04:21 PM »
Edit made :-)
Logged
~Shawn Himmelberger
Check out my
Minneapolis MODx Web Design
Company - Himmelberger Design | Also visit my friend's
Minneapolis Computer Repair
company - Alt Repair
milicicd
Member
Posts: 59
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #3 on:
Apr 05, 2007, 03:50 AM »
Do we have your permission to put this tutorial on wiki? Thanx in advance!
Logged
lukwe
Full Member
Posts: 172
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #4 on:
Apr 05, 2007, 12:51 PM »
Hi, I tried this Ditto approach after not succeeding with the [[Sitemap]] snippet.
Interestingly I am getting exactly the same errors!
see
http://modxcms.com/forums/index.php/topic,5754.0.html
Logged
----------------------------------------------------------
http://www.linkedin.com/in/lucapost
----------------------------------------------------------
davidm
Marketing & Design Team
Posts: 6,526
The best way to predict the future is to invent it
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #5 on:
Apr 05, 2007, 12:53 PM »
Woot great stuff neon-eddy, a great testimony to Ditto's versatility
Sure belongs in the wiki !
Logged
blog.nodeo.net
:
Pour un web libre, moderne et ouvert!
:: |
! Nouveau !
Les forums modxcms.fr
:
Participez à l'élaboration du site MODx francophone !
! Nouveau !
:.
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.5 | Debian 4.0 (Etch)
Réalisations sous MODx :
nodeo.net
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
sworld.com
|
soleil.info
et 3 autres en cours de réalisation
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #6 on:
Apr 05, 2007, 01:36 PM »
@lukwe: Try it without setting the page to be xml.
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
lukwe
Full Member
Posts: 172
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #7 on:
Apr 06, 2007, 05:20 AM »
Quote
@lukwe: Try it without setting the page to be xml.
That's how I get to see the error:
PHP error debug
Error: explode() [function.explode]: Empty delimiter.
Error type/ Nr.: Warning - 2
File: /user0/htdocs/modx/manager/includes/document.parser.class.inc.php(724) : eval()'d code
Line: 195
If I leave it as xml I only get a blank/empty page.
If I make the same Ditto call from a regular HTML page with template and no
<?xml version="1.0" encoding="UTF-8"?>..
stuff, I do get the output.
The Ditto call is:
[[Ditto?parents=`15,258`&tpl=`DittoSitemap`&dateSource=`editedon`&display=`all`&sortBy=`createdon`&depth=`4`&showInMenuOnly=`1`]]
the DittoSitemap chunk is:
<url>
<loc>[(site_url)][~[+id+]~]</loc>
<lastmod>[+date+]</lastmod>
<priority>[+priority+]</priority>
</url>
Logged
----------------------------------------------------------
http://www.linkedin.com/in/lucapost
----------------------------------------------------------
neon_eddy
Full Member
Posts: 150
I like Turtles
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #8 on:
Apr 12, 2007, 02:52 PM »
I plan on writing more good works, and for future things, yes, you have my permission for this and all tutorials, maybe just give me a link to my company / project site
http://wavestatic.com
/
http://webbake.com
respectively
To those getting goofy errors make sure your priority template variable looks like this. (attached image)
for debugging purposes I would set the doctype to be html, once is spits out good xml, then switch it.
Picture_2.png
(8.63 KB, 353x250 - viewed 595 times.)
«
Last Edit: Apr 12, 2007, 02:54 PM by neon_eddy
»
Logged
~Shawn Himmelberger
Check out my
Minneapolis MODx Web Design
Company - Himmelberger Design | Also visit my friend's
Minneapolis Computer Repair
company - Alt Repair
lukwe
Full Member
Posts: 172
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #9 on:
Apr 12, 2007, 06:48 PM »
I finally got it right; when I pasted from your tutorial I added a closing tag for XML, which is actually not in the sitemap schema.
I also had to put a '&dateFormat=`%Y-%m-%d`' in the Ditto call, 'cause the Google Sitemap checker was complaining...
Logged
----------------------------------------------------------
http://www.linkedin.com/in/lucapost
----------------------------------------------------------
neon_eddy
Full Member
Posts: 150
I like Turtles
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #10 on:
Apr 13, 2007, 09:45 AM »
I'm glad you got it working.
https://www.google.com/webmasters/tools/docs/en/protocol.html
this is the spec from google, no closing xml tag .. so I'm lost on that one.
also.. did my date format not work correctly?
Logged
~Shawn Himmelberger
Check out my
Minneapolis MODx Web Design
Company - Himmelberger Design | Also visit my friend's
Minneapolis Computer Repair
company - Alt Repair
lukwe
Full Member
Posts: 172
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #11 on:
Apr 16, 2007, 05:40 AM »
&dateFormat=`%Y-%m-%d` should be good, I probably pasted in something different from other Ditto Calls during my attempts
Logged
----------------------------------------------------------
http://www.linkedin.com/in/lucapost
----------------------------------------------------------
frippz
Jr. Member
Posts: 38
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #12 on:
Aug 14, 2007, 10:12 AM »
Really great stuff! Now, can some genious create a function to predict the value for the changefreq tag?
Logged
"In the beginning the universe was created. This made a lot of people very angry and is widely considered as a bad move."
neon_eddy
Full Member
Posts: 150
I like Turtles
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #13 on:
Aug 14, 2007, 11:09 AM »
explain this change frequency thing? I'm sure we can make it work.
Logged
~Shawn Himmelberger
Check out my
Minneapolis MODx Web Design
Company - Himmelberger Design | Also visit my friend's
Minneapolis Computer Repair
company - Alt Repair
frippz
Jr. Member
Posts: 38
Re: [Tutorial] Google Sitemap with Ditto
«
Reply #14 on:
Aug 14, 2007, 11:22 AM »
https://www.google.com/webmasters/tools/docs/en/protocol.html#xmlTagDefinitions
It's an optional tag, so it may not be very important to implement. I just thought it would be cool if someone was able to do it.
Logged
"In the beginning the universe was created. This made a lot of people very angry and is widely considered as a bad move."
Pages: [
1
]
2
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder (and DropMenu)
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı