Skip to content

Gibe/Gibe.Umbraco.V7.Blog

Repository files navigation

Installing

Install using Nuget

install-package Gibe.Umbraco.V7.Blog

Ninject module is available

Gibe.Umbraco.V7.Blog.Ninject.GibeUmbracoBlogModule

Setting up the Examine indexes

Add this to ExamineSettings.config

In ExamineIndexProviders > Providers

<add name="BlogIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
					 analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net" />

In ExamineSearchProviders > Providers

<add name="BlogSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
					 analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net" />

Add this to ExamineIndex.config

<IndexSet SetName="BlogIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/Blog/">
	<IndexAttributeFields>
		<add Name="id" />
		<add Name="nodeName" />
		<add Name="updateDate" />
		<add Name="writerName" />
		<add Name="path" />
		<add Name="nodeTypeAlias" />
		<add Name="parentID" />
	</IndexAttributeFields>
	<IndexUserFields>
		<add Name="postDate" Type="DateTime" EnableSorting="true" />
		<add Name="settingsNewsTags" />
		<!-- Optionally, your fields here -->
	</IndexUserFields>
	<IncludeNodeTypes>
		<add Name="blogPost"/>
	</IncludeNodeTypes>
</IndexSet>

Doctype

Add a new DocType with an alias blogPost with the following properties along with any custom properties:

postTags - Tag Picker postDate - Date Picker

Usage