qwertyuiopasdfghjklzxcvbnmqwertyui
opasdfghjklzxcvbnmqwertyuiopasdfgh
jklzxcvbnmqwertyuiopasdfghjklzxcvb
nmqwertyuiopasdfghjklzxcvbnmqwer
YAF Integrated into Sitecore –
tyuiopasdfghjklzxcvbnmqwertyuiopas
Optional Sitecore Package
dfghjklzxcvbnmqwertyuiopasdfghjklzx
6/10/2009
cvbnmqwertyuiopasdfghjklzxcvbnmq
Brian Pedersen
wertyuiopasdfghjklzxcvbnmqwertyuio
pasdfghjklzxcvbnmqwertyuiopasdfghj
klzxcvbnmqwertyuiopasdfghjklzxcvbn
mqwertyuiopasdfghjklzxcvbnmqwerty
uiopasdfghjklzxcvbnmqwertyuiopasdf
ghjklzxcvbnmqwertyuiopasdfghjklzxc
vbnmqwertyuiopasdfghjklzxcvbnmrty
uiopasdfghjklzxcvbnmqwertyuiopasdf
ghjklzxcvbnmqwertyuiopasdfghjklzxc
YAF Integrated into Sitecore – Optional Sitecore Package
1 Contents
2 Preface .................................................................................................................................................. 3
3 Installing the Package ........................................................................................................................... 4
4 Controlling what YAF must display ....................................................................................................... 5
4.1 Setting up the Package.................................................................................................................. 6
5 Administer YAF inside Sitecore ............................................................................................................. 9
YAF Integration – Optional Sitecore Package Page 2
YAF Integrated into Sitecore – Optional Sitecore Package
2 Preface
YetAnotherForum (YAF) is an open source discussion forum written in .NET. YAF cannot run in the same
application as Sitecore, unless the source code of YAF is changed.
Read more about YAF at:
http://www.yetanotherforum.net/
The optional Sitecore package includes functionality to be included in Sitecore to control the behavior of
YAF.
Please note that the optional package requires you to run the modified version of YAF.
The optional package contains the following features:
A control that allows you to control that YAF must display: The complete forum, a single group
or a single forum.
See chapter 4, Controlling what YAF must display
The YAF administrator interface embedded as a shell program.
The package contains:
A Dropdown field type called "YAFDropList" that displays all groups/categories/forums from
YAF.
A template called "YAF/Forum" containing the field type.
A sublayout called "YAF/YAF_Forum" containing a YAF control that displays the group, category
or forum that was selected using the YAFDropList on the YAF/Forum template.
A layout called YAF/Admin that is used by the shell program to display the YAF forum admin
inside Sitecore.
YAF Integration – Optional Sitecore Package Page 3
YAF Integrated into Sitecore – Optional Sitecore Package
3 Installing the Package
Installing the pagkage is done like any other Sitecore package by chosing the Installation Wizard and
going through the steps of the wizard.
Figure 1 Installation Wizard
YAF Integration – Optional Sitecore Package Page 4
YAF Integrated into Sitecore – Optional Sitecore Package
4 Controlling what YAF must display
The optional Sitecore package allows you to control what YAF should display: The complete forum, a
single group or a single forum. You may add YAF to any page in Sitecore you wish, and with the forum
control you can decide that one page should display one forum, another page should display another
forum. When a board, group or forum is chosen, that page will only display the selected:
Figure 2 YAF Displaying the complete forum
Figure 3 YAF displaying one group (the "Sitecore forum" group)
YAF Integration – Optional Sitecore Package Page 5
YAF Integrated into Sitecore – Optional Sitecore Package
Figure 4 YAF displaying one forum alone (the Sitecore Discussions forum)
4.1 Setting up the Package
First you must add the ”YAF/YAF_Forum” sublayout to the pages that should display the forum:
Figure 5 Adding the sublayout to the page that displays the forum
YAF Integration – Optional Sitecore Package Page 6
YAF Integrated into Sitecore – Optional Sitecore Package
Then you should let the pages inherit from the YAF/Forum template:
Figure 6 Sitecore allows multiple inheritance. It's not problem to inherit from more than one template
YAF Integration – Optional Sitecore Package Page 7
YAF Integrated into Sitecore – Optional Sitecore Package
You can now use the forum drop down on the page to select which board, group or forum that the page
must display:
Figure 7 Select board, group or forum to display
YAF Integration – Optional Sitecore Package Page 8
YAF Integrated into Sitecore – Optional Sitecore Package
5 Administer YAF inside Sitecore
When the package is installed, a new button in the Start menu is added:
Figure 8 YAF Administration
Please note that by default, only administrators havd access to the program. To alter this, you should
change the access in the core database.
YAF Integration – Optional Sitecore Package Page 9
YAF Integrated into Sitecore – Optional Sitecore Package
When clicked, the current sitecore user will be logged into YAF as the forum administrator, and the
admin page will be displayed:
Figure 9 Forum administration
YAF Integration – Optional Sitecore Package Page 10