question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Lots of Questions (When you've got time)

See original GitHub issue

Hello! @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]

  1. 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.

  2. 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?

  3. 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. 2018-10-09 17_48_16-window 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 the Startup.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: 2018-10-09 17_45_31-window 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 use 5000 but not this one?

Potential Bug

  • BUG? Html.DisplayFor(m => m.Blocks) shows a text block/field as Piranha.Extend.Fields.TextField or it displays &nbsp.

Sorry for the long post šŸ˜¦

Thanks in advance again šŸ‘

Best Regards, Chris

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tidyuicommented, Oct 9, 2018

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 for 5.2

Regards

1reaction
tidyuicommented, Oct 9, 2018

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Q and A: "You've Got Time"
An open question about the questions: How much should we encourage people to get into the show/movie itself on songs from shows and...
Read more >
The Top 30 Behavioral Interview Questions to Prep For
Tell me about a time you were under a lot of pressure at work or at school. What was going on, and how...
Read more >
Stop asking 'how are you?' Harvard researchers say this is ...
ā€œHow are you?ā€ These are the three most useless words in the world of communication. The person asking doesn't really want to know,...
Read more >
255 Best Questions To Ask To Get To Know Someone
What would be the first thing you'd do if you won the lottery? 31. How do you enjoy spending your alone time? 32....
Read more >
7 Time Management Interview Questions (With Example ...
To help prepare for time management interview questions, review these questions and example answers: How do you prioritize tasks? Your responseĀ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found