Sitefinity Classic Editor DateTime format

Issues1/ Content Edit Page – Show mm/dd/yyyy 2/ Content Listing Page – Show unknown (AM / PM) time What I did to resolve it? 1/ Add a new ViewMap Control Advanced Settings → Controls → ViewMap → <Create new>HostType: Telerik.Sitefinity.Web.UI.Fields.DateField, Telerik.SitefinityLayout: ~/Utils/Extensions/DateFieldExtended.ascx Sample: DateFieldExtended.ascx (github.com) 2/ Update Content Type Listing DateTime Format Advanced Setting →Continue reading “Sitefinity Classic Editor DateTime format”

Sitefinity Code to Configure Page Title

What we want to achieve? – To modify the Page Title to “ABC Inc | <Page_Title>” on the fly How to achieve in Webform Template?1/ Make sure the HTML Template has included the <title> tag2/ Add an HTML id to the <title> tag3/ Webform Template:Add the title tag with id attribute: Update page title atContinue reading “Sitefinity Code to Configure Page Title”

Sitefinity Content Security Policy Setting

There is an option to update CSP rule in backend dashboard setting from Sitefinity v11 onwards, under/Sitefinity/Administration/Settings/Basic/WebSecurityBasicSettings Please avoid remove the default CSP rule as it has high chance you will break Sitefinity frontend / backend unwillingly. Example front-end broken: Example back-end broken: How to fix it? Related article: https://knowledgebase.progress.com/articles/Article/content-security-policy-http-header

Sitefinity – Investigate Schedule Task

Intro Scheduled tasks in Sitefinity CMS are objects that can execute a predefined set of operation at a particular point in time. You can use scheduled task… (read from reference..) Expected Workflow Schedule a task during application start Trigger ExecuteTask() Run ScheduleTask() Repeat 2-3 Schedule Task Code There are two important method, ExecuteTask() -> ItContinue reading “Sitefinity – Investigate Schedule Task”

Sitefinity – Best Practices When Implementing Custom MVC Widgets

In this sample, I have implemented IContentLocatableView IHasCacheDependency (SubscribeCacheDependency) HandleUnknownAction ContentBaseController and ContentModelBase  It has the main functionality for constructing all the out-of-the-box SEO properties, supporting listing and detail pages. When this class is implemented, you will be able to call the InitializeMetadataDetailsViewBag method, pass in it the item that is currently being displayed and based on theContinue reading “Sitefinity – Best Practices When Implementing Custom MVC Widgets”

My TFS CICD setup for Sitefinity Project – Part 3

Link to Part 2 Important Notes Planning before execution Clearly understand each command / argument Must confirm input path are correct (no turn back if CD server erase all files) Strategy 1. Developer push code to TFS and it will send signal to CI server if it is a watching branch (in our case theContinue reading “My TFS CICD setup for Sitefinity Project – Part 3”

My TFS CICD setup for Sitefinity Project – Part 2

Link to Part 1 Important Notes Planning before execution Clearly understand each command / argument Must confirm input path are correct (no turn back if CD server erase all files) Strategy 1. Developer push code to TFS and it will send signal to CI server if it is a watching branch (in our case theContinue reading “My TFS CICD setup for Sitefinity Project – Part 2”

My TFS CICD setup for Sitefinity Project – Part 1

Important notes Only include files and deploy to solution Project should be using nuget feed Project should have have Debug and Release mode Project Structure /<root>/Nuget.config/DemoServer /DataConfig.config /Sitefinity.lic/packages /<nuget packages>/SitefinityWebApp /<sitefinity related files> /bin /Properties/PublishProfiles/PublishProfile.pubxml /SitefinityWebApp.csproj Setting DemoServer Folder DataConfig.config – include ConnectionString of database server Sitefinity.lic SitefinityWebApp Release mode setting DebugType: None Optimize: TrueContinue reading “My TFS CICD setup for Sitefinity Project – Part 1”