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 01:41

    jtkech on patch-1

    (compare)

  • Apr 12 01:39

    jtkech on patch-1

    Update ZoneShapes.cs (compare)

Safemark-Jimmy
@Safemark-Jimmy
Hi, as some search I did, I could create content type by using above code,
just wondering, does anyone of you know how could I append text into title and markdownbody. thanks~
qadirkanore
@qadirkanore
Screen Shot 2020-07-01 at 10.37.25 AM.png
Hi guys having issue with Bag item in graphql query.Custom fields are not resolving for Bag items in Graphql query.Using latest Orchard core Dev docker image with MySQL database
1 reply
weirdyang
@weirdyang
Hi, I'm haivng trouble with the scriptevaluation.evaluateasync(), it can't seem to parse strings without a "" ?
Esprima.ParserException: Line 1: Unexpected identifier
at Esprima.JavaScriptParser.ThrowUnexpectedToken(Token token, String message)
at Esprima.JavaScriptParser.ConsumeSemicolon()
at Esprima.JavaScriptParser.ParseLabelledStatement()
at Esprima.JavaScriptParser.ParseStatement()
at Esprima.JavaScriptParser.ParseStatementListItem()
at Esprima.JavaScriptParser.ParseProgram(Boolean strict)
weirdyang
@weirdyang

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'column')
Actual value was 1.
at Esprima.Position.ThrowArgumentOutOfRangeException(String name, Int32 column)
at Esprima.Position..ctor(Int32 line, Int32 column)
at Jint.Native.Json.JsonParser.ThrowError(Token token, String messageFormat, Object[] arguments)
at Jint.Native.Json.JsonParser.ThrowUnexpected(Token token)
at Jint.Native.Json.JsonParser.ParseJsonValue()
at Jint.Native.Json.JsonParser.Parse(String code, ParserOptions options)
at Jint.Native.Json.JsonParser.Parse(String code)
at Jint.Native.Json.JsonInstance.Parse(JsValue thisObject, JsValue[] arguments)
at Jint.Runtime.Interop.ClrFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal()
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()
at Jint.Runtime.Interpreter.Statements.JintExpressionStatement.ExecuteInternal()
at Jint.Runtime.Interpreter.JintStatementList.Execute()

I'm passing the response body like so:

2 replies
Felix Stumvoll
@FelixStumvoll
hey im currently trying to set up client credential flow like in this video.
however the request fails due to CORS issues
is there a way how i can fix this
5 replies
BJury
@BJury
heh, anyone else notice that you can't use Chrome's suggested passwords due to complexity?
3 replies
Sen-Gupta
@Sen-Gupta
@Safemark-Jimmy you wish to define a ContentType programatically?
ורוניקה ציבין
@veronica_stuff_twitter
Hi guys, I have to create centralized taxonomy - one taxonomy in default and use it in other tenants : have to provide ability for other tenants admins update create terms but keeping records centralized in one Extendent Main Table table for shared use. from each
I suppose that table will contain records of ContentItemId of Content , TermContentId, TaxonomyContentId and additional BasePath for navigation.
ורוניקה ציבין
@veronica_stuff_twitter
I considering to create new type for picking up taxonomy Terms for contentItems, but I really want to use the taxonomy part as is. Maybe add some hack in midlleware like not adding BasePath For Taxonomy Admin routing.
I though may be managing just one taxonomyIndex table for all tenants will be ok? Please help
I need it for sharing and routing in standardized way contentItems from other tenant with same recipe .
Francesco Di Nardo
@fdinardo_gitlab

Hi guys, I am sorry to bother here again, but I am struggling trying to add an orchard project into in a solution where an existing project lives. Let's say I have one MVC (not-razor-pages) project called Module1. this project will be the root of the hosting URL: www.example.com. I have routes like:

I would like to add another project called Module2.Blog which lives under this URL, using a multi-tenant configuration:

But I am getting a lot of routing exceptions when I try to access :

Look like only the HOME PAGE is working properly.

I have in the appsettings this:

  "OrchardCore": {
    "Default": {
      "State": "Running",
      "RequestUrlHost": null,
      "RequestUrlPrefix": null,
      "Features": [],
      "CustomTitle": "Module1"
    },
    "Blog": {
      "State": "Running",
      "RequestUrlHost": null,
      "RequestUrlPrefix": "blog",
      "Features": [ "Module2.Blog" ],
      "CustomTitle": "Blog"
    }
  }

My guess is that I am capturing all the routs in the original project:

app.UseEndpoints(endpoints =>
{
    endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
});

Any Idea about how to fix this?

I followed a bunch of Videos on youtube so I got the way it should work, but with my configuration is not working.

p.s. Module1 is an OrchardCore.Application.Targets, Module2 is OrchardCore.Module.Targets

