The full news can be read when you are logged in.
On the news page would display the news title and introtex. After clicking on the news title or read more link you are be redirected to the login page (if you're not logged in).
How is excluded from the Resource Group intro text and title page to see for all visitors (not logged in).
Does anyone have any suggestion or idea. Module for registration is "add-on - Login"
Thanks for any help
-
☆ A M B ☆
- 24,524 Posts
So each news page will actually be public, just the main content will be protected?
If I understand correctly, you can use the Personalize snippet to determine what will be displayed for logged-in and not-logged-in users. The resource itself would not be protected.
For not-logged-in users, they would get a chunk that displays the title and summary and readmore links (to the login page), while logged-in users would get a chunk that displays the title, summary and content. A Javascript accordion could be used to show/hide the content (all part of the logged-in chunk) if desired.
This would probably best be handled by having a template for these pages, with the Personalize snippet where the [[*content]] tags normally would go.
-
☆ A M B ☆
- 24,524 Posts
yesChunk should have exactly what you want the visitor to see when he's logged in. This can include MODx tags. The noChunk will have what you want the user to see when he's not logged in, again this can include MODx tags. For example, in your case, among other things you'll want the [[*content]] tag in your yesChunk.
Thanks again
Personalize add-on works okay (when news page is open), but I have a problem with getResource.
How to getResource show news (title, image and introtext) if the user not logged.
Is it possible to getResource shows news in Resource Group (title, image and introtext if the user not logged in?
Maybe any combination with Personalize?
Put a getResources tag in your No chunk but with a different Tpl chunk specified.
Thank you both
Everything started working when I uncheck all news from Resource Group. If the news assigned to Resource Group, the getResource does not show document.
Is there any solution for this. I don't need now possible in the future. Maybe any Proportis for gerResource.
Thank you again for all.