david-tec.com | mappings for PageTypeBuilder property attributes to typed pages in EPiServer 7

PageTypeBuilder EPiServer CMS 7
Attribute Property/Field Attribute Property/Field
Namespace: PageTypeBuilder Namespace: System.ComponentModel.DataAnnotations
PageTypeProperty DisplayInEditMode ScaffoldColumnAttribute
PageTypeProperty EditCaption Display Name
PageTypeProperty HelpText Display Description
PageTypeProperty SortOrder Display Order
PageTypeProperty Tab Display GroupName
PageTypeProperty Required Required
Namespace: EPiServer.DataAnnotations
PageTypeProperty Searchable Searchable
PageTypeProperty Type BackingType
PageTypeProperty UniqueValuePerLanguage CultureSpecific
Access Users
Access Roles
Access VisitorGroups

From: david-tec.com | Comparing PageTypeBuilder and EPiServer 7 Preview typed pages (part 3 of 3).

A note on EPiServer Commerce entry data and serialization

To improve performance, catalog entry meta data is serialized and stored in a field for each catalog entry. This allows all meta data information to be fetched from a single field and de-serialized, which reduces the number of database calls and greatly increases performance compared to non-serialized data fields.

The SerializedData field should be updated after updating any catalog data through 3rd party sources. The SerializedData field is part of the CatalogEntryDTO (data transfer object), and will be cached based on catalog cache settings. Storing images and files in meta fields will increase the size of the serialized data, and increase catalog cache size.

From the Commerce 7.5 documentation:
http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Commerce/75/Catalogs/Guidelines-for-working-with-catalogs/

Frequent used IOC Services in EPiServer 7 CMS – EPiServer CMS note

From: Important IOC Services in EPiServer CMS – EPiServer CMS note.

A list of the most frequent used IOC services for the CMS
Usage

ServiceLocator.Current.GetInstance<ServiceType>();

Services

DisplayChannelService – Handle display channels
IContentLoader – Load Content
IContentRepository – CRUD operations for content
IContentVersionRepository – Handles versions of IContent
ILanguageBranchRepository – Handle language branches
IPageCriteriaQueryService – Searches in content
LocalizationService – Handle translations
PageTypeRepository – CRUD operations for page types
UrlResolver – route helper to get URLs for content

Simple SQL script to show all Associations in EPiServer Commerce 1

There seem to be no good way to show all Entry Assocations (e.g. entries that have listings for accesories or related products set),  in Commerce, so I just created some simple SQL scripts

Show all

SELECT CatalogAssociation.CatalogEntryId, CatalogEntry.Code, CatalogEntry.Name, CatalogAssociation.AssociationName
FROM    CatalogAssociation INNER JOIN
                 CatalogEntry ON CatalogAssociation.CatalogEntryId = CatalogEntry.CatalogEntryId

If you need the associated entries as well, dig into this table:
[dbo].[CatalogEntryAssociation]

Where association contains ‘Expired’

SELECT CatalogAssociation.CatalogEntryId, CatalogEntry.Code, CatalogEntry.Name, CatalogAssociation.AssociationName
FROM    CatalogAssociation INNER JOIN
                 CatalogEntry ON CatalogAssociation.CatalogEntryId = CatalogEntry.CatalogEntryId
				 where CatalogAssociation.AssociationName like '%Expired%'

Most common associations counted
A variant for showing the most common associations (counted) are:

SELECT distinct CatalogAssociation.AssociationName, Count(*) as Count 
FROM    CatalogAssociation INNER JOIN
                 CatalogEntry ON CatalogAssociation.CatalogEntryId = CatalogEntry.CatalogEntryId
				 GROUP BY AssociationName
				 order by Count Desc

Getting EPiServer 6 r2 drag and drop fileupload to work in Internet Explorer 11 / Windows 8

Make sure you have UAC disabled and running IE as administrator:
http://world.episerver.com/FAQ/Items/Installing-ActiveX-Controls-in-EPiServer-Client-Components-on-Windows-Vista/

Inspiration links:
http://world.episerver.com/Forum/Developer-forum/EPiServer-CMS-6-CTP-2/Thread-Container/2011/8/Problem-with-Advanced-File-Upload—wont-work/

http://world.episerver.com/Forum/Developer-forum/EPiServer-CMS-5-R2/Thread-Container/2012/8/I-cant-get-the-drag-n-drop-component-to-work/

http://blog.fredrikhaglund.se/blog/2008/07/22/installation-of-episerver-components/

Solution:
Go to this folder:
C:\Program Files (x86)\EPiServer\CMS\6.1.379.0\Application\UI\CMS\ActiveX

Open the EPiServerClientComponents.CAB file and extract the contents.

Run a cmd prompt as administrator and enter:
cd “C:\Program Files (x86)\EPiServer\CMS\6.1.379.0\Application\UI\CMS\ActiveX”
– or wherever you extracted the files

regsvr32.exe EPiFileUpload.dll (install fileupload)
regsvr32.exe EPiOfficeIntegration.dll (install office integration)

EPiServer Commerce Cache handling

Just a snippet from my Certification studies:

//Commerce Cache handling
//cache invalidation time is configured in ecf.[objecttype].config
//e.g. ecf.catalog.config element
CatalogCache.Clear(); //clears the entire catalog cache
CatalogCache.Remove(“entrykey”); //invalidate a specific entry
CustomersCache.Clear(); //clear all customers cache
MarketingCache.Clear();
OrderCache.Clear();
SecurityCache.Clear();

More info:
http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Commerce1/75/Caching/Caching/