Giter Site home page Giter Site logo

psijkof / modernbusiness.oc.razorpages Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 7.0 84.51 MB

Start Bootstrap's Modern Business Theme for Orchard Core as a decoupled Razor Pages Module

License: MIT License

C# 16.25% HTML 67.86% CSS 1.82% JavaScript 13.58% PHP 0.41% Liquid 0.08%

modernbusiness.oc.razorpages's People

Contributors

azure-pipelines[bot] avatar psijkof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

modernbusiness.oc.razorpages's Issues

Nuget Package Dependency

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.

Static text translations

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

An error on starting the App with App_Data from the repo (System.NullReferenceException)

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.

Suggestions on Theming CMS pages

Just a couple of thoughts:

  1. 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.

  2. 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" … }

  3. 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?

Tag part

There is a beginning with the tagPart.
It can display and store tags, editable via the backoffice.
It should also:

  • query the tags in the tagparts of the content items of the content type in the current context
  • so, it can, display the tags already used for the items of that type

Also a partial/shape should be created to display all the tags used for all the items of contenttype

  • uniquely indexed

use zone tag for marking section in themes

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

Complete users module

Users module should include
Login page
Register page
Forgot password page
Unauthorized page
Logout page/function

Doesn't build

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.