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)

CrestApps
@CrestApps
What is the entry point of OrchardCore? What handles the routes or what is the default action/controller/page that handles the main page request?
JimmyLiu7323
@JimmyLiu7323
Hi, does anyone know how to upload img programmatically
JimmyLiu7323
@JimmyLiu7323
Am I able to do that, create img in code?
ahmedtabba
@ahmedtabba
Can I Know the number of visitors of specific artical or page with orchardcore
?!!
captmomo
@captmomo
image.png
@CrestApps it's the homeroute setting,
1 reply
captmomo
@captmomo
image.png
I notice the label widget shows the title and the name:
captmomo
@captmomo
Also I followed this tutorial; https://docs.orchardcore.net/en/dev/docs/reference/modules/Forms/ but when I submit I get redirected to the workflow HTTP action, instead of the form doing a post to trigger the workflow. Any advice on how to proceed?
captmomo
@captmomo
After experimenting, using a form created with raw HTML, the form works as expected. using the form widget it fails.
juergen-de
@juergen-de
Is there a way to have the culturepicker display the names of the available languages in their respective language ? Like English, Deutsch, EspaƱol ?
captmomo
@captmomo
OrchardCMS/OrchardCore#1172 I tried replacing the widget wrapper template, but the extra section is still rendered. Is Widget_Wrapper teh correct file to replace?
captmomo
@captmomo
How does the CleanBlog Theme do the routing to the NotFound.Liquid?
Antoine Griffard
@agriffard
captmomo
@captmomo
Thank you!
@agriffard , Widget_Wrapper -> this will be named Widget_Wrapper.Liquid in my module project?
Antoine Griffard
@agriffard
I' d say: Widget.Wrapper.liquid, like the cshtml one.
captmomo
@captmomo
Ok thank you! will try again
image.png
image.png
I'm not sure if I'm doing it right. Sorry for the trouble
captmomo
@captmomo
I'm tryign to deploy a theme as a nuget package. If I reference it as a project, it works as expected. However, after packaging it, the recipe doesn't show up in start up and the layout files etc aren't working.
Are there any modifications I need to make to the themes template?
Antoine Griffard
@agriffard
image.png
captmomo
@captmomo
yes it's all embedded resource;
image.png
image.png
captmomo
@captmomo
Could it be cos my Theme has "." in the name? e.g Theme.New
captmomo
@captmomo
I'm not sure why, but I modified my csproj by movivng the item group for package references to teh top and now it works
Jus
@Jus56288672_twitter
Can anyone tell me how I can automatically assign a basic role to a user after they register? I'm assuming Workflow is the answer, and I tried to do "On User Created -> Assign User to Role" but of course it did nothing and of course Workflows don't provide any feedback or errors. Any help is appreciated
Maybe I did it wrong in the RoleName part of the Assign user to role workflow event. What is the syntax for supplying the role just so I know if that's the problem
kandari7
@kandari7
Hi all, can anyone help me with Graphql error
A field with the name: ContentType is already registered for GraphType: ContentType(Parameter 'Name')
Antoine Griffard
@agriffard
@Jus56288672_twitter Fill the Username property with {{ Workflow.Input.User }} and it should work.
Jus
@Jus56288672_twitter
@agriffard Thank you! That worked perfectly. Is there a reference to the Workflow Input dictionary and the available models i have access to? I have the OCCMS source if it's located in there
Omid Nasri
@omidnasri
Hi all, can anyone help me. How I can use the Feature attribute on ActionResult controller method?
I want to use the Feature attribute on ActionResult, not on the Controller.
Omid Nasri
@omidnasri
Or how I can check Feature is available in action body?
CrestApps
@CrestApps
I have the following Content-Driver. In what view should I be able to access the FeaturedPropertyViewModel object?
public class FeaturedPropertyPartDriver : ContentPartDisplayDriver<FeaturedPropertyPart>
{
    public override IDisplayResult Display(FeaturedPropertyPart part, BuildPartDisplayContext context)
    {
        return Combine(
            Initialize<FeaturedPropertyViewModel>(nameof(FeaturedPropertyViewModel), model => BuildViewModelAsync(model, part))
                .Location("Content", "Tags:1")
        );
    }

    public async ValueTask BuildViewModelAsync(FeaturedPropertyViewModel model, FeaturedPropertyPart part)
    {
        // Do something with viewModel
    }
}
This part is being rendered by a widger view like so
<h1>Widget View</h1>

@await DisplayAsync(Model.Content) @*This should render the viewmodel- somehow*@
CrestApps
@CrestApps
I mean I should be able to create a view where I can use @model FeaturedPropertyViewModel to render my strongly typed shape... What would that view be called and where would I place it?
JimmyLiu7323
@JimmyLiu7323
Hi does anyone know how to upload image from code?
captmomo
@captmomo
      An unhandled exception has occurred while executing the request.
System.InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'Castle.Proxies.ExtendedInputPartEditViewModelProxy', but this ViewDataDictionary instance requires a model item of type 'OrchardCore.Forms.ViewModels.InputPartEditViewModel'.
I'm trying to register a new inputPart,, but I get this error when I try to load a Page content
How shoiuld I go about debugging this?
captmomo
@captmomo
        public int Create()
        {

            // Input
            _contentDefinitionManager.AlterPartDefinition(nameof(ExtendedInputPart), part => part
                .WithDescription("Provides input field properties with additional extensions."));

            _contentDefinitionManager.AlterTypeDefinition("ExtendedInput", type => type
                .WithPart("FormInputElementPart")
                .WithPart("FormElementPart")
                .WithPart(nameof(ExtendedInputPart))
                .Stereotype("Widget"));
this is my migration.cs,
captmomo
@captmomo
Ok it seems to be a naming thing? ExtendedInputPart throws the arrow, but renaming it to InputPartExtended or something like TestTEst, it works. where can I read up on the naming convention?