Logo
Explore Help
Register Sign In
lsm/Orchard
1
0
Fork 0
You've already forked Orchard
mirror of https://github.com/OrchardCMS/Orchard.git synced 2025-09-24 13:33:34 +08:00
Code Issues Actions 2 Packages Projects Releases Wiki Activity
Files
a6f56b97d51e225cd46c856ceaef580b7fd56656
Orchard/src/Orchard.Web/Modules/Orchard.DevTools/Views/Home/Simple.aspx

13 lines
374 B
Plaintext
Raw Normal View History

Making the use of BaseViewModel optional Providing BaseViewModel.From(x) static methods to adapt properties from various context objects Adds DevTools\HomeController actions to verify results AdaptedViewModel exposes public properties or view data dictionary entries as appropriate Layout view engine restriction loosened to allow any ViewResult to be themed (not Partial of course) --HG-- branch : dev
2010-03-01 16:43:51 -08:00
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<Simple>" %>
<%@ Import Namespace="Orchard.DevTools.Models" %>
<h1>
<%= H(Model.Title) %></h1>
<p>
Quantity:
<%= Model.Quantity %></p>
<div style="border: solid 1px #ccc;">
<% Html.RenderAction("_RenderableAction"); %></div>
[Themed] attribute signals the use Orchard theming w/out BaseViewModel ThemeFilter detects attribute at action time or TModel at result time LayoutViewEngine uses ThemeFilter.IsApplied the same way AdminFilter.IsApplied is used Themed(false) at an action will override [Themed(true)] or [Themed] at a controller level --HG-- branch : dev
2010-03-01 18:02:48 -08:00
<p>
<%=Html.ActionLink("Test Messages", "SimpleMessage")%></p>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 161ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API 吉ICP备2022002899号