Sep 08, 2008, 10:39 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: [Ditto] Select documents to appear on homepage via checkbox  (Read 4894 times)
0 Members and 1 Guest are viewing this topic.
0ad
Member
**
Posts: 99


« on: Apr 18, 2006, 10:34 AM »

Hi all

Sorry for being thick, but I can't see in the Newslisting snippet documentation how this feature can be used using Newslisting Multilevel and Var filter.  If anyone has a sec to point me in the right direction, I'd be much obliged.

Continued thanks team

J
Logged

Please consider the research and evidence of the Scholars for 9/11 Truth at http://www.st911.org
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #1 on: Apr 28, 2006, 02:21 PM »

All you need to do is set StartID to 0, multilevel to 1, and use tvname as the filter
Logged

0ad
Member
**
Posts: 99


« Reply #2 on: Apr 29, 2006, 12:23 AM »

ah, sweet, thanks a million mark.
Logged

Please consider the research and evidence of the Scholars for 9/11 Truth at http://www.st911.org
0ad
Member
**
Posts: 99


« Reply #3 on: Jun 06, 2006, 10:51 AM »

hi, ive tried to read about filters for ages and still cant seem to grasp how they work...

im using a checkbox tv called: filterthis

Input Option Values: Yes

Default value: No

Quote
[!NewsListing &startID=`0` &multilevel=`1` &filter=`tvfilterthis,Yes,==`!]
and its not working, where am i going wrong?

TIA, 0
Logged

Please consider the research and evidence of the Scholars for 9/11 Truth at http://www.st911.org
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #4 on: Jun 06, 2006, 11:23 AM »

First off, use Ditto. Second, try &filter=`tvfilterthis,Yes,2`. Third, please post in a relevant topic. I have split this topic into a new topic to avoid confusion.
Logged

0ad
Member
**
Posts: 99


« Reply #5 on: Jun 07, 2006, 03:41 AM »

Cheers Mark.

Thanks for Ditto, nope it didnt make a difference and yeah, very sorry.

Got a working example I could look at to try and understand where Im going so wrong?

Nuff respect

0
Logged

Please consider the research and evidence of the Scholars for 9/11 Truth at http://www.st911.org
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #6 on: Jun 07, 2006, 12:51 PM »

Ok, try the following:

1. Create a tv call ShowOnHomepage as a TEXT FIELD (so we can make sure everything is working). Assign its default value to 0.
2. Call Ditto with filter=`tvShowOnHomepage,1,2`.
3. For any page you want on the homepage set the value of ShowOnHomepage to 1.

Let me know if that works. If it does, you most likely used the wrong syntax for the checkbox (it happens).
Logged

0ad
Member
**
Posts: 99


« Reply #7 on: Jun 08, 2006, 05:08 AM »

no, it didnt work mate.  I've PM'ed you my login details...
Logged

Please consider the research and evidence of the Scholars for 9/11 Truth at http://www.st911.org
Dimmy
Testers
*
Posts: 1,731


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #8 on: Jun 08, 2006, 06:46 AM »

I am strugeling with the same problem, would love to see an exaple if you guys get this to work
Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #9 on: Jun 08, 2006, 09:09 AM »

You had a combination of a few simple problems (which I fixed):

1. You were running Ditto 1.0 and not 1.0.1
2. In your snippet call you forgot to start with a ? so nothing was returned
3. You didn't use the correct parameter names (multilevel changed to multiLevel for example)
4. Since you were not using a custom template you had to include the tv in HiddenTVs so that the filter could use it
5. The filter should not have had the last ,2 (sorry, my bad)

Here is the working call:
Code:
[!Ditto? &startID=`0` &multiLevel=`1` &hiddenTVs=`ShowOnHomepage `&filter=`tvShowOnHomepage,1`!]
[/code[
Logged

0ad
Member
**
Posts: 99


« Reply #10 on: Jun 08, 2006, 09:28 AM »

Thanks a million mark!  you da man!

Dimmy, if you made any of the mistakes i made, i wont feel so stupid  Cheesy

Cheers guys

0
Logged

Please consider the research and evidence of the Scholars for 9/11 Truth at http://www.st911.org
Dimmy
Testers
*
Posts: 1,731


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #11 on: Jun 08, 2006, 09:32 AM »

what doe hidden tv mean?
I am using a custom template
I used multilevel instead of multiLevel

will try this later and report back here
Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
Dimmy
Testers
*
Posts: 1,731


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #12 on: Jun 09, 2006, 02:29 AM »

Ok seems to work fine now thanks
 whell almost I have some docs in unpublished folders that do not show.

this is my call:
Code:
[!Ditto? &startID=`0` &tpl=`DittoTemplate` &filter=`tvShowItem,1` &hiddenTVs=`ShowItem` &multiLevel=`1` &seeTruUnpub=`1`!]
« Last Edit: Jun 09, 2006, 02:32 AM by Dimmy » Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
doze
Coding Team
*
Posts: 3,048


....Boom!


« Reply #13 on: Jun 09, 2006, 03:52 AM »

Ok seems to work fine now thanks
 whell almost I have some docs in unpublished folders that do not show.

this is my call:
Code:
[!Ditto? &startID=`0` &tpl=`DittoTemplate` &filter=`tvShowItem,1` &hiddenTVs=`ShowItem` &multiLevel=`1` &seeTruUnpub=`1`!]
Just a little typo I guess, the last parameter should be seeThruUnpub
Logged

MODxWiki || Please, list wiki worthy material here!
Dimmy
Testers
*
Posts: 1,731


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #14 on: Jun 09, 2006, 04:59 AM »

Ok seems to work fine now thanks
 whell almost I have some docs in unpublished folders that do not show.

this is my call:
Code:
[!Ditto? &startID=`0` &tpl=`DittoTemplate` &filter=`tvShowItem,1` &hiddenTVs=`ShowItem` &multiLevel=`1` &seeTruUnpub=`1`!]
Just a little typo I guess, the last parameter should be seeThruUnpub

oeps nice catch, thats what you get when suffering from dislectie
Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
Pages: [1]   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!