Skip to content

[8008]Workflow404cssfiles#8009

Closed
HengzheLi wants to merge 9 commits intoOrchardCMS:devfrom
HengzheLi:workflow404cssfiles
Closed

[8008]Workflow404cssfiles#8009
HengzheLi wants to merge 9 commits intoOrchardCMS:devfrom
HengzheLi:workflow404cssfiles

Conversation

@HengzheLi
Copy link
Copy Markdown
Contributor

fixes #8008

add Id property to BooleanFilterForm shape for consisting with other built-in filter form
add ".css" sufix to style resource's url.
set BasePath for every activity's "WorkflowsActivity-*.css" resource

foreach (var activityName in activityNames) {
manifest.DefineStyle(activityName).SetUrl(activityName.HtmlClassify()).SetDependencies("WorkflowsAdmin");
var activities = _activitiesManager.Value.GetActivities().ToArray();//.Select(x => "WorkflowsActivity-" + x.Name).ToArray();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the comment

var assemblyName = activity.GetType().Assembly.GetName().Name;
var styleName = "WorkflowsActivity-" + activity.Name;
manifest.DefineStyle(styleName)
.SetBasePath(VirtualPathUtility.AppendTrailingSlash("~/Modules/"+assemblyName+"/styles/"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation and spaces around +

var styleName = "WorkflowsActivity-" + activity.Name;
manifest.DefineStyle(styleName)
.SetBasePath(VirtualPathUtility.AppendTrailingSlash("~/Modules/"+assemblyName+"/styles/"))
.SetUrl(styleName.HtmlClassify()+".css")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces

HengzheLi and others added 2 commits April 20, 2018 18:29
@barthamark
Copy link
Copy Markdown
Contributor

Please decline this PR since the source repository doesn't exist anymore. The changes are re-implemented in the Lombiq fork and a PR was created. #8201

BenedekFarkas pushed a commit that referenced this pull request May 15, 2019
Improves the changes from #8009 by HengzheLi,
but allows loading Activity stylesheets from any extension (including custom paths), not just modules
@BenedekFarkas
Copy link
Copy Markdown
Member

@HengzheLi @sebastienros I'll close this as #8201 solves the issues this PR was submitted for, but also improves the original implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

404 error in workflow edit page for WorkflowsActivity-*.css files

4 participants