Closed filjan closed 3 years ago
Need to populate CustomFields table.
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
1,0,'blog-title','Blog');
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
2,0,'blog-description','Short blog description');
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
3,0,'blog-items-per-page','10');
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
4,0,'blog-cover','data/admin/2020/4/cover.jpg');
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
5,0,'blog-logo','data/admin/2020/3/logo-white.png');
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
6,0,'culture','es-ES');
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
7,0,'blog-theme','cleanblog');
INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES (
26,0,'admin-dashboard-sidebar','
Here you can add your own Markdown or HTML markup, whatever makes sense for you. For example, add your Host information, bookmarks related to your blog etc.
'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 27,0,'disqus-key',''); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 28,1,'facebook','blogifierdotnet'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 29,1,'twitter','blogifierdotnet'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 35,1,'github','blogifierdotnet/Blogifier'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 40,0,'social|facebook|1','http://your.facebook.page.com'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 41,0,'social|twitter|1','https://twitter.com/blogifierdotnet'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 42,0,'social|github|3','https://github.com/blogifierdotnet/Blogifier'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 43,1,'social|facebook|2','https://www.facebook.com/blogifierdotnet'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 44,1,'social|twitter|1','https://twitter.com/blogifierdotnet'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 45,0,'disqus-site-key','blogifierdotnet.disqus.com'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 46,0,'blog-include-featured','True'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 47,0,'blog-header-script',''); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 48,0,'blog-footer-script',' '); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 49,0,'email-selected-provider','SendGrid'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 50,0,'email-sendgrid-api-key',''); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 51,0,'email-sendgrid-configured','False'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 52,0,'email-mailkit-name',''); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 53,0,'email-mailkit-address',''); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 54,0,'email-mailkit-server',''); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 55,0,'email-mailkit-port','0'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 56,0,'email-mailkit-configured','False'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 57,0,'email-mailkit-password',''); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 66,0,'email-from-email','admin@blog.com'); INSERT INTO [CustomFields] ([Id],[AuthorId],[Name],[Content]) VALUES ( 67,0,'email-from-name','administrator');A lot has been changed, and we are working on the Version 3.0, We have removed the Custom Widget form the Dashboard, Please take a look at the latest source code.
or you can take a look at the demo:
I downloaded the code, created a SQL Server database, set appsettings.json so this will work with SQL Server. The program runs and seems to work fine. When I try the login with admin/admin I am getting the error:
System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=Blogifier StackTrace: at Blogifier.Components.Dashboard.CustomWidget.d__20.MoveNext() in C:\Blogifier-master\src\Blogifier\Components\Dashboard\CustomWidget.razor:line 68