dotnet publish
command?module-name/resource-name.extension
?<img src='/MyCustomModule/logo.png' />
.Strange issue...
{% assign taxonomy = Content.ContentItemId["xxxxxx"] %}
{{ taxonomy.ContentItem.Content.TaxonomyPart.Terms.size }}
prints 14 in home page and 7 in all other pages... 🤨
Taxonomy is localized and has 7 terms in each of the languages...
"xxxxxx" is the Id of the Greek version
user.Properties
we would recommend you use the .As<T>()
and .Put<T>()
extensions in OrchardCore.Entities
. Why it isn't saving, is probably your index provider. It would need to retrieve the custom property, and add it to the custom MapIndex
{% script name: "My-script-registration-name", at: "Foot" %}
. Looking at the code, looks like there are checks for the same render location, but even when I tried forcing the script to the head location as well as the style, it didn't actually render.
For those who what to use GitHub Actions or Azure DevOps Pipelines, I have a document to compare them.
I will add GitHub Actions code specific to Orchard Core later.
[Route("{myValue?}")]
public async Task<IActionResult> ClassDetails(int myValue)
{
var page = await _oc.GetContentItemByHandleAsync($"slug:/class");
var shape = await _displayManager.BuildDisplayAsync(page, _modelAccessor.ModelUpdater);
shape.Properties.Add("TestPropertly", myValue);
// var content = await _displayHelper.ShapeExecuteAsync(shape);
return View(shape);
}
2021-06-02 12:07:56.9398|Default|00-521add71d6b10e8fa1df420ac31f8e49-aee88540b26e97b6-00||Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware|ERROR|An unhandled exception has occurred while executing the request. System.ArgumentOutOfRangeException: Not a valid Win32 FileTime.
at System.DateTime.ToFileTimeUtc() in System.Private.CoreLib.dll:token 0x6000ccc+0x45
at System.DateTimeOffset.ToFileTime() in System.Private.CoreLib.dll:token 0x6000d41+0x7
at SixLabors.ImageSharp.Web.Middleware.ImageContext.ComputeLastModified() in SixLabors.ImageSharp.Web.dll:token 0x60000c3+0x60
at SixLabors.ImageSharp.Web.Middleware.ImageContext.ComprehendRequestHeaders(DateTimeOffset lastModified, Int64 length) in SixLabors.ImageSharp.Web.dll:token 0x60000bc+0xe
at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.SendResponseAsync(ImageContext imageContext, String key, ImageCacheMetadata metadata, IImageCacheResolver cacheResolver) in SixLabors.ImageSharp.Web.dll:token 0x60000d1+0x28
at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.ProcessRequestAsync(HttpContext context, IImageResolver sourceImageResolver, ImageContext imageContext, IDictionary`2 commands) in SixLabors.ImageSharp.Web.dll:token 0x60000ce+0x2fb
at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext context) in SixLabors.ImageSharp.Web.dll:token 0x60000cd+0x381
at OrchardCore.Media.Services.MediaFileStoreResolverMiddleware.Invoke(HttpContext context) in OrchardCore.Media.dll:token 0x6000106+0x45d
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) in Microsoft.AspNetCore.Authorization.Policy.dll:token 0x600000b+0x3f1