Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We are currently upgrading an Umbraco instance from 4.7.2 to 6.1.6.
There is a couple of user controls which are hooked into the back office which access the data but they are using now obsolete methods to do this.
var websiteDocuments = Document.GetDocumentsOfDocumentType(DocumentType.GetByAlias("Website").Id).ToList();
My question is, how can I access the new ContentServices from a user control built for the back office?
If you can point in the direction of any suitable reference/wiki/guides that'd be great and ideally I'd like to do this using the MVC approach but not sure if it's possible in this version
The docs for managment apis which are the equivalent of Document.whatever can be found http://our.umbraco.org/documentation/Reference/Management-v6/Services/ with regards to making dashboard controls that are mvc not sure if thats possible as the controls are loaded through dashboard.config and they expect webforms user controls.
Thanks Ismail, I saw those references but wasn't sure how to invoke new Services.
I've switched to using this method below which should get me what I need without newing anyrthing up
I'm confused. Is it possible to create a web forms user control for the dashboard? I'm trying to create a web form user control and add it to the dashboard, but it doesn't appear to be doing any postback or server side processing.
or, does it have to be an MVC user control for umbraco 6.1.x dashboard items?
I think you can only have web forms user controls in the back office currently.
What have you done so far?
I created a web forms user control with a simple form and a submit button. Submitting the form should cause some data to get saved in a database.
When I fill out my form and click submit however, nothing happens. No postback or server-side processing takes place
Where do I put the compiled dll for the webform user controls, for the dashboard? I have it in the bin folder. it's like it has no code-behind or postback
I just checked something. Postback is occuring for other controls on the page, just not the click event for the button.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted