AlenPelin / FridayCore

FridayCore is a set of Sitecore extensions that every Sitecore site needs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FRIDAY CORE

FridayCore is a set of Sitecore extensions that every Sitecore site needs.

FridayCore XA is also available in feature/xa branch and it is only designed for Sitecore Experience Accelerator-powered (aka SXA) Sitecore sites.

Install all non-XA features using this command:

Install-Package FridayCore

Most features are disabled by default, so check config files for instructions.

Feature 1. Sign up rules

Let users create Sitecore accounts when they have email address which belongs to whilelisted domain.

For example, whiteliest @mydigitalagency.com to allow your colleagues create accounts with admin rights, and @sitecore.com to give Sitecore Support staff read-only permissions to speed up support services.

Note, for security reason the user account is created with random password which needs to be reset to the email address. So mail server must be configured.

Install this feature using this command:

Install-Package FridayCore.SignUpRules

Feature 2. Account reset rules

Reset specific user accounts on every Sitecore restart (for example, well-known sitecore\admin):

  • Reset password and write it to the log file
  • Unlock the account if it is locked out

Note, it is common practice of writing admin password to the log file. It is typically very safe because users that have access to the file system of the web server can do whatever thay want anyway.

Install this feature using this command:

Install-Package FridayCore.AccountResetRules

Feature 3. Auto packages

Enable automatic soft installation of Sitecore packages placed in configured folder on every Sitecore restart. Soft mode means skipping all item sub-trees that already exist, which means it will only do installation only when it is really necessary.

For example, imagine a Sitecore package that includes Home/Articles item and 3 dummy news subitems. On first restart, Sitecore will add Articles item with 3 subitems and the content authors will delete dummy items, replacing them with real ones. On next restart, Sitecore won't change eixsting Articles item and won't restore dummy news subitems.

Install this feature using this command:

Install-Package FridayCore.AutoPackages

Feature 4. Sitecore started event

This feature is enabled by default because all it does is writes to the log file straight after the Sitecore has served first HTTP request, and also raises an even so custom logic can fire at the same moment.

Install this feature using this command:

Install-Package FridayCore.SitecoreStarted

Feature 5. Config Extensions

Enable $(connectionstring:key/property) syntax in configuration files to embed connection string or its part into any place in configuration file.

For example, ConnectionStrings.config file

<connectionStrings>
...
  <add name="smtp" connectionString="Data Source=localhost,25; User ID=smtpusername; Password=smtppassword" />
...
</connectionStrings>

and /App_Config/Environment/MailServer.config file

<configuration>
<sitecore>
  <settings>
    <setting name="MailServer" value="$(connectionstring:smtp/DataSource)" />
    <setting name="MailServerUserName" value="$(connectionstring:smtp/username)" />
    <setting name="MailServerPassword" value="$(connectionstring:smtp/Password)" />
    <setting name="MailServerPort" value="$(connectionstring:smtp/port)" />
  </settings>
</configuration>
</sitecore>

Install this feature using this command:

Install-Package FridayCore.ConfigExtensions

yay! it's friday

About

FridayCore is a set of Sitecore extensions that every Sitecore site needs.

License:MIT License


Languages

Language:C# 84.6%Language:ASP 7.8%Language:PowerShell 7.6%