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)

Jean-Thierry K├ęchichian
@jtkech
the part/fields you want to render, including the ContentsMetadata shape (ContentItemViewModel)
Content Override.png
craftyweb
@craftyweb
Hi, I'm using the HtmlBodyPart wysiwyg but in the editor the icons are not showing. Anyone an idea what could cause this problem and how I can solve this? Thanks!
image.png
Tony Han
@hyzx86
Is there any way to restore the default permissions of the administrator role?
I did a role management function in the SPA program, after saving the administrator rights
With all the permissions checked,
Accessing OC's Dashboard looks fine
However, the request header is too long in the SPA program.
Tony Han
@hyzx86
Done
agono
@agono
This message was deleted
tiggertag
@tiggertag
I am brand new to Orchard Core CMS. I am trying to find a module or any tutorials where a module is build with custom SQL tables rather than Content Items table. Also, I want to use the same module on different pages. How do I differentiate between the data that came from one page to other. For example, let's say I created a forums module. I need to have multiple forums module for each product. And each product forum will be a separate page. On each product forums page, I need to show forums related to the specific product only, how do I differentiate that? I worked extensively with DNN until now and it has TabId(which identifies the page) and ModuleId (which identifies the module instance on a page) as a differentiator. Are their any fields similar to these in Orchard Core? Also, are there any websites that have a list of prebuild modules where we can download for free or for a fee? like a marketplace? Any help is greatly appreciated. Also, if this is not the right place to ask these questions, please point me to the right website. Thank you!
9 replies
rmgc77
@rmgc77
Hi, I have lucene quetion. I have a field named Codes and the field is indexed and is a list of space separeted words. I would like to search for all content items that have the word prt1 or prt5 in the field. I can't manage to do this. Using "match" I can do everithing work if I have just a word in the field, but not for a list of words.
I would like to have something similar to this, but this only works if the value of the field do an exact match to any of the values in query
{
"match":
{
"MyPart.Codes":
{
"query":"prt1 prt2 prt5",
"operator": "or"
}
}
},
if the field in my contentIten would have "prt0 prt3 prt5 prt20" I would like it to match because prt5 is in the value of the content item
11 replies
reimac05
@reimac05

Query Content by Tags based on https://docs.orchardcore.net/en/latest/docs/guides/query-content-items-based-on-taxonomy/ does not really work if I want to search with the actual tag name.

e.g.
QUERY
{
"query": {
"match": {
"AssetPage.AssetTag": {
"query":"{% for tag in tags %}{{tag}} {% endfor %}",
"operator": "or"
}
},
},
"from": {{ from }},
"size": {{ size }}
}
PARAMETER using the Tag Name
{ 'from':'0','size':'200','tags':['HalloTest']}

Does not work.

But PARAMETER using the TermContentItemId works
{ 'from':'0','size':'200','tags':['4f9hhwph1h7sy5ym6qy4fr9sm7']}

In my database I have the following
"AssetTag":{"Values":[],"TagNames":["MeinTest","HalloTest"],"TaxonomyContentItemId":"4crc8yhbbcmy440ctnns7w5t4r","TermContentItemIds":["4f9hhwph1h7sy5ym6qy4fr9sm7","494smzk0pc8yxzea3e5q8rjp48"]}}

Based on the link above it should also work with tag names. Do I miss something?!

2 replies
PBMikeW
@PBMikeW
image.png
1 reply
Steve Taylor
@stevetayloruk

Hi, is it possible or any examples of lucene indexing for a contentpickerfield contentitem's fields to expose via queries?

i.e. Event Type with a contentpicker for location that has a spatial field. I want to query the event spatially based on the child contentiem's spatial lon/lat.

TIA

vmahant
@vmahant

I came across very strange issue.
My orchard core web app is running under azure app service having 2 instances
it seems lucene indexes are not synched in instances. for some users its showing different results while others having updated one

is there anyway work around that? so that both instance always be synched state

is there any specific settings I'm missing for lucene? or azure?

CrestApps
@CrestApps
@vmahant by any chance do you have the ARR Cookie "Affinity" disabled?
vmahant
@vmahant
yes, it was disabled. I turned back it on but nothing changed in terms of different results for different users. I scaled down app service from 2 to 1 seems did the trick but afraid if it will to much load on instance
CrestApps
@CrestApps
try enabling ARR Cookie and scale out to 2 instances.
do you have OrchardCore.Lucene.Worker enabled?
vmahant
@vmahant
yes, it was enabled but I turned it off reason is lot error in error logs
Error while processing background task '"OrchardCore.Lucene.IndexingBackgroundTask"' on tenant
System.IO.IOException: The process cannot access the file because another process has locked a portion of the file. :
{lucene index path}/write.lock
vmahant
@vmahant
So, are you suggesting if the app service (orchard core) is running on 2 instances
  1. ARR Cookie "Affinity" should be enabled
  2. OrchardCore.Lucene.Worker should be enabled
CrestApps
@CrestApps
Try that. I don't know if the ARR cookie has anything to do with it or not but had wired issues when I scaled and turned it off OrchardCMS/OrchardCore#11501
the docs say you don't need OrchardCore.Lucene.Worker is you are using Azure App Service. but try enabling it and see.
vmahant
@vmahant
Thanks, for your all answers
vmahant
@vmahant

I have a query might be someone came across through the same scenario
I have main orchard cms and have 10 tenants running under the same azure app service A
Now 11th tenant I want to run under different app service B but want to keep all the configuration of Tenant 11 under main orchard cms which are running under app service A

can I do that?

