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 used a liquid formatter in vscode and it decided my line was to long and pushed the double }} down to the next line
this caused a parse errro after I got latest
that could be it
fluid 2.0 must be the reason
i will investigate to see if this is a bug
1 reply
i mean if formatters r doing this they should know they are causing a bug
JoshTango
@JoshTango
this threw an error:
<a href="{{item | display_url }}">{{ item.ContentItem.Content.Article.Subtitle.Text
}}</a>
1 reply
this was the error:
An unhandled exception occurred while processing the request.
Exception: Failed to parse liquid file /Areas/TheNewsTheme/Views/Content-Profile.liquid: '}}' was expected at (135:104)
OrchardCore.DisplayManagement.Liquid.LiquidViewTemplate+<>cDisplayClass8_0+<<ParseAsync>b0>d.MoveNext()
JoshTango
@JoshTango
well thats what I mean I used a liquid formatter
1 reply
so someone has to give
Sébastien Ros
@sebastienros
@JoshTango new lines should be allowed in this case, that's a bug. sebastienros/fluid#345
3 replies
JoshTango
@JoshTango
ty
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