Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 12 2020 01:41

    jtkech on patch-1

    (compare)

  • Apr 12 2020 01:39

    jtkech on patch-1

    Update ZoneShapes.cs (compare)

Dean Marcussen
@deanmarcussen
have you called new ContentItem() somewhere after getting the item from the db? or somehow changed the c# reference to it. that would likely be the issue
MohitNaroliya
@MohitNaroliya
No, I haven't called new ContentItem() anywhere. Problem only with the one entry all other entries working fine.
CrestApps
@CrestApps
@deanmarcussen do you know what is happening to the UI when migrations along with strongly typed content-parts? https://github.com/OrchardCMS/OrchardCore/discussions/10271
Jamie
@jayhouse-github
Are there any instructions on using Azure devops to publish an Orchard Core site to an Azure webapp? Or can anyone help? If I publish straight from VS in to an Azure webapp it works find but if I build from source on Azure Devops then release to the webapp from the artifacts I just get a blank page. All the files look to be on there. Tried everything I can think of.
Dean Marcussen
@deanmarcussen
@CrestApps no idea. suggest you compare the output json from your migration with one created through the ui to figure it ou
@jayhouse-github you may have commited your App_Data folder if you're building of devops, or you may not have. check to see if you have one on the server, and probably delete it to get your setup screen
Jamie
@jayhouse-github
There is one but I need it there and it won't delete anyway. It contains the connection string to the db I already have, I added the connection string using a file transform stage and variables in Devops. It also contains the files for the media section of the CMS too. I'm not looking for a new setup, this would be an ongoing thing to build and publish changes to an existing site.
Just weird that this works publishing from VS straight from my machine but not working using Devops, there must be something that's wrong in the pipeline but really struggling to find out what.
Dean Marcussen
@deanmarcussen
If you can’t delete it, you probably used zip deploy. You need to use web deploy in the task to get a writable file system
1 reply
Jamie
@jayhouse-github
Ahh, thanks, I'll give that a go.
CrestApps
@CrestApps
I have an ASP.NET 5 project when I am using OrchardCore "not the CMS" to enable module MVC application. But for some reason I get white page when the app starts. What would be the cause? Here is my startup class
public class Startup
{
    private readonly IConfiguration _configuration;

    public Startup(IConfiguration configuration)
    {
        _configuration = configuration;
    }

    public void ConfigureServices(IServiceCollection services)
    {

        services.AddSession(options =>
                {
                    options.Cookie.HttpOnly = true;
                    options.Cookie.IsEssential = true;
                });

        services.AddControllersWithViews()
                .AddRazorRuntimeCompilation()
                .AddNewtonsoftJson(options =>
                {
                    options.SerializerSettings.Converters.Add(new StringEnumConverter
                    {
                        AllowIntegerValues = false,
                    });
                });

        services.RegisterAutoMapper(AssemblyHelpers.GetAssemblies());
        services.AddOrchardCore()
                .AddMvc()
                .WithTenants()
                .ConfigureServices((tenantServices, serviceProvider) =>
                {
                    tenantServices.AddHttpContextAccessor()
                                  .AddHttpClient();

                    tenantServices.Configure<ApiOptions>(_configuration.GetSection("DataStore"));

                    // Per tenant Identity stores
                    // the data is not store into a local database, rather in a remote API
                    tenantServices.AddScoped<IUserStore<User>, IdentityUserStore>();
                    tenantServices.AddScoped<IRoleStore<Role>, IdentityRoleStore>();

                    tenantServices.AddIdentity<User, Role>()
                                  .AddEntityFrameworkStores<TenantDbContext>()
                                  .AddRoleStore<IdentityRoleStore>()
                                  .AddUserStore<IdentityUserStore>()
                                  .AddDefaultTokenProviders();
                });

    }

    // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    {
        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }
        else
        {
            app.UseExceptionHandler("/Error");
            app.UseHsts();
        }

        app.UseHttpsRedirection();
        app.UseStaticFiles();
        app.UseRouting();
        //app.UseAuthorization();
        //app.UseAuthentication();
        app.UseOrchardCore(configure =>
        {
            configure.UseEndpoints(endpoints =>
            {
                endpoints.MapControllerRoute(
                    name: "default",
                    pattern: "{controller=Home}/{action=Index}/{id?}");
            });

        });
    }
}
CrestApps
@CrestApps
When I change the above code to this, I now see the views. Any idea why the above code is not working?
            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllerRoute(
                    name: "default",
                    pattern: "{controller=Home}/{action=Index}/{id?}");
            });

            app.UseOrchardCore();
CrestApps
@CrestApps
How can I get the project to register the default routing pattern?
Jeipi Oyams
@boryams90_twitter
Hi, how do orchard core encrypt the password and where is the encypted password stored? is orchard core using md5?
Dean Marcussen
@deanmarcussen
@boryams90_twitter I assume you are asking about the user passwords. oob Orchard Core uses Identity from asp.net. You can google how Identity manages passwords. The password itself is stored in the Document table
1 reply
Daniel Ruppert
@Niocron_gitlab
in the current version mutations for graphql aren't supported, right?
Arumar
@Vorheez

Okay i have searched through the conversations but don't see the solution. We are trying to use the smtp section but get a SSL Cert error, a lot of solutions say to ignore validation callback but don't see an option to do that through UI, where can i set it in code so it used that option.

Sending email from codebehind works fine. Not through the SMTP admin option though.

2 replies
awyl
@awyl

