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)

Richard Garside
@NogginBox
@deanmarcussen they're in there. Do all the files need a build action setting on them?
Richard Garside
@NogginBox
Hmmm. Some files are being shown like my icon file. I'm confused.
Richard Garside
@NogginBox
Looks like theme resources are case specific. Making sure case matches.
Richard Garside
@NogginBox

Almost there now with http://new.nogginbox.co.uk/

But my menu tag is getting rendered in the HTML as:

<menu alias="alias:main-menu" cache-id="main-menu" cache-fixed-duration="00:05:00" cache-tag="alias:main-menu" />

It's working fine on my local machine.
Dean Marcussen
@deanmarcussen
nice! you need to add a direct reference to the OrchardCore.Menu nuget package from your theme.
Richard Garside
@NogginBox
Thanks @deanmarcussen that sorted it.
Nogginbox is now updated from Orchard Classic to Orchard Core.
https://www.nogginbox.co.uk/
Just need to write some actual more blogs posts now.
Chris Norman
@inzi
Disclaimer, new to OC. I am trying to make my module the 'default route' . I have home route disabled in features, and I'm attempting attribute routing for the controller, but I get a 404. At the controller level, I'm specifying Route for "", "~/" - I just looks like these are being ignore. Is there something I have to do in the host project in startup to get it to honor attribute routing?
Niraj Soni
@ns8482e
You need to enable your module
[Route("")] or [Route("~/")] works
Dody Gunawinata
@dodyg
I am using OrchardCore.Module in my MVC Application. It's not a CMS. I need to implement a background service. I read that IBackgroundTask needs to be enabled from the Admin module. The problem is I don't have this. Is there anyway for me to enable a background task from code?
Sotiris Roussos
@urbanit
Hey guys, need urgent help here...
  1. Deployed to Orchard site to Azure through GitHub Actions
  2. With empty App_Data, I got setup screen
  3. SetUp and access site
  4. Replace in app.setting Connection string & upload ContentDefinition.json : error 500
  5. Error: Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Connection ID "14195346027082417527", Request ID "80000578-0000-c500-b63f-84710c7967bb": An unhandled exception was thrown by the application.System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Http.Polly, Version=5.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
  6. Additional Error: ```<div id="content">
    <div class="content-container">
     <h3>HTTP Error 500.0 - Internal Server Error</h3>
     <h4>The page cannot be displayed because an internal server error has occurred.</h4>
    </div>
    <div class="content-container">
     <fieldset>
         <h4>Most likely causes:</h4>
         <ul>
             <li>IIS received the request; however, an internal error occurred during the processing of the request.
                 The root cause of this error depends on which module handles the request and what was happening in
                 the worker process when this error occurred.</li>
             <li>IIS was not able to access the web.config file for the Web site or application. This can occur if
                 the NTFS permissions are set incorrectly.</li>
             <li>IIS was not able to process configuration for the Web site or application.</li>
             <li>The authenticated user does not have permission to use this DLL.</li>
             <li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li>
         </ul>
     </fieldset>
    </div>
    <div class="content-container">
     <fieldset>
         <h4>Things you can try:</h4>
         <ul>
             <li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web
                 server's machine account.</li>
             <li>Check the event logs to see if any additional information was logged.</li>
             <li>Verify the permissions for the DLL.</li>
             <li>Install the .NET Extensibility feature if the request is mapped to a managed handler.</li>
             <li>Create a tracing rule to track failed requests for this HTTP status code. For more information about
                 creating a tracing rule for failed requests, click <a
                     href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li>
         </ul>
     </fieldset>
    </div>```
