episerver

How to add a working aws S3 virtualpath provider for EpiServer pagefiles?

戏子无情 提交于 2019-12-11 04:37:49
问题 I'm running a EpiServer project where i want to take use of Amazon S3, to host images, etc... there will be alot of images that will exist from the pagefiles directory. I've downloaded NuGet for Visual Studio and added the AWSSDK and Geta.AmazonS3 libraries to be able to add Amazon S3 as virtual path provider. I added this line to EpiServer.config: <add showInFileManager="true" virtualName="AWS Global Files" virtualPath="~/AWS-S3/" bucketName="s3bucket" verticalDir="CS" bypassAccessCheck=

Stop EPiServer clearing output cache on publish

 ̄綄美尐妖づ 提交于 2019-12-10 10:05:55
问题 This isn't a question I've seen around, usually it's 'EPiServer isn't clearing the output cache'. I'm trying to achieve the opposite. Each time a page is published the entire cache is dropped and as the client publishes several times a day, this is frustrating. I'm using the [ContentOutputCache] attribute and tried to implement a httpCacheVaryByCustom rule with an accompanying scheduled task in EPiServer to invalidate the cache when we decide to i.e. bundle updates together and invalidate at

How to get the property value of the page which is requested by user in episerver cms

為{幸葍}努か 提交于 2019-12-08 14:14:30
问题 How to get the property value of the page which is requested by user in episerver cms 10... public string GetContent(string pageType, string propertyName) { Type type = Type.GetType(pageType); //target type object o = Activator.CreateInstance(type); var pageLink = new ContentReference(); var contentLoader= ServiceLocator.Current.GetInstance<IContentLoader>(); var content = contentLoader.Get<type>(pageLink); var vals = content.GetPropertyValue(propertyName); return vals; } In the above method

Allow custom HTML attributes in TinyMCE in EPiServer

﹥>﹥吖頭↗ 提交于 2019-12-06 03:06:56
问题 EPiServer only: Our clients are trying to add custom attributes to a div-tag in the TinyMCE editor - they switch to HTML mode, makes the changes and save the page. Then the attributes are removed. Washing HTML like this is standard behaviour of TinyMCE, and it is possible to configure it to allow custom tag attributes. My question is how do I configure TinyMCE in EPiServer to allow custom HTML attributes? I don't see where I would be able to hook into the inititialization of TinyMCE. And

Stop EPiServer clearing output cache on publish

删除回忆录丶 提交于 2019-12-05 20:41:31
This isn't a question I've seen around, usually it's 'EPiServer isn't clearing the output cache'. I'm trying to achieve the opposite. Each time a page is published the entire cache is dropped and as the client publishes several times a day, this is frustrating. I'm using the [ContentOutputCache] attribute and tried to implement a httpCacheVaryByCustom rule with an accompanying scheduled task in EPiServer to invalidate the cache when we decide to i.e. bundle updates together and invalidate at a predetermined time. I've tested this rule and it works using: public override string

Episerver - Why BlockData doesn't implement IContent

こ雲淡風輕ζ 提交于 2019-12-05 06:07:30
Does anybody knows why BlockData class doesn't directly implement IContent? I know that during BlockData is being retrieve from database, proxy created by Castle implements IContent. If StackOverflow isn't suitable place for this kind of a question, please move it. Johan Björnfot at EPiServer explains some of the details in this post . Excerpt: "In previous versions of CMS was pages (PageData) the only content type that the content repository (traditionally DataFactory) handled. In CMS7 this has changed so now content repository (IContentRepository) handles IContent instances. This means that

How can I find number of visitors/users at my site (IIS7/asp.net) at any given moment?

十年热恋 提交于 2019-12-05 01:13:29
问题 I need to display how many users are browsing my site. The site is running on iis7, and we are using asp.net 3.5. Is the number of active sessions a good way to go? The number does not need to be very accurate. No history is needed, I just want to know how many users are "online" right now, and display that on the page itself. 回答1: You can use Windows Performance counters for this (perfmon) ASP.NET Applications > Sessions Active counter. You can access these performance counters using the

Does anyone have any EPiServer Exam Tips? [closed]

吃可爱长大的小学妹 提交于 2019-12-04 13:47:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Myself and some colleagues have just been told that we are all taking the EPiServer CMS certification exam on Friday. Having done some research on the web it does sound like a challenging exam - I've heard that only one in six people pass it. There doesn't seem to be much in the way of learning material, beyond

EPiServer Development

六月ゝ 毕业季﹏ 提交于 2019-12-03 06:28:38
Aside from Episerver.com What other websites do people who develop using EPiServer use as development resources!? Been using coderesort.com but I find that it lacks examples of how to do stuff. Many thanks, J Regarding missing examples on CodeResort, did you register and log in? It is running on Trac, which means all modules (committed to the hosted Subversion repository) is available with full source code, directly browsable. There is lots of code in there! See https://www.coderesort.com/p/epicode/browser /Steve The general resources I use for EPiServer development: EPiServer World : official

Disable Visual Studio Web Server Directory Browsing

你。 提交于 2019-12-01 23:16:06
I'm using Visual Studio's built in web server to test and EPiServer applicaiton. When I have the app running in IIS, if I hit the root of the virtual directory, EPiServer will take over and server the defaul page to me. Using the Visual Studion server (which I am doing for license reasons with the SDK), it always gives me the 'Directory Listing' view of my site. Does anyone know how to configure this web server to not allow the directory listing/browsing? Additional Information: This problme only seems to effect the root of the visual studion web server (i'll call it cassini from here on in).