Open Closed

CMS kit - pages are not accessible without login. #5631


User avatar
0
ed_developer3 created
  • ABP Framework version: v7.3.1
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: N/a
  • Steps to reproduce the issue: Na

I have added CMS kit module to the project. I can access it on the admin side and created pages for terms and conditions and about us. These are just informational pages and should be accessible to user without login. But at present, these are not accessible without login.

Also, in future, I am going to add more dynamic MVC pages (not through CMS) , which can be accessible by guest user. I need to know how I can disable authentication for those pages.


5 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    those blogs and pages added in admin are accessible on public app. see the routing configuration done for them here. https://github.com/abpframework/abp/blob/139d0c83f20717af814f9ce5e0cea26886bb29cd/modules/cms-kit/src/Volo.CmsKit.Public.Web/CmsKitPublicWebModule.cs#L87C8-L87C8

    Then on public app you can visit that blogs by : /blogs/<blogslugname>

  • User Avatar
    0
    ed_developer3 created

    I have not created any public app. 90% of the features of my site are not public, only few pages are public. So, how I can resolve it ? I don't want to create any public app but still want to access these pages. Can you please guide me ?

    There should be some way to make some pages public instead of creating a public app which is separate than the regular app.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    first add this <PackageReference Include="Volo.CmsKit.Pro.Public.Web" Version="7.3.1" /> project refernece to your web module and then

    you can achieve it by adding [DependsOn(typeof(CmsKitProPublicWebModule))] to {YourProjectModule}WebModule see below screenshot

    and then you can view them in your admin app without login

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ed_developer3,

    Please do let us know if we can help you with something else?

    Can we close this ticket if your query is resolved? Please Confirm.

    Thank You, Anjali

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ed_developer3,

    Hope you are doing well.

    Please do let us know if we can help you with something else?

    Can we close this ticket if your query is resolved? Please Confirm.

    Thank You, Anjali

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11