Dec 04, 2008, 12:47 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: 1 [2] 3 4   Go Down
  Print  
Author Topic: Ditto 2.0 RC3  (Read 25247 times)
0 Members and 1 Guest are viewing this topic.
mmjaeger
Sr. Member
****
Posts: 409


« Reply #15 on: Mar 06, 2007, 03:32 AM »

Mark, $stopOnNotice  is set to false - haven't done any changes to the index.php file.

the error still occurs
Logged
Mark
Coding Team
*
Posts: 3,247


Ditto Developer


WWW
« Reply #16 on: Mar 06, 2007, 03:36 AM »

Did you change the lines I specified in the post a few minutes ago? (the second one, not the first one)
Logged

mmjaeger
Sr. Member
****
Posts: 409


« Reply #17 on: Mar 06, 2007, 03:39 AM »

Did you change the lines I specified in the post a few minutes ago? (the second one, not the first one)

just downloaded the latest svn - now I'm getting this one:

Code:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error:  implode() [function.implode]: Bad arguments.   
  Error type/ Nr.:  Warning - 2   
  File:  C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\snippets\ditto\classes\debug.class.inc.php   
  Line:  51   
  Line 51 source:  $ditto_IDs = array($ditto_lang["ditto_IDs_all"]." (".count($ditto->prefetch["dbg_IDs_pre"]).")"=>implode(", ",$ditto->prefetch["dbg_IDs_pre"]),$ditto_lang["ditto_IDs_selected"]." (".count($ditto->prefetch["dbg_IDs_post"]).")"=>implode(", ",$ditto->prefetch["dbg_IDs_post"]));   
 
Parser timing
  MySQL:  0.0106 s (21 Requests)
  PHP:  0.0816 s   
  Total:  0.0921 s   
Logged
Mark
Coding Team
*
Posts: 3,247


Ditto Developer


WWW
« Reply #18 on: Mar 06, 2007, 03:57 AM »

Ok, [FIXED] implode error in debug
in the SVN HEAD

And I found why I didn't catch this. I'd made an adjustment to the phpError function in the MODx core to send a Growl notificiation on notices but mistakenly typed a 2 instead of an 8 for the error code bypass.  And since stopOnNotice was false, the errors got surpressed.
Logged

mmjaeger
Sr. Member
****
Posts: 409


« Reply #19 on: Mar 06, 2007, 04:00 AM »

Ok, [FIXED] implode error in debug
in the SVN HEAD

And I found why I didn't catch this. I'd made an adjustment to the phpError function in the MODx core to send a Growl notificiation on notices but mistakenly typed a 2 instead of an 8 for the error code bypass.  And since stopOnNotice was false, the errors got surpressed.

that did it - thank you
Logged
gcruz
Member
**
Posts: 98


« Reply #20 on: Mar 06, 2007, 04:03 AM »

I've been playing with the demo

Code:
[[Ditto? &startID=`2` &summarize=`1` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`date,summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]

If the &summarize=`1`

How do I get it to show all the pages with the tag I clicked?

For example, in the demo, there are two example blog posts. They both have the tag "demo"

With the above call, when I click on the "demo" tag, it still shows the first article: Mini-Blog HOWTO.

The reason why I ask is because I want to show all the pages with the tag when clicked, even though I only want one summarized on the page.
Logged
Mark
Coding Team
*
Posts: 3,247


Ditto Developer


WWW
« Reply #21 on: Mar 06, 2007, 04:07 AM »

@gcruz: 0.9.6RC1 ships with Ditto pre-RC2 so make sure you upgrade! (Then remove the date extender as it no-longer exists)
Logged

gcruz
Member
**
Posts: 98


« Reply #22 on: Mar 06, 2007, 04:28 AM »

Thanks, I updated.
Removed the date extender and it seems to work.

I'm still trying to figure out how to have 1 summary on my blog. Then be able to click on a tag and show all the summaries with that tag.

As I stated above, it only shows one.

It works when I put more than 1 in the summary, but then I don't have a solo post.
Logged
Mark
Coding Team
*
Posts: 3,247


Ditto Developer


WWW
« Reply #23 on: Mar 06, 2007, 04:35 AM »

Thats easy. You create a new document called tags landing with the same call except for summarize. Note its ID. Then you append &tagDocumentID=`that ID` to the first call and volia, exactly how you describe it.
Logged

gcruz
Member
**
Posts: 98


« Reply #24 on: Mar 06, 2007, 05:15 AM »

Close, but I seem to be having a problem. I know the example uses a text list, but having to type in tags can lead to user error vs, checking a box. Plus I'm trying to retrofit the tags I used from the previous solution.

I have a comma delimited checkbox tag list in my TV called "tags"

On my home page, I have this call
Code:
[[Ditto? &startID=`1` &summarize=`1` &total=`all` &dateFormat=`%a, %B, %d, %Y %I:%M%p` &removeChunk=`Comments` &tpl=`nl_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`0` &tagData=`tags` tagDelimiter=`,` &tagDocumentID=`2`]]

