Lots of Questions (When you've got time)
See original GitHub issueHello! @tidyui
Important šÆ
Appreciated
- Firstly, I just wanted to thank you for the fast response last time (hyperlink buttons). Not that I am abusing this, but I have some questions because I am not really sure how to work out specific things that I am trying to do.
Documentation
- Before submitting this issue, I have looked at other issues (open&closed) and did see some useful information, which is not included in the documentation though. Why is that? Not that I am judging you, but until today, I thought the only source of information for Piranha could be found at the Wiki of this repository.
[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 theStartup.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 š
Less Important
Manager Access
- Since it is not included, I wondered how am I able to reach the (localhost)/manager site? Does it get it from Nuget?
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
- Is there such a field (similar to HtmlField) but allowing you only to put an external URL?
Validation Scripts
- Currently I am using
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
- I have manually added image formats. The
.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
- Is there another way to have my own āNot foundā (Status code: 404) page, except using
web.config
? Like including something in theStartup.cs
?
GULP
- I have to compile some
.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
- I have noticed that on some files you have placed the following comment: Is it okay if I remove it? Or at least from my files? Not that familiar with the MIT conditions.
Unsafe Port
- Tried to set the application port in launch settings to:
6000
, but it is saying that is unsafe, do you know anything about that? How come you are able to use5000
but not this one?
Potential Bug
- BUG?
Html.DisplayFor(m => m.Blocks)
shows a text block/field asPiranha.Extend.Fields.TextField
or it displays 
.
Sorry for the long post š¦
Thanks in advance again š
Best Regards, Chris
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hi again @aneff-official!
Migration error
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?
Block Templates
If you only use regions you can remove these
.cshtml
views from your project.Missing TextBlock
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 for5.2
Regards
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!