agono
@agono
Hi! Is it possible to create a separate collection for a ContentType so it is stored in another documents table?
4 replies
Scott Percy
@katman26
Is anyone else having trouble with the "Try" site - https://try.orchardcore.net/ It's just rendering as a blank page for me.
2 replies
Jean-Philippe Tissot
@jptissot
You are correct. @agriffard ?
Mike Paterson
@devlife
If i wanted to put a redirect to www in place would I have to do that in the cms startup.cs or could i put it in the theme startup.cs?
3 replies
Mieke De Wet
@miekedewet
Hi! Any advice on how to implement a 'Load More' button on a blog - initially displaying three blog posts and loading three additional when Load More is clicked?
Jean-Philippe Tissot
@jptissot
Might want to have a look at the GraphQL api.
Mike Paterson
@devlife
When performing a lucene search, is it possible to match a search term (fuzzy) to selected taxonomy items? I have the taxonomy field set to be included in the index but that doesn't appear to be doing the trick. Do I need to add a custom FullText or something like that?
1 reply
carl zuroski
@carlzuroski_gitlab
Hello. I'm trying to deploy my first orchard cms multi-tenant application to a hosted service. My application has a primary site, which is the default and is running on the domain that the hosting provider provisioned after I deployed my application. I want a tenant site to run on a totally different domain from my default site, but I can't figure out how to accomplish this. Do I set up my tenant site as a subdomain of the main site then create a dns alias record to point my tenant domain to the subdomain site? I've tried a few different approaches, but nothing seems to work.
4 replies
Mike Paterson
@devlife
Is there a liquid filter to load retrieve a content item by content item id?
3 replies
williusj
@williusj
Hi everyone. I am working on a project that involves full text search. The issue that I am seeing is that multi-word search terms are returning no results when using "fuzzy" search. For example using the term "small cap" returns 6 results for:
"match": { "Content.ContentItem.FullText": {{ searchTerm | json | raw }} }
but 0 results for:
"fuzzy": { "Content.ContentItem.FullText": {{ searchTerm | json | raw }} }
The reason I require fuzzy match is that we are doing type-ahead search so I need results for partial words. Is there a better way that I should be doing this? Is there a specific reason why multi-word searches don't work with "fuzzy"?
2 replies
PBMikeW
@PBMikeW
image.png
agono
@agono
Hi all! I configured Orchard to use ADFS 4.0 (OpenId Connect) as IAM and with a bit of fiddling with ADFS configurations it works as expected for users. Now I want also the Orchard Core API endpoint to use ADFS as authorization server. Does someone have some experience with this? Or some ideas of how i could achieve this? Thank you!
hazdogga
@hazdogga
Looks like the time has finally come for me to start migrating a fairly extensively customised O1 solution to Orchard Core. Hooray! No doubt I'm going to have to do loads of learning, and hopefully some contributing in here too, but for now I have a simple (dumb) question. Do I need to provide alternates for the menu link views in order to get a menu to render from my theme? Example themes I am using as a reference seem to use the below code to render a menu, whereas my theme renders nothing:
<menu alias="alias:main-menu" cache-id="main-menu" cache-fixed-duration="00:05:00" cache-tag="alias:main-menu" />
My menu definitely has the alias "main-menu"
4 replies
Marco Serralheiro
@serverside-is
OrchardCoreSites += 1;
https://www.fenprof.pt
Mike Paterson
@devlife
Is it possible to include files (like a PDF) in a lucene search?
brunoAltinet
@brunoAltinet

Hi guys. So i found this, but i can't explain it. I needed to place a part somewhere. I decided to use a placement file:
"GalleryPart": [
{
"place": "Gallery"
}
]
This doesnt work since Gallery doesnt have a driver. After some searching I found out that in order to place a dynamic part you need to use:
"ContentPart": [
{
"place": "Gallery",
"differentiator": "GalleryPart"
}
]
Ok. This works fine on the main page. I wanted to show gallery also in the summary (main page), but the previous statement doesnt work for it.
So i do:
"ContentPart": [
{
"place": "Gallery",
"displayType":"Summary",
"differentiator": "GalleryPart"
}
]
And imagine my surprise to find out that this doesnt do anything. After a lot of code searching i finally find out that the proper placement looks like:
"ContentPart_Summary": [
{
"place": "Gallery",
"differentiator": "GalleryPart"
}
]

So can anyone answer why this is done like this? I see no good reason that the first iteration wouldnt work. All this other stuff is just (IMHO) bleeding of complexity.

Niraj Soni
@ns8482e
@brunoAltinet I had a pr #8935 to overcome this confusion but, didn't catch up to resolve comments
I guess may be it's time to rewrite that pr :)
2 replies
Michael W Powell
@mwpowellhtx
Q: is the Commerce project getting meetings attention since it has now been handed forward to Lombiq? thank you...
Aurwa-Karrom
@Aurwa-Karrom
image.png
2 replies
Problem after updating to 1.2.1
Mike Saunders
@TalkTechnical_twitter
Hi, I am new to orchard core and looking to use it to build a SaaS. One of the main things I want is managing subscription payments, tiers, credits etc... Is this typically what in previous versions the commerce module would have been used for? I see there is a new re-write for commerce module in progress. What would your advice be? Should I join development of that module, start my own payments module or is there some other module I don't know about that would suit my purposes?
ahmedtabba
@ahmedtabba
After Updating from 1.0.0 to 1.3.0 flow part doesn't save the changes on publishing.
I tried to return to 1.0.0, and it works again.. then I tried to make small updates
From 1.0.0 >> 1.2.0 >> 1.2.1
On 1.2.1, the problem appeared again.
When I publish, I get a Published successfully Notification, BUT NO CHANGES SAVED.