Create a plugin based controller in Umbraco - asp.net-mvc

How to create a plugin based controller in Umbraco? I have followed the guide on https://github.com/Shandem/Umbraco4Docs/blob/4.8.0/Documentation/Reference/Mvc/surface-controllers.md.
But when browsing to ~/umbraco/areaname/controllername I get a 404. The only way not getting this is removing the plugin attribute. But I want to use the plugin architecture. So what else needs to be done besides the instruction mentioned in the guide.
The documentation is really awful if you want to get started with Umbraco and MVC.
By the way I am using Umbraco 6.

you're area needs to be under the App_Plugins folder.
Sorry misunderstood the question, but it seems you figured it out as you explain in the post linked bellow.
http://our.umbraco.org/forum/developers/extending-umbraco/39704-Create-a-plugin-based-controller-in-Umbraco

Related

How to customize guacamole login page?

good day to all,
My question is very simple, I would like to customize the guacamole logging-in page and remove the logo of guacamole the problem is I have no idea where to find the HTML file of the login page. do you have any idea how to find it and where, I am new to guacamole and the search on the internet has no clear info about it?
Guacamole front-end runs on AngularJS (Angular 1 I think some people call it). You will probably need some understanding of the framework to edit it.
I can give you where to start, but not really a full guide(not the best with Angular).
Look inside the /guacamole/src/main/frontend/src/app directory inside your project (here is the link on Github), you will find where the general structure of the front-end is. The modules, directives and all that.
Specifically for the login page, go to your /guacamole/src/main/frontend/src/app/login/templates/login.html file inside your project. (You can find it here) on Github.
Hope this helped and the best of luc :)
There is a popular guacamole-client replacer called guacamole-lite which allows you to integrate guacamole easily into your frontend.
I also wrote a C# version of that replacer with ready to use docker image. Check it out: guacamole-sharp

Umbraco 7.4 URL Redirect Feature

Is there an available URL redirect for Umbraco 7.4? I mean I'm aware that there is a URL Redirect Management Tools in Umbraco 7.5 but we are using the lower version and it doesn't have that. Is there a way to achieve the same result? The scenario is this.
We created an web.com/about-us page. Now this is cached in google search now.
We then decided to change about-us to corporate now the cached version is still pointing to about-us where in fact the new URL now is web.com/corporate
How can I achieve a URL redirect? If someone manually typed or clicked on the cached url like about-us how can Umbraco 7.4 redirects it to the correct site? Would appreciate a step by step process if possible since I'm still new in Umbraco
you can use something like SEO Checker to manage this for you - there are also other plugins available that can do the redirection management.
https://our.umbraco.com/packages/website-utilities/seo-checker
As my first post has been hidden due to lack of detail, which is understandable, I am adding this new answer with more details.
We use UrlTracker for our projects - it is a nuget package that you install and then you can start using it. This can help.
The Url Tracker is used to manage URLs within umbraco and it automatically tracks URL changes, for instance when a node is renamed, this makes sure the old URL will redirect to the new location. Using this; you can also create your own redirects, based on a simple URL or using a Regex pattern. This is especially handy while migrating existing indexed URLs to your new website.
Please check this umbraco package web page for more details. Alternative links can be found below, hope this helps.
https://24days.in/umbraco-cms/2013/sharing-is-caring/
https://www.marceldigital.com/blog/2017/08/5-umbraco-seo-packages-you-need-right-now

Grid.Mvc missing documentation

Looking to implement Grid.Mvc in my MVC5 application however the documentation links on the project web site - http://gridmvc.codeplex.com/ dont appear to be working...be looking online and cant seem to find any reference to it.
There are some wiki links on https://github.com/leniel/Grid.Mvc/wiki however they do not seem to be complete...
Anyone manage to find a copy?
cheers
That version looks to be very old and no longer maintained.
Why not use a newer type of MVC Grid. We use this one
The documentation is available here
If you go to that archived CodePlex site, you can download the project archive, and there is a wiki/Render folder containing all the html pages with documentation.
Here's the link to the CodePlex site: https://archive.codeplex.com/?p=gridmvc
And the direct link to the archive download: https://codeplexarchive.blob.core.windows.net/archive/projects/gridmvc/gridmvc.zip
I've found this link:
https://archive.org/details/sylirana_ms_codeplex_zips
You have to go to the TARS folder and you'll find the right link into mscodeplex-g-3.tar or, for short:
https://archive.org/download/sylirana_ms_codeplex_zips/tars/mscodeplex-g-3.tar/.%2Fgridmvc.zip
Bye

ASP.Net MVC 2 Areas: The partial view '...' was not found

We recently upgraded a project to MVC 2 and we'd like to use Areas but there is an issue.
We have created a new area, setup a controller, configured a route, and created a view in the correct location. When we run the code it successfully finds the route and hits the controller but when it goes to render the view there is an exception.
The web forms view engine doesn't seem to be looking in the Areas section for views. The error we're seeing is:
~/Views/<ControllerName>/<ViewName>.aspx
~/Views/<ControllerName>/<ViewName>.ascx
~/Views/Shared/<ViewName>.aspx
~/Views/Shared/<ViewName>.ascx
When it should be:
~/<AreaName>/Views/<ControllerName>/<ViewName>.aspx
~/<AreaName>/Views/<ControllerName>/<ViewName>.ascx
~/<AreaName>/Views/Shared/<ViewName>.aspx
~/<AreaName>/Views/Shared/<ViewName>.ascx
~/Views/<ControllerName>/<ViewName>.aspx
~/Views/<ControllerName>/<ViewName>.ascx
~/Views/Shared/<ViewName>.aspx
~/Views/Shared/<ViewName>.ascx
This would indicate that it's still somehow using the MVC 1 dll but we've looked carefully and can find only references to the V2 of MVC (there was a V1 reference in xVal, a third party DLL, but fixing that didn't make a difference).
I can only imagine that we missed something when we did the upgrade or that we've got some unusual edge case because there doesn't seem to be anything on the web that matches the problem we're experiencing.
What things could we look at that might help us resolve this issue?
Thanks in advance for any help provided.
Cheers,
Zac
What things could we look at that might help us resolve this issue?
Make sure Area Routes are Registered AreaRegistration.RegisterAllAreas(); are registered first. Area routes need to be registered as well.
Make sure generated URL links have the area name included as one of the arguments when using ActionLink and other related URL helpers
Sometimes just delete and re-add the Area from scratch. Sounds silly, but it works.
The related SO question on the left hand side of this page may help. I have linked one I think may be of value

How to localize ASP.NET MVC + Spark application?

I'm using the Spark view engine, and want to localize the website. The methods described for 'conventional' MVC view engine do not work. Has anyone done this already? Any help would be appreciated.
The spark release package includes some sample projects, and one of them is called "Internationalization". I haven't had a look myself yet since I am just getting started with Spark, but it seems to be what you are looking for.

Resources