contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
492 stars 213 forks source link

Access protection for news articles #8405

Open agoat opened 8 years ago

agoat commented 8 years ago

I wonder why there is no access protection for news articles like it is available for 'normal' articles. Only the whole news archiv or the single content elements can be protected.

In my current project I will need that feature. But instead of another extension I think that should be a core feature.

fritzmg commented 8 years ago

You can achieve that with multiple news archives. One archive for public news entries and one archive for the protected ones. And then you configure the modules accordingly.

I realize though that this is a lot of effort, compared to simply saying "this news entry should be protected".

nigelcopley commented 8 years ago

In some respects what fritzmg explains is a better way to do it as it seperates the logic of protected and unprotected items.

Multiple archives can be displayed in a listing/archive/reader module so I presume (as I havent tested the theory) that you can create a protected and unrprotected archive and add as normal to the modules and that should control whether or not items are displayed

agoat commented 8 years ago

After I made this request I figured out, that it is possible to have multiple news archives (and also protected and unprotected) displayed within one news listing module.

I don´t know if it would better to have one archiv with protected and unprotected articles or protected and unprotected archives. Especially when you have dozens of articles I have no experience how that works. But it would than be similar to the normal articles where a protection can be set.

I think this should be up for discussion.

nigelcopley commented 8 years ago

@agoat I think the request is a good one because sometimes you may want to produce a small amount of protected content which makes the current method of achieving what you want a bit heavy.

if you have a lot of content that you need to control, seperate archives in my opinion is the best method because you have better control over it and you can also assign "user privileges" to different archives if you have multiple people creating content