·
Added a discussion

Hi all

How do I have to ensure that an unauthenticated person can only see the title when entering here https://trabajoar.ar/view-ad/analista-desarrollador-full-stack-100? (in this case I am working with the Ads app).

That is, I need the person to only see the title, because the objective is that to see all the content the person must register or log in.

I've been trying for hours and can't find a way.

Thank you.

  • 593
Comments
    • @Claudio Acosta 👋

      Studio->Pages

      Select the module, say ads. Then find view-page (view-ad, view-post, view-video etc etc)

      Find the block that displays the information or anything on the page you want hidden, and set permissions for it (remove unauthenticated)

      Easy peazy 😁👍

      • Furthermore, I'd add a new block to those pages, HTML block, and set view to unauthenticated only. Then add

        You must be signed in to view the content.

        This way people know to sign in or sign up 😁

        • Hi @Wise

          Thanks for response.

          This is the block that allows you to view the ad information.

          image_transcoder.php?o=sys_images_editor&h=2105&dpx=1&t=1719017660

          The problem is that this block includes the ad fields: title, text, header image. In this way there is no possibility of configuring so that only the title can be viewed by unauthenticated people. The change I can make affects the entire block, consequently all the mentioned fields.

          For me it is important that only the title can be seen, because it is what serves as an incentive for the person to register.

          Thanks.

          • Hi all!

            Every ad info has the "View" form where you may control the visibility of every field. For example, the With Price: View form in the Studio->Forms->Ads->9 displays area. So you may setup the sets of fields there and it will affect for all ads under categories of the "With price" type.

            • Hi @LeonidS

              What you indicate is the first thing I tried, but I couldn't do it. Maybe I'm not doing something right.

              I have 8 display instead of 9. I am working with: "With Price: Add", "With Price: Edit" and "With Price: View".

              image_transcoder.php?o=sys_images_editor&h=2108&dpx=1&t=1719067935

              In "With Price: Add" and "With Price: Edit" I deactivated some fields that I don't need, such as: names, price, quantity, After purchase notes, because I am going to publish only job opportunities.

              I thought the solution was to configure the fields in "With Price: View" which only has 3 activated fields (category, created and updated). I then activated the "Text" field and changed the setting to "Visible for".

              image_transcoder.php?o=sys_images_editor&h=2109&dpx=1&t=1719068058

              However, in https://trabajoar.ar/view-ad/analista-desarrollador-full-stack-100 the content of the "Text" field is displayed for unauthenticated users (below the ad title). Attached image.

              The only effect that action has is that the ad text is now displayed in the "Info" block for authenticated users.

              Thanks.

              • I was thinking the page title was separate from all information, then it would have been easy to just restrict the whole block 😁

                • You may need to create a raw block, have it set to render for Unauthorized members only with CSS to hide portions of the page you don't want seen. Band-aid fix, but that's what I had to do with profiles on my site as disabling member roles from viewing profiles, still has the users header information still there, including their banner/profile picture / views / etc.

                  • Hi @LoneTreeLeaf

                    Thank you for your suggestion.

                    The solution I found for now (although I hope @LeonidS 's answer will help me find a better solution), is to modify the "View Ad" page as follows:

                    1) I configured the "Ad Text" block to be not visible to unauthenticated users.

                    2) I added an HTML block with a message for unauthenticated users that says you must log in or register to see the ad.

                    I think it is not the ideal solution, but in principle it works for me.

                    Regards.

                    Login or Join to comment.