Skip to content

Commit f4a881b

Browse files
committed
Update docs and fixes from a start project
1 parent 42c733f commit f4a881b

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var app = builder.Build();
7676
7777
//Required middlewares
7878
app.UseStaticFiles();
79-
app.UseSession();
79+
app.UseSession(); //Session is very important
8080
8181
app.MapDataDictionary();
8282
app.MapMasterData();
@@ -86,7 +86,7 @@ await app.UseMasterDataSeedingAsync();
8686
app.Run();
8787
```
8888
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>
9090
<img width="960" alt="image" src="https://github.com/JJConsulting/JJMasterData/assets/52143624/c4bf083d-38e1-486d-aaf2-2177d7ad77ef">
9191

9292

doc/Documentation/articles/customizing_layout.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ You have two options.
88

99
Setting the `CustomBootstrapPath` property, `bootstrap.min.css` not will be generate in `_MasterDataStylesheets` and your custom path will be used.
1010
```cs
11-
builder.Services.AddJJMasterDataWeb(o =>
11+
builder.Services.AddJJMasterDataWeb(options =>
1212
{
13-
o.CustomBootstrapPath = "/home/gumbarros/css/bootstrap.css"
13+
options.ConfigureWeb = webOptions =>
14+
{
15+
webOptions.CustomBootstrapPath = "/home/gumbarros/css/bootstrap.css";
16+
};
1417
})
1518
```
1619
> [!TIP]
@@ -28,15 +31,16 @@ Your custom layout will look like this:
2831
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
2932
@addTagHelper *, JJMasterData.Web
3033
<!DOCTYPE html>
31-
<html lang="@System.Globalization.CultureInfo.CurrentCulture.Name">
34+
<html data-bs-theme="light" lang="@System.Globalization.CultureInfo.CurrentCulture.Name">
3235
<head>
3336
<meta charset="utf-8" />
3437
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
3538
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
36-
<title>JJMasterData</title>
39+
<title>@ViewData["Title"]</title>
3740

3841
<!-- do not remove -->
3942
<partial name="_MasterDataStylesheets"/>
43+
@await RenderSectionAsync("Stylesheets", required: false)
4044
<partial name="_MasterDataScripts"/>
4145
</head>
4246
<body>

src/Web/Views/Shared/_MasterDataLayout.Modal.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@await RenderSectionAsync("Stylesheets", required: false)
1212

1313
<partial name="_MasterDataStylesheets"/>
14+
@await RenderSectionAsync("Stylesheets", required: false)
1415
<partial name="_MasterDataScripts"/>
1516

1617
</head>

src/Web/Views/Shared/_MasterDataLayout.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<title>@(ViewData["Title"] ?? "JJMasterData")</title>
1111
<link rel="icon" type="image/x-icon" href="~/_content/JJMasterData.Web/favicon.ico">
1212
<partial name="_MasterDataStylesheets"/>
13+
@await RenderSectionAsync("Stylesheets", required: false)
1314
<partial name="_MasterDataScripts"/>
1415
</head>
1516
<body>

0 commit comments

Comments
 (0)