psijkof / modernbusiness.oc.razorpages Goto Github PK
View Code? Open in Web Editor NEWStart Bootstrap's Modern Business Theme for Orchard Core as a decoupled Razor Pages Module
License: MIT License
Start Bootstrap's Modern Business Theme for Orchard Core as a decoupled Razor Pages Module
License: MIT License
When pulling a fresh copy of the solution and then installing the Nuget packages, the following error message display for all the projects in the solution.
ModernBusiness.Pages.Faq depends on OrchardCore.Forms (>= 1.0.0-beta3-71165) but OrchardCore.Forms 1.0.0-beta3-71165 was not found. An approximate best match of OrchardCore.Forms 1.0.0-beta3-71500 was resolved.
Some pages in modules contain static texts (text/content that doesn't come from the backend)
It should be localizable, for example
<h1>Sign Up!</h1>
should become
@T["Sign Up!"]
The About page and Price plan pages have this work done as an example
I am glad to find this project. I am novice in asp.net core.
Project is nice and helpfully.
I have downloaded and enrolled project and have started
but i have receveid message which is below
System.NullReferenceException: Object reference not set to an instance of an object.
at YesSql.QueryExtensions.Query[T](ISession session) in C:\projects\yessql-un1yf\src\YesSql.Abstractions\QueryExtensions.cs:line 11
at OrchardCore.Environment.Shell.Data.Descriptors.ShellDescriptorManager.GetShellDescriptorAsync() in C:\projects\orchardcore\src\OrchardCore\OrchardCore.Infrastructure\Shell\ShellDescriptorManager.cs:line 55
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.OrchardCore.Environment.Shell.Builders.IShellContextFactory.CreateShellContextAsync(ShellSettings settings) in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContextFactory.cs:line 43
at OrchardCore.Environment.Shell.ShellHost.GetOrCreateShellContextAsync(ShellSettings settings) in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 89
at OrchardCore.Environment.Shell.ShellHost.PreCreateAndRegisterShellsAsync() in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 186
at OrchardCore.Environment.Shell.ShellHost.InitializeAsync() in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 62
at OrchardCore.Modules.ModularTenantContainerMiddleware.Invoke(HttpContext httpContext) in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Modules\ModularTenantContainerMiddleware.cs:line 39
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
Project ModernBusiness.OrchardCore-master ran well.
But newest project failed to run.
Can you help me?
Best regards.
Like in the coming soon theme
Just a couple of thoughts:
On the /ModernBusiness.Theme/Views/Shared/NotFound.cshtml
page, consider adding
@{ Layout = "_Layout.cshtml" }
This helps avoid having to maintain the template in two separate layout files in case you make changes to one.
EDIT: I see now this won't work because of the Breadcrumbs, unless you check if the model is empty by making the following change in /ModelBusiness.Pages.Shared/Pages/Shared/BreadcrumHeader.cshtml
…
<h3 class="m-subheader__title m-subheader__title--separator">
@if (Model != null)
{
@Model.DisplayText
}
@if (Model != null)
{
@if (Model.Content != null)
{
<small>@(Model.Content?.SubtitlePart?.Subtitle.Text ?? "")</small>
}
else
{
<small>@(Model.SubTitle ?? "")</small>
}
}
</h3>
…
It would work then, for example, when a Not Found is thrown (not sure about other errors). Otherwise, without this change you would get a Cannot perform runtime binding on a null reference error
.
Consider adding a Content.cshtml
view to /ModernBusiness.Theme/Views
. Any pages created in the CMS won't by themed otherwise. I just used the Content.cshtml
file from TheTheme
and modified it to my needs. You can then add the layout to theme it
@{ Layout = "../Views/Shared/_Layout.cshtml" … }
Not sure how to trigger the _error.cshtml
view in /ModernBusiness.Pages/Pages
because I wanted to check if it, too, was being properly themed. That's not really a suggestion, just my ramblings. :) I guess maybe importing the layout in that file would work?
There is a beginning with the tagPart.
It can display and store tags, editable via the backoffice.
It should also:
Also a partial/shape should be created to display all the tags used for all the items of contenttype
We support 2 cultures:
You have to set/add those in the admin via settings/general to see them in effect.
Once the bug is cleared in OC, we'll include them in the recipe.
Error
InvalidOperationException: The following sections have been defined but have not been rendered by the page at '/Areas/ModernBusiness.Theme/Views/Shared/Layout.cshtml': 'Nav, Header, Messages, Footer'. To ignore an unrendered section call IgnoreSection("sectionName").
fixed by replacing @section tag with taghelper
Users module should include
Login page
Register page
Forgot password page
Unauthorized page
Logout page/function
We are currently not sure how we can do this with OC
Hi I cloned the code in hope that it would help me with Orchard but I get couple of build errors.
'IOrchardDisplayHelper' does not contain a definition for 'MarkdownToHtml' and no accessible extension method 'MarkdownToHtml' accepting a first argument of type 'IOrchardDisplayHelper' could be found (are you missing a using directive or an assembly reference?)
and
'ISite' does not contain a definition for 'SupportedCultures' and no accessible extension method 'SupportedCultures' accepting a first argument of type 'ISite' could be found (are you missing a using directive or an assembly reference?)
Something special I need to do to get it to build?
Another theme, for this example let's say a red variant, should be added so theme switching can be demoed
Thanks @sebastienros for pointing this out
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.