umbraco

approve user umbraco membership system

为君一笑 提交于 2019-12-13 21:18:56
问题 hi i am working on Umbraco(6.1.2) membership system ive made login ,registration, and authentication page after registeration user is redirected to authentication page with token_id now i want to set this user approved for this purpose i write the following code but there is some error check it string uname = Request.QueryString["a"]; string uguid = Request.QueryString["b"]; MembershipUser thisUser = Membership.GetUser(uname); if (thisUser != null) { if (!thisUser.IsApproved) { MemberProfile

Model.Content.GetPropertyValue instead of Umbraco.Field

半腔热情 提交于 2019-12-13 20:23:32
问题 Here is part of my code: @using Umbraco.Web; @inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ var mTest = Model.Content.GetPropertyValue<string>("info", true); } <div> @mTest </div> It is impossible to get the content of info property. I am getting the following error: Object reference not set to an instance of an object . From the other side, everything works fine by using: @Umbraco.Field("info", recursive: true) However, I want to use the first approach. I'd appreciate any help on that. 回答1

How can I find an IndexSet's path in Examine?

坚强是说给别人听的谎言 提交于 2019-12-13 19:51:18
问题 In my Umbraco project, I have multiple Examine IndexSets defined in the configuration files. How can I programmatically retrieve an individual IndexSet's path? I am aware of the Examine.LuceneEngine.Config.IndexSetCollection but I cannot seem to get a populated instance of this object. 回答1: I have found the answer myself, so I thought I would share it: IndexSetCollection sets = Examine.LuceneEngine.Config.IndexSets.Instance.Sets; IndexSet set = sets["Set_Name"]; DirectoryInfo dir = set

Umbraco incorrect 'Link to document' when setting hostname

和自甴很熟 提交于 2019-12-13 17:36:24
问题 Basically defined a domain (Manage hostnames option) for Node1 and have Umbraco tree structure Content + en + Node1 + Subnode1 + Subnode2 + Node2 + es + Node3 … When check ‘Subnode1’ properties have that ‘Link to document’ and ‘Alternative Links’ path are inconsistent: Link to document: /Node1/subnode1.aspx Alternative Links: http://www.domain.com/subnode1.aspx I would like to get rid of the folder ‘/Node1/’ in ‘Link to document’, that is returned in NiceUrl and is messing my Url links on

Umbraco v6 Deploy to production server getting DB exception, content and media trees not loading

偶尔善良 提交于 2019-12-13 14:24:42
问题 We just deployed a new v6 site to a host that has several v4 sites running on it no problem. On the front end, it looks fine, but in the Umbraco admin the Content and Media trees appear empty. In the browser debugger I can see that there is an error in the TreeDataService.ashx . The error is below and I'm not exactly sure what the issue is. Is it permissions? Database user permissions? ---------- You must set the singleton 'Umbraco.Core.Persistence.SqlSyntax.SyntaxConfig' to use an sql syntax

XSLT, sort and group by year-date

半腔热情 提交于 2019-12-13 11:35:39
问题 Regarding Umbraco XSLT version 1. I have aprox. 150 news items in XML. Lets say like this (all is pseudocode until I get more familiar with this xml/xslt): <news> <data alias=date>2008-10-20</data> </news> <news> <data alias=date>2009-11-25</data> </news><news> <data alias=date>2009-11-20</data> </news> etc. etc.... I would like to run through the XML and create html-output as a news archive. Something like (tags not important): 2008 Jan Feb ... 2009 Jan Feb Mar etc. etc. I can only come up

Render view in MVC for SEO in Umbraco

大城市里の小女人 提交于 2019-12-13 07:51:06
问题 I am trying to render a view for seo tags in umbraco cms. However I am not sure how it can be done. Is there some source I can look up to? 回答1: Tags for SEO and social media could be combined, as they share some of the same information. On my umbraco installation I have added the following properties to website root node, page nodes and member nodes: On top node: siteName - textbox siteDescription - textarea siteLocale - textbox (ie. nb_NO) facebookPageUrl- textbox facebookAppId - textbox

How to install umbraco in root folder of the IIS server in localhost?

坚强是说给别人听的谎言 提交于 2019-12-13 07:14:17
问题 I have try to install Umbraco in root path (C:\inetpub\wwwroot) of the IIS. I have just download the umbraco and zip into the root folder. And add the website from IIS Manager. I have selected the dot net framework version as 4.0 and Managed Pipeline mode as Classic from Application Pool. While I have browse the application , it seems an error. HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler. Module StaticFileModule

Can the SQlMembershipProvider be used with umbraco

被刻印的时光 ゝ 提交于 2019-12-13 06:41:16
问题 Does anybody have an examples of this, from what I've read umbraco kicks up a bit of a stink but I can't find any examples 回答1: You can do it for members in front-end, but not users in the back-end. doing so is very easy, just change the providers section in web.config. I have used umbraco with SQlMembershipProvider, as well as custom membership providers I had implemented my self. 回答2: Yes, you absolutely can use the SqlMembershipProvider with Umbraco. First, you must add your connection

C# Please specify the assembly explicitly in the type name

我只是一个虾纸丫 提交于 2019-12-13 06:13:18
问题 I have a umbraco site where i wish to add a fileuploader from a separate working VS project. I have added it to my umbraco VS project with Add existing project . I have then moved the code from default.aspx to a usercontrol so i could add it to my umbraco. But i get a 500 error when trying to upload some files. In my event viewer i have the following 2 exceptions: Exception message: The type 'jQueryUploadTest.FileTransferHandler' is ambiguous: it could come from assembly 'C:\UmbracoSites