We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40169
    • 16 Posts
    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
      • 28042 ☆ 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.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 40169
        • 16 Posts
        @sottwell, thank you for your answer.

        Yes, everything should be public unless content. I did not know the Personalize add-on. I hope this module will help with my problem.

        Maybe even some hint for &yesChunk=`LoginUser` and &noChunk=`noLoginUser`

        I tried a few options but no real solutions. I made ​​a test page http://www.mobelnachmass.at/, news 1 and nwes 2 are visible if you login. Username:test, Password:12345678.

        Please help me with advice on &yesChunk and &noChunk for Personalize.

        Thanks again
          • 28042 ☆ 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.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 40169
            • 16 Posts
            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?
              • 3749
              • 24,544 Posts
              Put a getResources tag in your No chunk but with a different Tpl chunk specified.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 40169
                • 16 Posts
                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.