@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ var home = CurrentPage.Site(); } @if (home.Children.Any()) { @* Get the first page in the children *@ var naviLevel = home.Children.First().Level; var listChildPages = "false"; @* Add in level for a CSS hook *@ <ul style="margin-top:0px;paddin:0px;font-size:16px;"> @* For each child page under the home node *@ <li><a href="/" title="@CurrentPage._siteTitle">Home</a></li> @foreach (var childPage in home.Children.Where("Visible")) { if (childPage.Children.Any() && listChildPages =="true" && childPage.id != 111...
To reset the admin password of a Umbraco website. 1. In Sql server, run the following script on the database: USE INSERT-YOUR-DATABASE-NAME-HERE GO UPDATE umbracoUser set userdisabled=0, userLogin='admin', userPassword='default' where id=0 2. In your web config file, find the "UsersMemnershipProvider" section, change the setting: passwordFormat="Hashed" to passwordFormat="Clear" You should now be able to login using the Username: Admin and the Password: default ("the two sweetest words in the english language").
Vimeo Uneversal Player is cross platform compatiable, and uses IFrames, so you need a Macro to Embedd a video from Vimeo in to Umbraco: Part A: Create the XSLT File and Macro (If you want to use Razor instead of xslt, the Razor code is at the bottom of this post) 1) Create a New Clean XSLT File and tick Create Macro. 2) Give the Macro a Name, such as: Vimeo IFrame Embedd for Vimeo Universal Player 3) Paste in the following Code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform " xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml umbraco.library"> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:para...
Comments
Post a Comment