Skip to content

Noriffik/Cofoundry.Samples.PageBlockTypes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cofoundry.Samples.PageBlockTypes

A bare website showing various examples of how to implement page block types.

If you have any requests for example block types, let us know.

To get started:

  1. Create a database named 'Cofoundry.Samples.PageBlockTypes' and check the Cofoundry connection string in the config file is correct for you sql server instance
  2. Run the website and navigate to "/admin", which will display the setup screen
  3. Enter an application name and setup your user account. Submit the form to complete the site setup.
  4. Log in and add a page with the General template, click on save and edit to go to the visual editor and play around with the page block types.

Example Page Block Types:

  • Carousel: A multi-item carousel making use of NestedDataModelCollection to allow editing of a collection of slides.
  • DirectoryList: Lists pages in a specific directory. Demonstrates searching for pages using IPageRepository and using the WebDirectoryAttribute data model attribute.
  • HorizontalLine: A very simple block type that adds a variable width horizontal line (wrapped hr tag).
  • PageList: An orderable list of links to pages. Demonstrates querying for cached page routes using IPageRepository, the PageCollectionAttribute data model attribute and generating links to pages from page objects.
  • PageSnippet: Displays summary information about a page. Demonstrates the PageAttribute data model attribute, querying and manipulating block data and handling availability of linked entities (due to draft status).
  • Quotation: A quotation block that is output as blockquote with an optional cite tag.
  • SocialProfiles: An example of using NestedDataModelMultiTypeCollection to create a list of social media profile links by utilizing four different types of nested data models in one collection.
  • TextList: A list of text items that displays in an html unordered list, or optional in an ordered list.

About

A bare website showing various examples of page module types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 77.4%
  • HTML 22.6%