I am trying to override ContentPart.Edit.cshtml shape in Admin Template. Because I don't want the title of the named part showing. So I have this ContentPart_Edit shape in Admin Template. However it doesn't work, what did I do wrong?

{% for shape in Model %}
  {{ shape | shape_render }}
{% endfor %}

I tried to output the Model, it shows OrchardCore.DisplayManagement.Shapes.Shape. If I shape_render it, it will endless loop.

Sotiris Roussos
@urbanit
stupid question: does OrchardCore repo have "dev" branch?
4 replies
Sotiris Roussos
@urbanit
image.png
9 replies
updated to latest main and got this when tries to launch widgets... Any ideas?
yiannis kyriazidis
@giannik
I wish to reference any existing theme dll from one web site to another. So I just copy TheTheme.dll and TheTheme.Views.dll to a libs folder in my new project and reference the 2 assemblies in the new web site project.
But I dont see from the admin in themes section this new theme to activate .
Should'nt this work out of the box ? I dont see any mention of the theme in the features list either .
Dean Marcussen
@deanmarcussen
I would think you'd want to reference the nuget package, just grabbing the dll's would not include the manifest info packing I suspect
yiannis kyriazidis
@giannik
yes @deanmarcussen the nuget package reference worked.
JoshTango
@JoshTango
where is the link to setup nigthly builds for my nuget packages please?
where is the page explaining how to set this up is what i mean
Jeipi Oyams
@boryams90_twitter

Hi all. I install Commentator.OrchardCore.
image.png

and Im getting an error
image.png

Any idea how to fix this?

This message was deleted
aaronamm
@aaronamm

How can I use placement.info to hide Blog content item on a home page?
Here is what I have done so far:

  • Create an Orchard project with a blog recipe.
  • Create a custom theme.
  • Put placement.info in the root of my theme.
  • Here is the content of placement.info
    {
    "Content__Blog": [
      {
        "place": "-"
      }
    ],
    "Content_Blog": [
      {
        "place": "-"
      }
    ],
    "Blog": [
      {
        "place": "-"
      }
    ]
    }
  • None of these filters work, a blog content item still show on home page. I think to simplify example code we can remove other option, e.g. display type.
  • I can create Views/Content-Blog.cshtml with empty content in my custom theme but I think it is tricky and not the right way to do it.
  • Please could you help me figure it out?
  • I have tried to debug source code but still don't' understand how it work.
  • From what I understand now, the shape name should be "Content__Blog".

Thanks.

6 replies
Sotiris Roussos
@urbanit
Does anyone else face the following problem (french or non-english): when publishing this Admin/Contents/ContentItems/{ContentItemId}/Edit?returnUrl={greek or unicode characters} the redirect goes to {some encoded or strange characters url} and of course we are getting page not found... It happens on Azure, not on local dev env.. Both on .net 3.1 and 5
vmahant
@vmahant
Any Idea if I can use default orchard site for single sign-on for all other orchard tenants?
2 replies
CrestApps
@CrestApps
Is theming available on OrchardCore "outside the CMS"?
13 replies
Mark Clark
@daerogami
Back in July I asked about hosting a SPA (Angular) with the same middleware that is running OrchardCoreCMS. Has anyone managed to find a a good configuration to accomplish this? The main issue I run into is conflicting resources at the root level and I'd prefer to not put my SPA inside a route (I want all of the spa routes to start from root). I wouldn't mind serving the CMS from its own route but finding a good configuration for that is proving difficult.
14 replies
Greg Finzer
@GregFinzer
I created a project with VS2019. I ran the Empty Recipe on Startup. Is it too late to run the blog recipe? How would I do that?
Mark Clark
@daerogami
@GregFinzer I think you can run a recipe from Configuration>Recipes in the admin backend. I'm not sure if all the default recipies show up there.
Arumar
@Vorheez
This message was deleted
3 replies
Andrew
@andrewcampkin
Hi, I'm looking for a guide on customising the error views that come with OrchardCore.Diagnostics. From my understanding of how that module works it isn't possible to just create copies of those views within a theme, as this is a controller/action process rather than driver/shapes. Is it possible to customise those views within a theme?
gyanendrarijal
@gyanendrarijal
Hi, I noticed that OrchardCore downloads all localization files. Is it possible to limit or completely disable the download of these files? We use only the English version of the admin part.
2 replies
somecodeguy
@dafergu2:matrix.org
[m]
Trying to get <dynamic-cache> working. It doesn't seem to be doing anything. The module is enabled, the taghelper should be imported.
2 replies
somecodeguy
@dafergu2:matrix.org
[m]
Hey @sebastienros, I was profiling my db to watch how many times it was being queried during some caching testing and I noticed something odd. If I refresh a page, the very first event I see in my profile is a sql logout (SQL Server) that is then followed by a login. Any idea why that is? Is a connection not being cleaned up properly? Or is the connection being dropped unnecessarily?
3 replies
CrestApps
@CrestApps
How can I chain AddNewtonsoftJson() to services.AddOrchardCore().WithMvc()...?
somecodeguy
@dafergu2:matrix.org
[m]
lengockyquang
@lengockyquang
how can i disable a term of taxonomy and unpublish all post belong to that term ?
Dean Marcussen
@deanmarcussen
i would use the taxonomy filters, select the term you want to unpublish, and use a bulk action unpublish to unpublish them all
lengockyquang
@lengockyquang
but what if I have a lot of blog posts, I still have to unpublish multiple times for each page in admin content item list
Dean Marcussen
@deanmarcussen
that's what the bulk actions bit is for. click click. unpublish lotsa things
lengockyquang
@lengockyquang
okay :D