On my Landing page (2), I have this call:
Code:
[[Ditto? &startID=`1` &dateFormat=`%a, %B, %d, %Y %I:%M%p` &removeChunk=`Comments` &tpl=`nl_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`0` tagDelimiter=`,` &tagData=`tags`]]

It only works when one tag is selected?

The tags list fine.

As soon as I click on a tag, the landing page only works if the post only has one tag "demo" (it shows both posts)

But if I add another tag onto the second post, let's say "miniblog" in addition to "demo"

When I click on the "demo" tag from the home page, it only shows the post with 1 tag?

As soon as I remove "miniblog" from the second post, they both appear in the landing page?

I noticed if I hover over the post with two tags, both tags highlight?

It looks like it is combining the tags?
Code:
<a href="/modx/index.php?id=2&amp;start=1&amp;tags=blog,miniblog" class="ditto_tag" rel="tag">blog,miniblog</a>

Shouldn't they be separate links for each tag?
« Last Edit: Mar 06, 2007, 05:20 AM by gcruz » Logged
zi
MODx Special Forces /
Administrator
*
Posts: 3,017


May Peace Be On You


WWW
« Reply #25 on: Mar 06, 2007, 05:36 AM »

Great job Mark. The documentation is really helpful and well-formatted. Cheesy

DITTO! gonna spare some time to read it and finally upgrade me Wink

thanks man! and keep up the great work.
Logged

“Internet Explorer’s CSS rendering: WYSIWTF”. — someone genius
--------------------------------------------------
myan24
Full Member
***
Posts: 117

I love MODx!


« Reply #26 on: Mar 06, 2007, 08:18 AM »

Mark

PM'd you again with a few clues as to why pagination may not be working. Thanks!
Logged
myan24
Full Member
***
Posts: 117

I love MODx!


« Reply #27 on: Mar 06, 2007, 10:32 AM »

Hi

Been having some trouble with getting pagination to work with RC2 and RC3 which mark has kindly been helping me with. I've had a bit of a breakthrough but can't understand the cause!

I've managed to get most of the pagination working but the [+current+] placeholder no longer works. I don't see it being set as a placeholder in ditto/ditto.class.inc.php either. Is this placeholder no longer valid?

I've discovered that if I disable the PHx plugin, the pagination works fine, however if I enable the plugin then pagination dissappears completely. Pagination also doesn't work if you simply use the &phx=`0` paramater while the PHx plugin is enabled.

Can anyone work out why this is happening?

Here's my ditto call and placeholders:

Code:
[!Ditto? &debug=`1` &idType=`parents` &parents=`36` &phx=`0` &tpl=`yourissues` &paginate=`1` &paginateAlwaysShowLinks=`1` &summarize=`2`!]
Page [+current+] of [+total+] Articles [+previous+] [+pages+] [+next+]

Finally, since upgrading to RC3 the debug console comes up with a 'page not found' error.

Thanks! This is hard work, but I'm loving it!



Logged
heliotrope
Coding Team
*
Posts: 2,447


WWW
« Reply #28 on: Mar 06, 2007, 10:40 AM »

I've experienced the same issue with PHx

As a work around you can call your snippet cached [[

:-)
Logged

AlexKay
Member
**
Posts: 67


« Reply #29 on: Mar 06, 2007, 11:21 AM »

Hi Mark,

I found some spurious bugs while working with the latest Rc2 & Rc3 releases.

a) When the tpl used contains the "-" character, for example &tpl=`Ditto-MyTemplate-Test` it causes my server to crash entering a race condition, and im talking about a mediatemple DV server.

b) i found that in the documentation, in the filter parameters, equality is refered as 2, but when i try to make filters work equality is 1.

Thats all for now.
Alex.

Logged
Pages: 1 [2] 3 4   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!