Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocLister vs Ditto - DocLister showing hidden content #385

Closed
BBloke opened this issue Nov 27, 2017 · 5 comments
Closed

DocLister vs Ditto - DocLister showing hidden content #385

BBloke opened this issue Nov 27, 2017 · 5 comments

Comments

@BBloke
Copy link

BBloke commented Nov 27, 2017

I've tried to search, so I apologise if this has been asked and answered.

I changed over to DocLister sometime ago but didn't give it enough attention. I've noticed that DocLister displays a lot more articles than Ditto. The extra articles should not be seen as they are restricted. The user cannot access them. I would have thought that DocLister should not display articles that are not in the users permissions to see?

Any help or explanation would be appreciated.

@BBloke
Copy link
Author

BBloke commented Nov 28, 2017

Here's two screenshots to show what I mean.
dittolist_nologin

doclister_nologin

@fourroses666
Copy link

Might be handy to post your snippet calls.
https://github.com/Nicola1971/Ditto-to-DocLister-Reference-Tables

Maybe display=4 or total=4

@BBloke
Copy link
Author

BBloke commented Nov 28, 2017

Good Idea.

[[DocLister? &parents=114,145,432 &display=20 &dateFormat=%d-%m-%Y %H:%M &summary=len:500 &tvList=2ColumnSpan&commentschunk=NewsComments &tpl=dl_news_home &paginate=0 &orderBy=createdon DESC &emptyText=You must be logged in to view News &noResults=You must be logged into view News. ]]

@Pathologic
Copy link

If you want to take user permissions into account, then use the according filter:

&filters=`private`

@BBloke
Copy link
Author

BBloke commented Nov 29, 2017

Argh! I've been through the params over the last few days and completely missed it. I think it is a little too easy to overlook to be honest. I would think the default would always be to private filter the results but maybe a little more information on the documentation may be worth it.

Thanks @Pathologic. That's sorted my trouble out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants