@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").
Umbraco 9 - Strip HTML and Truncate text/html output. The code below can be used for truncating/shortening text and striping out HTML tags in Umbraco 9 to display shorter text useful for landing pages. Instructions: Replace "bodyText" with the reference to the property you would like to truncate. Code: Example output:
Comments
Post a Comment