5 replies
CrestApps
@CrestApps
It seems that the service IContentItemDisplayManager is used to render the widgets. But how can I intercept the part or the widget just before it is being displayed? I want to manipulate the Content property of the ContentElement. What Driver/Manager do I need to implement to be able to alter the Content property of a Widget or a part on the widget?
CrestApps
@CrestApps
I appreciate any help with this request as I have been trying to figure it out for a while.
weirdyang
@weirdyang
Is it possible to package my modules a nuget package then use it in other Orchard Core ore projects?
CrestApps
@CrestApps
@captmomo I think you should be able to right click the project and select “pack” that would create the nuget file. Publish it. Then you should be able to install it into your web project should do the trick. I don’t think OrchardCore offers any special way to do this
vkoman
@vkoman
Hi All.
I faced an issue with displaying the default Setup page on an already set up environment.
I have configured my site using a Setup page, provided all required fields (recipe, DB connection, credentials).
After some steps - the Setup page is displaying by default for me, but if I navigate by URL https://localhost/Admin - it navigated me to the admin area which is expected.
So, my problem is - why Setup page is showing on already set up site?
2 replies
weirdyang
@weirdyang

@captmomo I think you should be able to right click the project and select “pack” that would create the nuget file. Publish it. Then you should be able to install it into your web project should do the trick. I don’t think OrchardCore offers any special way to do this

thanks! i just tested it and it works.

For themes, how do I include the images and stuff?
Paulo Sérgio Rodrigues Henriques
@PauloSRH
Hello guys, I am currently thinking of implementing a profile for orchard users, to include their company, birthday date and other personal details. In the orchardCore documentation I did not found any references for user profile, so I thought of 2 solutions. One was to create a content Type profile, and have the userId in them, and the other one was to save it all in the database. Does there exists something implemented in Orchard for this purpose ? Thank you !
Jean-Philippe Tissot
@jptissot
In one of our apps, I had a ContentItem for profile that I linked via the Owner of a ContentItem (attach CommonPart to your ContentType to see this field). This type was securable and the proper permissions were applied so the Item was only usable by it's Owner.
Paulo Sérgio Rodrigues Henriques
@PauloSRH
Thank you. I will check it out
Jean-Philippe Tissot
@jptissot
Does anyone know if there is a way to reference the current ContentItem from a ShortCode / Liquid filter ? without explicitely passing it down ?
Dean Marcussen
@deanmarcussen
Hmm interesting @jptissot I am refactoring shortcodes to use Seb's parser, and I asked myself the same question. Should we provide a context object. I haven't decided if we should yet, so tell me about the use case?
22 replies
weirdyang
@weirdyang

How does the theme references work? e.g.

 <link type="image/x-icon" rel="shortcut icon" href="~/TheAdmin/favicon.ico" />

I am trying to make a template which is based on TheAdmin theme, if I would like to override these paths, how do I go about doing so? what is the folder structure?
I understand to override views, I will just need to create an item with the same.

Jean-Philippe Tissot
@jptissot
What do you mean override these paths ? Use ones inside your new theme ?
weirdyang
@weirdyang
Yes
Jean-Philippe Tissot
@jptissot
~/ refers to the root path of your tenant / site
Then comes the ThemeName or ModuleName as defined in the Manifest.cs file
All these resolve to the root of your wwwroot folder in your theme / module
weirdyang
@weirdyang
so for my example, I should pu tthem in the wwwroot/img/favicon.ico
Ok thanks!
Jean-Philippe Tissot
@jptissot
So href="~/CustomAdmin/img/favicon.ico"
weirdyang
@weirdyang

All these resolve to the root of your wwwroot folder in your theme / module

ok thanks!

And if i wish to package the theme as a nuget package, I need to include these folders in my nupkg?
Jean-Philippe Tissot
@jptissot
I think it's automatic if your target the Module / Theme targets assemblies.
<PackageReference Include="OrchardCore.Theme.Targets" Version="$(OrchardCoreVersion)" />
I never had to do something special to embed them when using OC
CrestApps
@CrestApps

It seems that the service IContentItemDisplayManager is used to render the widgets. But how can I intercept the part or the widget just before it is being displayed? I want to manipulate the Content property of the ContentElement. What Driver/Manager do I need to implement to be able to alter the Content property of a Widget or a part on the widget?

Any body can offer any help with this?

2 replies
weirdyang
@weirdyang

I think it's automatic if your target the Module / Theme targets assemblies.

great!

Thanks again
ahmedtabba
@ahmedtabba
Can I Know the number of visitors of specific artical or page with orchardcore
?
akim-green
@akim-green
Has anyone experienced this error? ZoneShapes' does not contain a definition for 'HarvestAndSortTabs
Dean Marcussen
@deanmarcussen
@akim-green you probably just need to do a clean and rebuild. I imagine you are working with the source code and just pulled dev?