Sotiris Roussos
@urbanit
Q: how can we disable a feature from console in production? UI is not available... Is it file or database?
Dean Marcussen
@deanmarcussen
database @urbanit there's two documents you have to tweak. they're generally towards the top of the Document table
Sotiris Roussos
@urbanit
Yeap, thanks, found it... But I have a very strange issue: when I enable Recaptcha feature on production, site returns always 500 ???
Without logs.. same in local env towards production database, succeeds
Dean Marcussen
@deanmarcussen
bad settings possibly? might be hiding the exception, or logging it with the wrong information level
15 replies
Venkatesan R
@vengi83644
2 replies
Stefan Tropčić
@stefan73_gitlab
Is it possible to add additional options to sort and show admin filters in content item list in admin theme (ContentsAdminListFilters shape). Would be thankful for any guidance. I thought removing default implementation with empty template through placement would suffice but then realized default values will always be there. Is there something I am not seeing?
Niraj Soni
@ns8482e
How to query User for CustomUserSettings? Is there any Index table available?
1 reply
Dean Marcussen
@deanmarcussen
If you want to query a value there you have to make your own index . Check whether you need a query or if you would want to put a value in the users claim instead
For the admin filters there are many (maybe too many) hooks for them. You can replace the view. But if you just want an extra sort order an adminfilter should be able to add to the collection.
1 reply
Dean Marcussen
@deanmarcussen
You’ll need to be specific about exactly what you want to achieve. There’s so many different hooks there it’s hard to know exactly what to suggest. Probably it’s a matter of binding another filter provider which uses a different value and applies a different sort if that’s what you want. I think a new filter registered later could override that terms behavior
Stefan Tropčić
@stefan73_gitlab
image.png
disregard old design...would like to remove unpublished property based on contentType list so if there is content type which isn't draftable i would like to show unpublished, and add some default user apropros "owned by me"..."owned by x"...orders are probably more problematic, because if I would like to order by some property in some index, i never want default ordering by modifiedUtc
2 replies
Niraj Soni
@ns8482e
i was thinking like _session.Query<User>().Where( /*condition*/ ) but i don't see where method
am i missing anything?
Dean Marcussen
@deanmarcussen
Query<User>.With<IndexThatYouWrite>
8 replies
Andy Rose
@andycyberian
I suspect I know what the answer is however have been asked by my BAs to enquire, does Orchard Core support any form of 'content locking' when a user is editing a content item in order to prevent two users editing the same item concurrently? If not is this something that may be on the development road map in future?
21 replies
Chris Norman
@inzi

Hello. I have some modules and multiple themes. I'm trying to get staticfile mapping depending on which theme is active.

If I have an image sourced in a module, such as src="/images/themelogo.jpg", and I have two themes, each with a different image in wwwroot/images/themelogo.jpg -

How do get the active theme's wwwroot to serve from the "/" path?

I have tried this in the themes,
app.MapWhen(
context => context.Request.Path.Value.StartsWith("/images", StringComparison.InvariantCultureIgnoreCase),
config => config.UseStaticFiles()
);

1 reply
Saleem-Developer
@saleemhaq
crud.PNG
how i develop my custom form in orchard core decouple cms see attachment and saved all data in db and on admin side show on listing of an item of nav
Saleem-Developer
@saleemhaq
@remcoros
Dean Marcussen
@deanmarcussen
I disagree @ns8482e . A user and a content item are completely different documents so you can only make an index between one or the other. It’s not related to a part at all because indexing is on a document but document basis. But I don’t really understand what the end result you expect to be? By that I mean what kind of query would you expect to be able to make? Maybe what you are looking for is a user picker field which is a bridge between a content item document and a user document?
Niraj Soni
@ns8482e
I mean the user properties being content type like anyother content item shound it use indexes defined on content item?
1 reply
Niraj Soni
@ns8482e
Why UsersByClaimIndex doesn't have any record? - is it no longer used? or do i need to enable any feature?
Dean Marcussen
@deanmarcussen
UsersByClaimIndex is a store where you can put special user claims. It is an Identity feature which we support. But we don't make use of it in Orchard Core. Any claim you put in there will automatically be included in the user claims.
Niraj Soni
@ns8482e
then how do I query list of user's that has specific permission?
Dean Marcussen
@deanmarcussen
we only index UsersByRole. so you would query which roles have the permission, and then which users are in that role
byhub
@byhub
hi everyone, got quick question for anyone who can help with. We are trying to convert from Orchard legacy to orchard core. It seems like there is no IFieldStorage interface in orchard core. Can you please guide us with some documentation link "to implement custom field storage" --> IFieldStorage interface doesn't exist in Orchard Core so that there must be a new logic/model/api. Thanks in advance!
38 replies
dataminer-accolade
@dataminer-accolade
Hi guys, I would like to import data from different data sources. What would be the best solution to create content via API. As far as I know, GraphQL API does not support mutations.
5 replies
awyl
@awyl
Is there any way to replace the default search for contents on the top of content items admin page? I have built one with that look up lucene. I want to let the user just type what they want to search (e.g., "16659") instead of having to add something like "full:16659".
Dean Marcussen
@deanmarcussen
@awyl it depends where you want to replace (i.e. the entire thing, or just a section). you could replace the query service, or just register a different default term (the term that does not require full:) and use lucene for the query in that. (it was designed and intended that if you wanted to replace it with a lucene query you could)
Saleem-Developer
@saleemhaq
face this issue:
image.png
image.png
awyl
@awyl
@deanmarcussen I want to replace default term on /Admin/Contents/ContentItems. I tried to register a different default term, but it didn't work. I still want other filters to work as it is now. Just want to swap the default text: to my full:.
Niraj Soni
@ns8482e
@awyl may be you can register your own IContentsAdminListFilterProvider that takes full as default term
awyl
@awyl
I did. The default one still run instead of mine. Is there a way to remove the default “text:” one?