Golf Hole Editor Package For Umbraco

  • Administrator

The Golf Hole Editor package is an Umbraco data type for creating golf hole information. This data type could be used on a golf club website for displaying course information. An editor can configure each hole's tees and it's par, stroke index and distances. The data type can also accommodate for different numbers of tees, holes and pars. You can download the Golf Hole Editor package from our.umbraco.org or via NuGet.

Configuration

Setup a new data type and select the AgeBase.GolfHoleEditor within Umbraco's Developer section. After your selection, you will be presented with three options for your data type which are as follows:

  • Tees: A comma separated list of tees available to edit. For example, White,Yellow,Red. The default tees value is set to White, Yellow and Red.
  • Holes: A comma separated list of tees available for each hole. For example: 1,2,3,4,5,6,7,8,9. The default holes value is set to 1 to 18 holes.
  • Pars: A comma separated list of pars available for each hole. For example: 3,4,5. The default value is set to pars 3, 4 and 5.

Once setup, you will be able to add the data type as a property to a document type. When an instance of that document type is created, the editor will be displayed a collection of editable tees.

Usage

When using a property value on a template, add the following code to return and use a list of golf tees.

Once converted, you will be able to select or loop through each golf tee. For example:

Contributing

To raise a new bug, create an issue on the Github repository. To fix a bug or add new features or providers, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the package.