Hello! @tidyui
Appreciated
Documentation
_[The following are connected]_
Migration Error
Trying to use MySQL (or any other database) returns some kind of migration error. I saw a similar issue, but it did not help me.
New Database
I need to add a NoSQL database to my project. I should probably add it in the Startup.cs file, but then should I create new controller or model for it?
HTTP Post/Forms/File submission/Ajax
I need to make an HTTP Post to a database. As I already said, I am using the jQuery plugin for validation, then reCAPTCHA, after which the form is being submitted. That's the part I just cannot figure out. I have watched many tutorials about MVC and ASP.NET, read Microsoft's API, but still not able to make it work.

This is what I've got at the moment. It submits the data, then it shows it as text on a blank page (just to test it). I can use string for name, email and etc. but what do I use for submitting a file? Should I open a FileStream, use Web Client or? I have been trough your files, but the way you do it (asp-for) does not cover my needs. Any help on this? Will be grateful :)
Manager Access
Block Templates
Views/Shared/DisplayTemplates - What is it for and why is it in that place of the project when you have it on manager view?External URL
Validation Scripts
jQuery Validation plugin for my forms, but I have noticed that there is this file _ValidationScriptsPartial.cshtml under the _Layout.cshtml and wondered if it could be of any use? Or is is only when you validate the fields through a separate model/controller?Image Formats
.SVG one is being rendered as a document (which is fine), but I cannot get the dimensions? I don't know much about the vector graphics, just thought I should let you know that the Width/Height columns in the database were empty.Not Found
web.config? Like including something in the Startup.cs?GULP
.less and .js files, should I just add the path to every single one of them? You used it only for .scss (sass). I know this will increase the performance, but not sure how to do it.License

Unsafe Port
6000, but it is saying that is unsafe, do you know anything about that? How come you are able to use 5000 but not this one?Potential Bug
Html.DisplayFor(m => m.Blocks) shows a text block/field as Piranha.Extend.Fields.TextField or it displays  .Thanks in advance again 馃憤
Best Regards,
Chris
EDIT:
For GULP I have found this:
https://julienrenaux.fr/2014/05/25/introduction-to-gulp-js-with-practical-examples/#Less_Compilation
And for the ports, this:
https://superuser.com/questions/188058/which-ports-are-considered-unsafe-on-chrome
Hi there! For clarity it's better to add one issue per question instead of making a long one. Regarding the documentation we are rewriting it as we speak and when it's done it will be published to the official website. Also I will only answer questions that are actually related to Piranha since I don't have enough time to give general asp.net core support!
In what part do you get an error. Which DbContext, which database and which version of the packages?
Can't give support on this, but generally you set everything up in Startup.cs.
If you want to POST to your Piranha CMS page AND want it to pass through the routing you need to post it to the Permalink of the current page you're on and not the route of the controller. Also, your post action will need to load the Page Model if you want to display something for the user.
The manager is included in the project templates and is embedded in the package Piranha.Manager. You need to activate it in your Startup.cs. For reference, create a new project from one of the templates and examine the startup code.
I'm not quite sure I understood this question correctly, so please clarify.
These are the templates that eventually gets called by @Html.DisplayFor(m => m.Blocks)
No, but your can create your own blocks and register. This will be better covered in the new documentation.
No part of Piranha uses jQuery validation at the moment so I can't give support on the matter.
Calculating dimensions, resizing and cropping is handled by the external package SixLabors.ImageSharp. I'm not sure they handle .svg correctly.
Can't give support on this.
Can't give support on this.
Generally you should not remove license or copyright, but you can remove it from the template files in the project templates you got when you ran dotnet new. I will remove them from these projects piranha.core.basicweb & piranha.core.blog. If you are running against source code you should not remove license & copyright from the core libraries.
Can't give support on this.
There must be a view missing from the DisplayTemplates directory you mentioned earlier. I'll take a look at the project templates before releasing 5.2.
Best regards
H氓kan
I too got an error while the migrations were running on my MySQL database. The error occurs (at least for me) at this line.
The problem seems to be that normal quotes (") aren't valid in the MySQL dialect in its default configuration (it uses backticks (`) for this purpose instead), unless you enable the ANSI_QUOTES sql mode in the mysqld.cnf file.
Thank you again! I will know for future posts now :)
Migration error
For the manager access, I did not say I don't have it. Just wondered how it gets it (Startup). You kinda answered all my questions and I understand for the ones that you can't give support, no worries.
Block Templates
License
Missing view for TextBlock
Cheers,
Chris :)
Thanks @PaddySe, I found an issue relating to this that got closed and didn't get reopened (#375). The initial migration broke for Postgres, so I got a PR with a fix for it, unfortunately the fix obviously broke it for MySql :)
I'll see if I can rewrite the migration in some other way because I refuse to have different sets of migrations for different databases, it's too much to maintain and I just don't have the environments to test it properly!
Hi again @aneff-official!
I can see from @PaddySe comment and #375 that you can get a migration error on MySql, however SqlServer seem highly unlikely since the migrations were created for it and we use it on SQLite & SqlServer almost every day. What version of SqlServer are you running?
If you only use regions you can remove these .cshtml views from your project.
If you've used the template dotnet new piranha I can see there's an issue in that repo (https://github.com/PiranhaCMS/piranha.core.basicweb/issues/6) that the DisplayTemplate is missing. We'll try to fix it for 5.2
Regards