Skip to content

tednyberg/optimizely-addon-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimizely add-on sample

Sample with boilerplate code for an Optimizely add-on.

Summary

Solution consists of one project for the add-on (Addon folder), and a second project for the website (Website folder).

The website project was set up using the Optimizely CMS empty Visual Studio template.

Get started

  1. Clone project
  2. Create empty database and update appsettings.json (or run create-db.bat in the solution folder if you're using LocalDB)
  3. Start Website project and browse to https://localhost:44300/ which will prompt you to create an admin user
  4. Access the Optimizely UI through: https://localhost:44300/episerver/cms using the credentials of the admin user
  5. Create a new page of type SamplePageType
  6. Notice how the SomeString property has a wider textbox for editing

Add-on development tips

  • Load client resources from add-on project to make refreshing client resources easier (see ServiceCollectionExtensions.cs in Addon project).
  • Enable UI debugging (see ServiceCollectionExtensions.cs in Addon project).
  • Add the EPiServer.UI.Sources NuGet package to get uncompressed source code of the Optimizely UI including Dojo.

About

Sample with boilerplate code for an Optimizely add-on.

Topics

Resources

License

Stars

Watchers

Forks