Activities of "Sturla"

Awesome thank you! It worked!

So maybe it was the "index" vs "Index" thing?

But now I´ll try to replicate this in my real project. If that works fine I´ll come back and close this question.

One thing for you, there is something wrong with the styling of the header up in the left corner.

Thank you so much. I really appreciate it!

Have you really tried doing this with my code (Github+insert records)?

Shouldn´t it show some documents on the document page if there are records in the database?

I don´t know what to do here... file new project + module installing + connecting to Github and getting data == not working

I know how to guard against null exceptions 😉 its just that Groups never contains Volo-Abp-Account-TwoFactor, that is that error..

BUT the thing is that I want to remove the whole Account tab and not just from within it!

If I filter it out by "AbpAccount.SettingManagement" and try to remove it with the PermissionDataSeeder the whole Settings menu gets removed.

I have (as stated above) tried using PermissionDataSeedContributor to remove access to the menu item like this (my code is longer and little different of course)

.Select(p => p.Name)
            .WhereIf(x=>tenantId.HasValue && providerKey == RoleConstants.Tenantuser,
                            x => !x.Contains("AbpAccount.SettingManagement")
            .ToArray();   

and then using PermissionGrantRepository.InsertAsync() to give the user permissions (but not that one) BUT then the WHOLE Settings menu goes away

This error seems not related to ABP. Are you sure? How I read it is that "Volo-Abp-Account-TwoFactor" just isn´t in the Groups?

And I wan´t to hide the whole Account menu item and not individual parts of it. And just for Tenants and users but not Host.

Here is the code

using Microsoft.Extensions.DependencyInjection;
using System.Threading.Tasks;
using Volo.Abp.Account.Public.Web.ProfileManagement;
using Volo.Abp.Identity;
using Volo.Abp.Users;

namespace BSR.Beinni.ProfileManagement;

public class AccountProfileManagementPageContributor : IProfileManagementPageContributor
{
    public async Task ConfigureAsync(ProfileManagementPageCreationContext context)
    {
        context.Groups.ForEach(Console.WriteLine);
        
        // Here I was just trying to take out TwoFactor BUT I wan´t to remove the whole Account  
        context.Groups.Remove(context.Groups.First(x => x.Id == "Volo-Abp-Account-TwoFactor"));
        await Task.CompletedTask;
    }

    protected virtual async Task<bool> IsPasswordChangeEnabled(ProfileManagementPageCreationContext context)
    {
        var userManager = context.ServiceProvider.GetRequiredService<IdentityUserManager>();
        var currentUser = context.ServiceProvider.GetRequiredService<ICurrentUser>();

        var user = await userManager.GetByIdAsync(currentUser.GetId());

        return !user.IsExternal;
    }
}

and then inI have

Configure<ProfileManagementPageOptions>(options =>
{
    options.Contributors.Add(new ProfileManagement.AccountProfileManagementPageContributor());
});

Did you configure the DocsUiOptions as below?

Yes I did. Its here https://github.com/sturlath/Acme.MyProject/blob/36113e1832f5b0503f7453304d143dd9641e37b6/src/Acme.MyProject.Web/MyProjectWebModule.cs#L122

I have tried what ever permutation of the URL I can think of but its just 404 and now I see some error (didn´t spot them before because the 404 page automatically goes-browser-history-back

you need to add the Volo.Docs.Admin.Web project to your web project

OK.. but why doesn´t the CLI do that (or say abp add-module Volo.Docs.Admin)? I can´t find anything in the docs about specially having to do this (sorry for missing it if it is in there)

Anyways I updated the project and still the same 404 result

Again I get the data from Github into my database but they don´t display!

Again here is the data I got in the docs tables. Don´t you get 404?

What am I missing?

Project

INSERT INTO [dbo].[DocsProjects]([Id],[Name],[ShortName],[Format],[DefaultDocumentName],[NavigationDocumentName],[ParametersDocumentName],[MinimumVersion],[DocumentStoreType],[MainWebsiteUrl],[LatestVersionBranchName],[ExtraProperties],[ConcurrencyStamp])
SELECT N'73ccfbdd-e7f7-42e4-9a1f-3a049fa859c7', N'ÍBeinni Documentation', N'docs', N'md', N'Index', N'docs-nav.json', N'docs-params.json', NULL, N'GitHub', N'/', N'master', N'{"GitHubRootUrl":"https://github.com/Ibeinni/docs/tree/{version}/","GitHubUserAgent":"sturlath","GitHubAccessToken":"xxx","GithubVersionProviderSource":1,"VersionBranchPrefix":"rel-"}', N'40d06f2b75e6430181a7bc1bdabdf54f'

Docs

INSERT INTO [dbo].[DocsDocuments]([Id],[ProjectId],[Name],[Version],[LanguageCode],[FileName],[Content],[Format],[EditLink],[RootUrl],[RawRootUrl],[LocalDirectory],[CreationTime],[LastUpdatedTime],[LastSignificantUpdateTime],[LastCachedTime],[ExtraProperties],[ConcurrencyStamp])
SELECT N'f0c3727d-6b83-f2a6-d22f-3a04f63982f1', N'73ccfbdd-e7f7-42e4-9a1f-3a049fa859c7', N'SampleMenuItem_1_1_1.md', N'1.0', N'en', N'SampleMenuItem_1_1_1.md', N'
# Hello World', N'md', N'https://github.com/Ibeinni/docs/blob/1.0/en/SampleMenuItem_1_1_1.md', N'https://github.com/Ibeinni/docs/tree/1.0/', N'https://raw.githubusercontent.com/Ibeinni/docs/1.0/en/', N'', '20220709 17:35:45.000', '20220709 17:35:45.000', NULL, '00010101 00:00:00.000', N'{}', N'e5e9e564c9104f53a0d383ebe2534925' UNION ALL
SELECT N'6b9c2b8c-ace5-9768-0119-3a04f648a310', N'73ccfbdd-e7f7-42e4-9a1f-3a049fa859c7', N'SampleMenuItem_1_1_1.md', N'1.1', N'en', N'SampleMenuItem_1_1_1.md', N'
# Hello World', N'md', N'https://github.com/Ibeinni/docs/blob/1.1/en/SampleMenuItem_1_1_1.md', N'https://github.com/Ibeinni/docs/tree/1.1/', N'https://raw.githubusercontent.com/Ibeinni/docs/1.1/en/', N'', '20220709 17:35:45.000', '20220709 17:35:45.000', NULL, '00010101 00:00:00.000', N'{}', N'8919f724e4f54f9ba6d0501681da5945' UNION ALL
SELECT N'059d90b9-d323-1d36-3425-3a0508b43496', N'73ccfbdd-e7f7-42e4-9a1f-3a049fa859c7', N'SampleMenuItem_1_1_1.md', N'1.0', N'is', N'SampleMenuItem_1_1_1.md', N'
# Hello World', N'md', N'https://github.com/Ibeinni/docs/blob/1.0/is/SampleMenuItem_1_1_1.md', N'https://github.com/Ibeinni/docs/tree/1.0/', N'https://raw.githubusercontent.com/Ibeinni/docs/1.0/is/', N'', '20220709 17:35:45.000', '20220709 17:35:45.000', NULL, '20220713 07:47:55.158', N'{}', N'45fb4081e9c244778701fa6b0b7d2e6e'

p.s Adding these lines below results in a 500.3 error ("HTTP Error 500.30 - ASP.NET Core app failed to start")

Configure<DocsElasticSearchOptions>(options =>
{
    options.Enable = true;
});

Can you change the version parameter to a specific version (like 1.0) instead of the latest and try again? Also please set the route prefix to null, if you haven't set yet.

This is just uploaded code from your zip files so I can´t set the prefix route there. But I have followed your instructions to the letter there.

I have this project on GitHub but I can´t access the Admin URL (https://localhost:44370/Docs/Admin/Projects)

I followed the module instructions for this project (see url) but can´t seem to access the admin projects endpoint so I can´t try it out. Shouldn´t it be just https://localhost:44370/Docs/Admin/Projects just like the one from the zip?

@EngincanV any feedback on this?

In the IdentityServer project, there's no CmsKit reference.

The reason for that is that I´m using a Blazor backend so there was no other place to put the CMS functionality (since Blazor doesn´t have it).

And it worked fine before updating to +5.3.0.

Can you try to reproduce it on a brand new 5.3.2?

As you say mine is different and I need CMS in my Identity Server. Updating to 5.3.2 always gives me the same error (only on published site.)

Showing 131 to 140 of 218 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 04, 2025, 06:41