You can define your own properties on the document type if you want. The model passed to the view is still IPublishedContent so the properties can be retrieved in the same way as you normally would.
public class HomeController : Umbraco.Web.Mvc.RenderMvcController { public ActionResult MobileHomePage(RenderModel model) { //Do some stuff here, the return the base Index method return base.Index(model); } }
public class HomeController : Umbraco.Web.Mvc.RenderMvcController { public ActionResult MobileHomePage(RenderModel model) { //Do some stuff here, the return the base Index method return base.Index(model); } }
Where is the code of BazaarCheckout DocType?
I run the Merchello Source v1.9 . I see the DocTypes like BazaarCheckout without properties.
Where is defined into the code? Why Are there not properties?
The BazaarCheckout document type was added so that we could hijack the route and apply a view assigned by the selected theme. See route hijacking: https://our.umbraco.org/documentation/Reference/Templating/Mvc/custom-controllers
You can define your own properties on the document type if you want. The model passed to the view is still IPublishedContent so the properties can be retrieved in the same way as you normally would.
Ok, like this example. I understand. Thx.
Ok, like this example. I understand. Thx.
Yep.
Alternatively you could use:
which will provider access to all of the Umbraco stuff and instantiate things like the CustomerContext and provider access to the CurrentCustomer.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.