Hello,
It seems that if I sortBy pub_date but a page doesn’t have a published date - it thinks the pub_date is the epoch instead of the created date.
Can anyone confirm that this is what is happening? Is it supposed to be?
Thanks
This is an issue with MODx itself as it does not set a pub_date by default. I removed the complex SQL query that replaced those with the createdon value in Ditto 1.0.2. I *hopefully* plan on adding this back in as a php function in 1.0.3.
-
MODX Staff
- 12,272 Posts
Mark can you check the SVN trunk to see if this issue with Pub Date is set? I think we’ve changed this recently in prep for the next release. If not, please making a suggestion to the rest of the core team. Thanks!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
It appears that Ditto does not honor the seeThroughUnpub option; it will "see" through an unpublished folder in any case. Looking at the code, I tracked the value all the way to where the actual documents are retrieved, and I don’t see where it is used at all. In the getAllSubDocs function, it should be passed to the getChildIds function, where it would be used to determine whether to loop through a folder or not, depending on if it were published or not.
Hey
Feel really stupid asking this, but can someone provide me with a really simplified tutorial for setting up Ditto from scratch. Maybe I’m having one of those days, I’ve looked through the majority of the threads and the website documentation but still having no success.
Cheers
How can I write a tv to select a filter which has the output of a certain word (e.g. MPC)?
and
Is &filter=`tvFilter,MPC,1` right?
If you are saying that you wish to remove the documents with the value of Filter being MPC then your filter parameter is correct.