umbraco

ClientDependency in umbraco doesn't include my bundles

我与影子孤独终老i 提交于 2021-01-28 19:20:09
问题 Here is where I call the BundleManager: public class MyUmbracoApplication : UmbracoApplication { protected override void OnApplicationStarted(object sender, System.EventArgs e) { //register custom routes RouteConfig.RegisterRoutes(RouteTable.Routes); CreateBundles(); base.OnApplicationStarted(sender, e); } public static void CreateBundles() { BundleManager.CreateCssBundle("css", new CssFile("~/css/rte.css")); BundleManager.CreateJsBundle("js", new JavascriptFile("/assets/js/custom.js")); } }

How to check if user is logged on, Not Member?

喜夏-厌秋 提交于 2021-01-21 06:07:05
问题 Have tried 2 different methods to check if the user is logged into Umbraco Administration from the front-end in a User Controls Code-Behind (.cs) file: Page.User.Identity.IsAuthenticated and umbraco.library.IsLoggedOn() Both of these always returns false, even when I am logged in. How to check if user is logged in correctly?? Trying to get this on the front-end. Is there a way to do this on the front-end? Using Umbraco Version 4.6.1. Furthermore, In the Administration of Umbraco, these are

How to check if user is logged on, Not Member?

假装没事ソ 提交于 2021-01-21 06:06:12
问题 Have tried 2 different methods to check if the user is logged into Umbraco Administration from the front-end in a User Controls Code-Behind (.cs) file: Page.User.Identity.IsAuthenticated and umbraco.library.IsLoggedOn() Both of these always returns false, even when I am logged in. How to check if user is logged in correctly?? Trying to get this on the front-end. Is there a way to do this on the front-end? Using Umbraco Version 4.6.1. Furthermore, In the Administration of Umbraco, these are

How to check if user is logged on, Not Member?

廉价感情. 提交于 2021-01-21 06:06:09
问题 Have tried 2 different methods to check if the user is logged into Umbraco Administration from the front-end in a User Controls Code-Behind (.cs) file: Page.User.Identity.IsAuthenticated and umbraco.library.IsLoggedOn() Both of these always returns false, even when I am logged in. How to check if user is logged in correctly?? Trying to get this on the front-end. Is there a way to do this on the front-end? Using Umbraco Version 4.6.1. Furthermore, In the Administration of Umbraco, these are

AngularJs ng-repeat with thousands of items [closed]

白昼怎懂夜的黑 提交于 2020-12-27 06:22:25
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 15 days ago . Improve this question We are trying to find a solution for displaying 10k checkboxes in the Umbraco back office that rendered with ng-repeat. We've realized that angularJs are not able to perform more than 2500 items in ng-repeat with data-binding. I'm thinking about

AngularJs ng-repeat with thousands of items [closed]

二次信任 提交于 2020-12-27 06:20:00
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 15 days ago . Improve this question We are trying to find a solution for displaying 10k checkboxes in the Umbraco back office that rendered with ng-repeat. We've realized that angularJs are not able to perform more than 2500 items in ng-repeat with data-binding. I'm thinking about

Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'?

二次信任 提交于 2020-12-26 07:51:46
问题 I'm pretty new to C# and I'm getting an error I can't quite figure out? I have a view where I want to loop a series of nodes, so I'm trying do to this: @foreach (var crumb in Model.Breadcrumb) { //My code } As in my viewmodel I have this: public IEnumerable<LinkModel> Breadcrumb(IPublishedContent content) { //Do logic. return GetFrontpage(content, true).Reverse().Select(item => new LinkModel { Target = "", Text = item.Name, Url = item.Url }); } private static IEnumerable<IPublishedContent>

Umbraco - DocumentType Field in c#

≯℡__Kan透↙ 提交于 2020-02-05 03:50:08
问题 I'm trying to get an Umbraco Field in c# like this : (String.Format(Umbraco.Field("labelFailure").ToString(), username)); But I'm getting the following error : Cannot return the IPublishedContent because the UmbracoHelper was constructed with an UmbracoContext and the current request is not a front-end request. I don't know the error and how to resolve it. Thanks! 回答1: If you are not in a view you should use GetPropertyValue on the IPublishedContent of the page to get your value: .. using

Use OrchardCMS, Umbraco or DotNetNuke as a component in ASP.NET application

≡放荡痞女 提交于 2020-02-02 12:59:13
问题 OrchardCMS , Umbraco and DotNetNuke are CMSes in .Net galaxy. They work as stand alone applications well. Suppose I have a requirement that need CMS features in an another ASP.NET MVC application. I do not like to implement CMS again in the application. Rather I like to use current CMSes as a component of application. Is it possible at all to use for example OrhcardCMS as a component of my MVC application? It is ideal to have relations between CMS and application itself, for example I can

Umbraco 7: Get fields from same property based on current page

。_饼干妹妹 提交于 2020-01-25 04:24:10
问题 In my Content section I have a property editor (Archetype) that allows to set content for the site independently from the content tree. It looks like this: I need to display only the sub categories from one category based on what page I'm currently on. What I have now is: var catItems = Umbraco.Content(1123).categoryItem; //get the Set Content property editor from Content Section foreach (var item in catItems) { foreach (var sub in item.GetValue<ArchetypeModel>("subCatItem")) { <div class=