This article covers how to configure your Telligent Connect for Sitecore 2.5 installation to direct users to other Sitecore pages when content is accessed in a widget instead of directing them into your Telligent-based community.
You need to have configured your site to use contextual URLs as described in the article [[Working with contextual URLs in Sitecore]].
Turn Auto-Redirect on (or off)
If this is a new installation, auto-redirect is on by default. However if you need to turn it on or off, you do so by accessing the Sitecore content editor and navigating to System > Modules > TelligentEvolution > Configuration. Locate the Telligent Evolution section and check the box next to Generate Sitecore Urls (or uncheck it to turn it off).
Image may be NSFW.
Clik here to view.
Set up your routes
You must set up and configure all of the routes that pertain to the content you are using.
Routes are the way Telligent Connect for Sitecore deciphers information from a web URL. Telligent Connect for Sitecore uses wildcards at specific positions in a URL to hold dynamic pieces of data such as group IDs, application keys, and post keys. These pieces of data are used to retrieve the content they are associated with. You can learn to set up routes in your installation by referencing the article [[Working with contextual URLs in Sitecore]].
Configure URL definitions
Since the routing system uses the current URL to extract pieces of information, the definition system uses a target item to inject dynamic pieces of information into a URL to which to be redirected. Start by navigating to System > Modules > TelligentEvolution > Urls > Definition. You will have to repeat this process for every entry in each child item in this folder if you want to use this feature.
For this example, we are just going to set up the blog post definition:
- Under definitions, open the sitecore_v2_blogUrls item. This item contains all the supported URLs for blogs.
- Click the BlogPost field to open the DropTree of items, and select the item that will be your blog post page.Note: This is the page all widgets referring to a blog post will send your users to within Sitecore. This item must also be included in a valid route as discussed previously. So in this case, the item we chose must be included in the BlogPostRoute item set.
- Save the Item and publish. You may need to recycle your application pool for this to go into affect.
You can use the following table to understand what each field represents in terms of URL.
Application/Definition | Field | Description |
---|---|---|
sitecore_v2_blogUrls | Blog | Represents your blog home page (needs to be included in the BlogRoute) |
BlogPost | Represents your blog post page (needs to be included in the BlogPostRoute or BlogPostIDRoute) | |
GroupAggregateHome | Represents a group home page where you may list blogs for that group or all posts from the group's blogs (needs to be included in GroupRoute) | |
Blog-Id | Same as Blog, but this route only expects a numeric blog ID and is not used directly (needs to be part of BlogIDRoute) | |
BlogPost-Id | Same as BlogPost, but this route only expects a numeric blog post ID and is not used directly (needs to be part of BlogPostIDRoute) | |
sitecore_v2_forumUrls | Forum | Forum landing page (needs to be part of the ForumRoute) |
GroupAggregate | Group landing page meant to display all forums in a group or an aggregate thread list (needs to be part of the GroupRoute) | |
Thread | Forum thread landing page (needs to be part of the ThreadRoute) | |
AddThread | Start a new forum thread (needs to be part of ForumRoute) | |
EditThread | Edit a forum thread (needs to be part of the ThreadRoute) | |
EditForumReply | Edit a forum thread's reply (needs to be part of ForumReplyRoute) | |
ReplyToForumThread | Reply to a thread when using rich text editing (needs to be part of ReplyToForumThreadRoute) | |
ReplyToForumReply | Reply to a thread reply when using rich text editing (needs to be part of ReplyToForumReplyRoute) | |
ReportAbuse | Report abusive content in a forum (needs to be part of ReportAbuseRoute) | |
ForumReply | View a forum reply (needs to be part of ForumReplyRoute) | |
PendingModeration | View a forum thread that is moderated (needs to be part of ForumRoute) | |
sitecore_v2_groupUrls | Home | Group landing page (needs to be part of GroupRoute) |
sitecore_v2_mediaUrls | GroupAggregate | Group landing page where you list media galleries or an aggregate list of gallery files (needs to be part of GroupRoute) |
Media | View a gallery post (needs to be part of MediaRoute) | |
Gallery | View a gallery, usually a list of its media (needs to be part of GalleryRoute) | |
EditMedia | Edit a gallery post (needs to be part of MediaRoute) | |
AddMedia | Create a new gallery post and upload a file (needs to be part of GalleryRoute) | |
Slideshow | View a slideshow of gallery posts (needs to be part of GalleryRoute) | |
Media-ID | Same as Media but for ID-only based URLs and is not used directly (needs to be part of MediaRoute) | |
sitecore_v2_userUrls | User | User profile (needs to be part of UsernameRoute) |