17-Jan-2020- day2
Content location service is responsible for locating content on the pages. find all the widgets on the pages using the content type. the statistics build on the publish not when user visits it.
uses interface IContentlocatable

url format of the content is configurable
URL of the site: http://localhost
URL of the page: /contact-us-$
URL of the new item: /2020/01/16/bmw-is-a-good-car
Documentation for Show Article Display mode - https://knowledgebase.progress.com/articles/Article/show-widget-details-or-list-only
Some widgets in Sitefinity have 2 modes:
-List mode (aka Master) -> List template (aka Master template)
-Details mode -> Details template
*Example widgets: News, Blogs, Blog posts, Events, widgets related to Dynamic Content Types
"project directory goes here"\ResourcePackages\Bootstrap4\MVC\Views\News
e.g. "C:\projects\training\ResourcePackages\Bootstrap4\MVC\Views\News
Content items can be in one of the following states in UI:
- Published
- Unpublished
- Draft
- Scheduled for Publishing / Unpublishing
- Locked
- Deleted
From developer standtpoint, content items can have one or
more than one record in the database in one of the following
states/types:
- Master
- Temp
- Live
- Deleted
Events template modification:
<h3>Connected News</h3>
@foreach(var item in Model.Item.Fields.ConnectedNews)
{
<p>@item.Fields.Title</p>
}
Rendering the associated tags and categories in News widget
@if(Model.Item.Fields.Category != null)
{
<span>Associated categories:</span>
foreach(var cat in Model.Item.GetHierarchicalTaxons("Category"))
{
<span>@cat.Title</span>
}
}
<br />
@if(Model.Item.Fields.Tags != null)
{
<span>Associated tags:</span>
foreach(var t in Model.Item.GetFlatTaxons("Tags"))
{
<span>@t.Title</span>
}
}
Fetching News articles
var manager = Telerik.Sitefinity.Modules.News.NewsManager.GetManager();
var newsItems = manager.GetNewsItems()
.Where(ni => ni.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live)
.Take(100)
.ToList();
https://github.com/Sitefinity/Telerik.Sitefinity.Samples.Quantum
16-Jan-2020 day1
Sitefinity Course Notes
"https://api.spacexdata.com/v3/launches/latest"
Custom Grid widget template:
<div class="sf_colsIn alert alert-info" role="alert"
data-sf-element="alert" data-placeholder-label="Alert">
</div>
#Space X Controller:
https://we.tl/t-ck6T5mCaiK
System requirements:
https://www.progress.com/documentation/sitefinity-cms/system-requirements
https://www.progress.com/documentation/sitefinity-cms/install-sitefinity
DAte - 16-jan-2020
from shailesh
https://hackmd.io/Kr13HrqGSTeTRXiYat7rnA?edit
# Sitefinity Training - 16-jan-20
Sitefinity supports cloud PaaS model
Sitefinity planning to discontinue ecommerce platform and allow other to integrate with its platform
Question-
What is the backend DB system it supports?
Does it have inbuilt search engine?
Can it be integrated with otehr search engines?
Sitefinity scalable model?
What are the different servers role in Sitefinity?
Where are content stored like videos etc in Filesystem or DB?
Analytics modules supports only google analytics
Digital Exp Cloud is progress sw complex personalization cloud based engine
Deactivating module will hide the widget, uninstalling will delete the widget and data
Sitefinity support SQL Server 2012+ , Oracle, MySQL
SF is not classified as Headless CMS but it can play as a Headless CMS as it has backend services REST based.
SF has in-built basic search ingine and it can be integrted with Azure Search, Hog , does not support Solr Search
For SEO integration with Siteimprove
import/export vs site sync
im/ex to be used, in case of deployment pacakge, when code and content to be deployed same time. to be used in CI/CD pipeline
site sync - to be used for content authored in one place and to be sync to other , can be done manual or automated
Page template
changing base page template not good practice, on changing it will invalidate the cache and slow the performance.
use MVC only page template
webform tempale generate html on fly, difficult to manage,
4 things to modify looks of site
widget template
page template
Resource pacakge
layout files