File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
doc/Documentation/articles Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ var app = builder.Build();
76
76
77
77
//Required middlewares
78
78
app.UseStaticFiles();
79
- app.UseSession();
79
+ app.UseSession(); //Session is very important
80
80
81
81
app.MapDataDictionary();
82
82
app.MapMasterData();
@@ -86,7 +86,7 @@ await app.UseMasterDataSeedingAsync();
86
86
app.Run();
87
87
```
88
88
4 . Create a ` wwwroot ` folder if your project is empty
89
- 5 . Run the project and visit ` /en-US/ DataDictionary/Element/Index ` <br >
89
+ 5 . Run the project and visit ` /DataDictionary/Element/Index ` <br >
90
90
<img width =" 960 " alt =" image " src =" https://github.com/JJConsulting/JJMasterData/assets/52143624/c4bf083d-38e1-486d-aaf2-2177d7ad77ef " >
91
91
92
92
Original file line number Diff line number Diff line change @@ -8,9 +8,12 @@ You have two options.
8
8
9
9
Setting the ` CustomBootstrapPath ` property, ` bootstrap.min.css ` not will be generate in ` _MasterDataStylesheets ` and your custom path will be used.
10
10
``` cs
11
- builder .Services .AddJJMasterDataWeb (o =>
11
+ builder .Services .AddJJMasterDataWeb (options =>
12
12
{
13
- o .CustomBootstrapPath = " /home/gumbarros/css/bootstrap.css"
13
+ options .ConfigureWeb = webOptions =>
14
+ {
15
+ webOptions .CustomBootstrapPath = " /home/gumbarros/css/bootstrap.css" ;
16
+ };
14
17
})
15
18
```
16
19
> [ !TIP]
@@ -28,15 +31,16 @@ Your custom layout will look like this:
28
31
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
29
32
@addTagHelper *, JJMasterData.Web
30
33
<!DOCTYPE html>
31
- <html lang =" @System.Globalization.CultureInfo.CurrentCulture.Name" >
34
+ <html data-bs-theme = " light " lang =" @System.Globalization.CultureInfo.CurrentCulture.Name" >
32
35
<head >
33
36
<meta charset =" utf-8" />
34
37
<meta http-equiv =" X-UA-Compatible" content =" IE=edge" />
35
38
<meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
36
- <title >JJMasterData </title >
39
+ <title >@ViewData["Title"] </title >
37
40
38
41
<!-- do not remove -->
39
42
<partial name =" _MasterDataStylesheets" />
43
+ @await RenderSectionAsync("Stylesheets", required: false)
40
44
<partial name =" _MasterDataScripts" />
41
45
</head >
42
46
<body >
Original file line number Diff line number Diff line change 11
11
@await RenderSectionAsync("Stylesheets", required: false)
12
12
13
13
<partial name =" _MasterDataStylesheets" />
14
+ @await RenderSectionAsync("Stylesheets", required: false)
14
15
<partial name =" _MasterDataScripts" />
15
16
16
17
</head >
Original file line number Diff line number Diff line change 10
10
<title >@( ViewData [" Title" ] ?? " JJMasterData" ) </title >
11
11
<link rel =" icon" type =" image/x-icon" href =" ~/_content/JJMasterData.Web/favicon.ico" >
12
12
<partial name =" _MasterDataStylesheets" />
13
+ @await RenderSectionAsync("Stylesheets", required: false)
13
14
<partial name =" _MasterDataScripts" />
14
15
</head >
15
16
<body >
You can’t perform that action at this time.
0 commit comments