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)

JoshTango
@JoshTango
i'm having a media profiles problem
if I say width=100 and height=100 and crop fro resize mode
I should get an image that is 100x100 correct?
JoshTango
@JoshTango
and it should be resized on the server side before sent to the webpage?
Dean Marcussen
@deanmarcussen
if you're using profiles, you have to pass the profile name. if you're just using width properties, yes, assuming the width is in the supportedsizes config. have a read of the docs, all very clearly explained
JoshTango
@JoshTango
i calle dmy profile abc
and ye si passed it
{% assign articleImagePath = Model.ContentItem.Content.Article.Image.Paths.first %}
{% if articleImagePath == nil %}
<img alt="..." src="{{ " ~/TheBlogTheme/img/post-bg.jpg" | href }}">
{% else %}
{% assign anchor = Model.ContentItem.Content.Article.Image.Anchors.first %}
<img alt="..." src="{{ articleImagePath | asset_url | resize_url: profile:" abc", mode:'crop', anchor: anchor }}" />
{% endif %}
nothing works
ive tried it without mode:crop also
ok it works
i gto ti to work
so emabarassing
i like this feature very much
omg my formatter for liquid is adding a spacebar before abc
thats y it didnt work
this formatter is weird
" abc"
"spacebarabc"
JoshTango
@JoshTango
sissel.shopify-liquid
thats the one
maybe i need to change it
Shane Courtrille
@ShaneCourtrille
Is anyone online that can explain OC2003 warning?
JoshTango
@JoshTango
i uninstaleld this formatter and reinstalled the most popular one
we'll see what happens next time
JoshTango
@JoshTango
that profiler added a spacebar ahead of every media profile name in my lquid views.
somecodeguy
@dafergu2:matrix.org
[m]
What's the best way to get a sortable list of content accessible by any other content item? I've already gotten my query to retrieve the list, but I need it to be user sortable. I seem to recall, @deanmarcussen that you had done some work with a sortable list?
Dean Marcussen
@deanmarcussen
By using the list part n setting the enable ordering setting . Then they’re drag n droppable
3 replies
Stan
@stanbdos_twitter
Hey what would be the best approach to deploy a small orchardcore site to a remote windows server. It is a shared hosting plan... Do I use Web deploy and export the database to a sql script?
4 replies
somecodeguy
@dafergu2:matrix.org
[m]
@sebastienros: I'm playing with Fluid tests, when I create an object to write to json with the misc filter, none of the properties are printed even though the AllowModelMembers is set to true when creating the TemplateContext. Is this by design?
somecodeguy
@dafergu2:matrix.org
[m]
@sebastienros: Created a PR for that bug in Fluid I am hitting. sebastienros/fluid#352
Peter Keating
@peterkeating
Hey all, I'm having an issue with getting any results from a Lucene query when using "must_not". With the following template, I can get a single content item when switching the "must_not" to a "must", however when running with the "must_not" it returns nothing, when I'd expected to see everything but the specified content item ID. Anyone see anything obvious I'm doing wrong?
{
  "query": {
    "bool": { 
      "must_not": [
        { "term": { "ContentItemId": "4ak2n0ebx0vm4x5mhjcez1vrw1" } }
      ]
    }
  }
}
MohitNaroliya
@MohitNaroliya
Anyone can help me to fix that issue - OrchardCMS/OrchardCore#9560
Dean Marcussen
@deanmarcussen
you might need to use the CommitTransaction task / activity for SqLite if you are getting db locked @MohitNaroliya . Only required for sqlite
1 reply
Alok Sharma
@aloksharma1
hello guys, did the hosting system changed in net core, previously in mvc5 i was able to update modules by simply placing/overwriting dlls in bin folder, now howere with new version i have to do full publish and overwrite on my existing app this is killing me, the modules are ever changing and for every small change i cant just be doing full code ftp
12 replies
using iis 10 inprocess hosting
Kevin Welsh
@kdubious
@deanmarcussen, do you have 15 minutes to connect on the Import/Export conversation so I can get good data for the article?
3 replies
sometime next week maybe?
aaronamm
@aaronamm

It took me for a while to understand why an HTML input has an empty value even though a view model has a value.

Normally when a model state has an error, we return an empty view model but it is not the case for Orchard that we return an output of HttpGet Edit method.

This means our view model has a value from a database which is different from a normal MVC action that we return an empty view model when getting a validation error.

This is new for me because I haven't realized how an HTML input is assigned a value.
It doesn't matter if a view model has value or not. If a model state has an error, an HTML input will be set value from a model state.

REF:
https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGenerator.cs#L1165

Here is the screen short of a workflow.

image.png
aaronamm
@aaronamm
* view model which is bound value with HTTP from data
somecodeguy
@dafergu2:matrix.org
[m]
@sebastienros: Lemme know if you want any other changes for the Fluid PR. I incorporated the suggested change.
When's the next standup for OC?
Sébastien Ros
@sebastienros
@dafergu2:matrix.org every tuesday, 12pm pacific
1 reply
aaronamm
@aaronamm

Does anybody know if Assets.json in a custom module work if we create a project from a command line tool not from Orchard Core source code e.g.

dotnet new occms --name Codesanook.Web
dotnet new ocmodulecms --name Codesanook.Map --AddPart True --PartName Map

Let's assume that Assets.json is a root of Codesanook.Map.
Here is project structure.

orchard-examples/
|--Codesanook.Web/
|--Modules/
  |--Codesanook.Map/Assets.json

Will Assset.json work and generate CSS from an input Sass file?

5 replies
pbull001
@pbull001
Anyone know how to add Taxonomy content type back into a tenant after deleting the type accidentally. I tried disabling and re-eanbling taxonomy feature but that did not work. Any ideas?
2 replies
aaronamm
@aaronamm
Does anybody know dotnet watch run does not reload a browser? It looks like web socket establish a connect but a browser not reload after code change/compile.
image.png
image.png