Monday, June 13, 2016

Sitecore command template

1. Make an item based on templates/System/Branches/Command Template

2. Add an include config file

<?xml version="1.0" encoding="utf-8"?>

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
  <sitecore>
    <commands>
      <command name="taxonomy:addlandingpage" type="Sitecore.Feature.Landing.Commands.RunLandingPageEditor,Sitecore.Feature.Landing" />
    </commands>
  </sitecore>
</configuration>

2. in Command field for the new item type in whatever is in the config file:

taxonomy:addlandingpage

That points to a class (RunLandingPageEditor)

4.

No comments:

Post a Comment