This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
replace the previewBadge element in the umbracosettings.config | |
This will give you a green fixed banner across the bottom of the screen. | |
It adds 50px to the bottom of page to ensure the banner | |
doesnt mess with your design. It also has a high z-index so it will work properly in most situations. | |
--> | |
<PreviewBadge><![CDATA[ | |
<div style="width:100%; height:50px;"> | |
<a id="umbracoPreviewBadge" style="position: fixed; z-index:1000; width:100%; background: #00cc00; bottom:0;left:0;padding:15px" href="{0}/endPreview.aspx?redir={2}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Umbraco.Core; | |
using Umbraco.Web.Routing; | |
namespace Website.ContentHelper | |
{ | |
public class ContentFinder : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) | |
{ | |
ContentFinderResolver.Current.InsertTypeBefore<ContentFinderByNotFoundHandlers, ContentFinderCommonPages>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* the model property for Upload is of type HttpPostedFileBase *@ | |
@* rather than doing having to hardcode <input type="file" name="upload" id="upload" /> *@ | |
@Html.TextBoxFor(model => model.Upload, new{type="file"}) |