MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Sep 08, 2008, 10:37 AM
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
:Read
Frequently Asked Questions (FAQ)
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Creating & Repurposing Content
»
Ditto
(Moderators:
Mark
,
PaulGregory
)
»
Example of Reflect to do a Ditto Post Archive
Pages: [
1
]
2
Go Down
« Previous topic
Next topic »
Print
Author
Topic: Example of Reflect to do a Ditto Post Archive (Read 4546 times)
0 Members and 1 Guest are viewing this topic.
johnvb
Jr. Member
Posts: 48
Example of Reflect to do a Ditto Post Archive
«
on:
Apr 15, 2007, 02:25 AM »
Can anyone point me at some example code for setting up Reflect to do a Ditto Month by Month archive please? Couldn't work it out from the Ditto documentation, I just get an error "The Ditto object is invalid. Please check it."
Thanks
John
Logged
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #1 on:
Apr 15, 2007, 02:44 AM »
1. Make sure you are using the latest version of Reflect bundled with Ditto 2.0.2
2. Copy the following call [[Reflect?config=`wordpress` &targetID=`2` &getDocuments=`1` &dittoSnippetParameters=`startID:2`]]
3. Change the 2 to the container holding your blog entries and has &extenders=`dateFilter` in its call.
«
Last Edit: Apr 15, 2007, 02:38 PM by Mark
»
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
johnvb
Jr. Member
Posts: 48
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #2 on:
Apr 15, 2007, 04:00 AM »
Thanks again Mark. I now have this in a test page:
[[Reflect?config=`wordpress` &targetID=`681` &dittoSnippetParameters=`startID:148`]]
There are blog posts within folder 148, and page 681 contains a ditto call:
[!Ditto?startID=`148` &tpl=`BlogEntry` &extenders=`dateFilter`!]
There are still a couple of problems:
1) The Ditto call always displays the most recent posts (as if the extender isn't working)
2) The month archive list is in the wrong order when the months are for previous years:
* January 2007
* February 2007
* March 2007
* April 2007
* June 2006
* July 2006
* August 2006
* September 2006
* October 2006
* November 2006
* December 2006
Any ideas?
Logged
johnvb
Jr. Member
Posts: 48
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #3 on:
Apr 15, 2007, 07:58 AM »
Not sure about the date ordering problem yet, but the other problem is solved by including &getDocuments=`1` in the reflect call.
Logged
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #4 on:
Apr 15, 2007, 02:39 PM »
Try upgrading to the latest development edition for problem number 2.
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
johnvb
Jr. Member
Posts: 48
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #5 on:
Apr 15, 2007, 03:01 PM »
Actually, I've just worked it out. I had to set &monthSortDir=`DESC` to fix it. For some reason the default for years is DESC but months is ASC so you get the odd sort order.
Thanks again for your help,
John
Logged
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #6 on:
Apr 15, 2007, 03:11 PM »
That was what I changed in the dev version, specifically in the "wordpress" config file. It normally sorts like that since it displays a list by year then by month.
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
DfX
Member
Posts: 81
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #7 on:
Jun 13, 2007, 03:34 PM »
Does Reflect only work in 0.96?
I cant get it to work, Im using 0.95.
Ive tried a dozen examples and I cant get it to work..its....driving.... me.. nuts...
TY
Logged
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #8 on:
Jun 13, 2007, 07:22 PM »
Reflect works fine in both 0.9.6 and 0.9.5. Remember, for Reflect to work you must have the version of Ditto it was bundled with installed. This should give you some examples:
http://ditto.modxcms.com/tutorials/wordpress-style-archives.html
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
DfX
Member
Posts: 81
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #9 on:
Jun 13, 2007, 08:20 PM »
Ok , Thank you-
But Ive tried that and it does not work right for me Ive also tried this...
But it only results in One Month...
update
unbelievable it appears most of my misery has been caused by a slight misspelling...
now after adjusting some parameters im on the right track...
Thanks for your attention..
«
Last Edit: Jun 13, 2007, 08:33 PM by DfX
»
Logged
DfX
Member
Posts: 81
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #10 on:
Jun 13, 2007, 08:46 PM »
BTW-
In the style for that wordpress style archive..if you want to get rid of the gaps in the li's dont forget to apply:
display:inline
to the style
.reflect_archive_list ul ul li
IE quirk.
that alone will get rid of spacing probs.
Again thank you...I cant believe something like a misspelling has put me on hold for as many hours as it has...
(note to self: check spelling first!)
Logged
sarah
Full Member
Posts: 164
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #11 on:
Nov 09, 2007, 12:19 AM »
Hi,
Is there any way to limit the results to just one month?
Thanks in advance,
Sarah
Logged
ddools
Jr. Member
Posts: 36
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #12 on:
May 09, 2008, 07:16 AM »
Hi sorry to bump this old post like this(but it does have relavence i think)...
based on the previous posts ive been trying to create something similar(ie a post archive)
so
page 107 is my blog page, and is also where i want to display the archive, and it is also the folder that all my blogs(pages) are being kept under
page107
blog1
blog2
blog3
page124
so... page 107 contains the following code
Code:
[[Reflect?config=`wordpress` &targetID=`124` &dittoSnippetParameters=`startID:107`]]
and in another page(page 124) i have this code
Code:
[!Ditto?startID=`107` &tpl=`BlogEntry` &extenders=`dateFilter`!]
now when i load page 107 i can see my blogs and also th archive, but when i select the archive i am brought to a page
URL:
www.mydomain.com/124.html?reflect_708_month=5&reflect_708_year=2008&reflect_708_day=false&reflect_708_start=0
and a blank page....
andbody have any suggestions as to what im doing wrong?,,
cheers
Logged
tkfm
Sr. Member
Posts: 450
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #13 on:
May 09, 2008, 01:38 PM »
Try using &id parameter for both snippets(Ditto and Reflect).
Logged
fanta
Jr. Member
Posts: 13
Re: Example of Reflect to do a Ditto Post Archive
«
Reply #14 on:
Jul 03, 2008, 09:04 AM »
Hi,
I cannot make this automate archive working... I did everything as described above, I tried also to follow steps from here:
http://ditto.modxcms.com/tutorials/wordpress-style-archives.html
,
I have still info: The Ditto object is invalid. Please check it.
I don't know if i am doing this right... I have page called Blog (2) where I have summary of my posts published. In this folder I keep all posts. I created new document called Archive (52) where I put this call:
Code:
<h2>[+wp_month+] [+wp_day+] [+wp_year+]</h2> [!Ditto? &id=`wp` &extenders=`dateFilter` &parents=`2`!]
In my template I put on a sidebar this call:
Code:
[!Reflect? config=`wordpress` &targetID=`52` &getDocuments=`1` &dittoSnippetParameters=`parents:2` &id=`wp`!]
It is not working, what I'm doing wrong? Do I have to specify somwhere this id=wp? do I have to specify something like: config=`wordpress` ? I don't understand where these come from, I took them from teutorial.
also, do I have to create new documents for each month? or is it automaticly created? I'm lost.....
Thanks
«
Last Edit: Jul 03, 2008, 09:15 AM by fanta
»
Logged
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ışı