umbraco

ActionLink generate empty href using MVC 5 with Umbraco 7

孤者浪人 提交于 2019-12-13 06:00:48
问题 I am using MVC 5 with Umbraco 7. Trying to use ActionLink in my View but the markup it generates have empty href. any idea how to get it working? <a href="">Start Date</a> View: @Html.ActionLink( "Start Date", "SearchV1", "SearchV1", new { sitetypeid = @Request.QueryString["sitetypeid"], leaNo = @Request.QueryString["leaNo"], orderBy = "VacStart" }, null) Controller: public class SearchV1Controller : RenderMvcController { public override ActionResult Index(RenderModel model) { return base

Cant get the image to show in Umbraco7 with razor

老子叫甜甜 提交于 2019-12-13 05:45:13
问题 I have used the media picker as data type for the type, for which the user is going to choose what image they want as the deal image. But for some reason i can't get the razor syntax to show the image. If I make an If statement to check if the page contains an image then it won't. I think this is a problem that occurs because i have misunderstood something. My current razor statement: <img src="@Umbraco.TypedMedia(Model.Content.GetPropertyValue("deal1image")).Url" /> The above code won't show

Intercept requests for iisnode with HttpModule

孤者浪人 提交于 2019-12-13 04:07:03
问题 I have a nodejs app running using iisnode in a sub directory for a .net application (umbraco actually). The .net application is using forms authentication and I want to secure the iisnode application using the same mechanism as the .net application. I've tried registering modules with the iisnode app but it doesn't even seem to fire the event handlers. Is it possible to do this? 回答1: It seems that creating an HttpModule to intercept nodejs requests is impossible. However, I did find a way to

Umbraco websites and IIS Logging

风格不统一 提交于 2019-12-13 00:36:24
问题 I have an Umbraco instance in the Azure cloud, v4.7 if memory serves correctly. I need to utilise IIS logging to obtain website usage statistics, but there appears to be a limitation. I have multiple different websites, all using various website templates but the IIS logs don't appear to output the domain name. How can I get IIS to output the domain name? Below is an example of what the current IIS logs capture (I know this is a BOT crawling the webpages, but I have genuine traffic but can't

Umbraco: Adding Fields to Users / User Types

六月ゝ 毕业季﹏ 提交于 2019-12-12 22:55:42
问题 What's the best way to extend the users area? I want to add a field to the User Types where you must select an Administrator (by User Type) for each particular type. I don't see any way to extend this area, does it have to be done in the source code? 回答1: There is no way to extend a User to add more properties that I"m aware of. You could create a new table in the Umbraco database and then use an XLST Extension or C# class to get the extended properties in a Razor macro or User Control.

Multiple DomainSite: when one domain site admin login in Umbraco, he can't see other Domain Site user

你。 提交于 2019-12-12 19:21:22
问题 I have one use case in Umbraco. My project is Multidomain site (India, China, Greece). When I create a USER (India admin and group-adminIndia) from main administrator and in adminIndia group I give permission all along with user. I did same thing with China and Greece admin. Now when I log in from India admin I can also disable other admin and vice versa. This is the problem. My requirement is this: when India admin logs in, he shouldn't be able to see admins from others groups . Can anyone

How do I set minumum password requirements in Umbraco for the membership provider?

删除回忆录丶 提交于 2019-12-12 19:07:37
问题 I am trying to set minimum password requirements for my membership provider in Umbraco. Currently my web.config membership section looks like this: <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <clear /> <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat

Umbraco : Create an RSS Feed problems

女生的网名这么多〃 提交于 2019-12-12 18:27:05
问题 I am pretty new to Umbraco but have managed to do alot of cool things in a short space of time. One thing that I simply cannot do is the RSS Feed! This seems to be the most difficult thing to do! I have been trying for days to get this damn thing working but it wont! Ok, here's what i have done, I went into XSLT Files, created a new RSS Feed document, then added the URL to the section in the site, i.e. News, which contains news files. You can check my code down below. Once I have created this

Umbraco V6.1.3 Lucene Index Corruption

青春壹個敷衍的年華 提交于 2019-12-12 17:30:06
问题 Just upgraded an Umbraco V6.1.1 site to V6.1.3. All went well on my workstation. Copied the files up to the web server after deleting all that was there, did the same with the database. Set all the directory permissions and ran the site. Site (which is MVC) runs BUT with two issues which I can't fathom and would really appreciate some help with. One page errors with a Read Past EOF error. This is the view it's trying to run. The error is on link in Bold. @inherits Umbraco.Web.Mvc

Umbraco Lucene or search on multiple date ranges

徘徊边缘 提交于 2019-12-12 14:26:35
问题 We are using the following code: var searcher = ExamineManager.Instance .SearchProviderCollection[SearchProviderName]; var criteria = searcher.CreateSearchCriteria(); q = q.And() .Range("dateRangeStart", startRange.ToString("yyyy-MM-ddTHH:mm:ss", CultureInfo.InvariantCulture), endRange.ToString("yyyy-MM-ddTHH:mm:ss", CultureInfo.InvariantCulture), true, true) ); criteria = q.Compile(); var searchResult = searcher.Search(criteria).AsEnumerable(); which works fine when searching based on a