Quantcast
Viewing latest article 4
Browse Latest Browse All 234

Using Auto-Redirect

Current Revision posted to Telligent Community 6 by Alex Crome on 8/21/2014 4:10:21 PM

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.

Note that this feature only applies to Telligent Connect for Sitecore 2.5, not Telligent Connect for Sitecore 2.0.

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:

  1. Under definitions, open the sitecore_v2_blogUrls item. This item contains all the supported URLs for blogs.
  2. 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.
     
  3. 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/DefinitionFieldDescription
sitecore_v2_blogUrlsBlogRepresents your blog home page (needs to be included in the BlogRoute)
BlogPostRepresents your blog post page (needs to be included in the BlogPostRoute or BlogPostIDRoute)
GroupAggregateHomeRepresents 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-IdSame as Blog, but this route only expects a numeric blog ID and is not used directly (needs to be part of BlogIDRoute)
BlogPost-IdSame 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_forumUrlsForumForum landing page (needs to be part of the ForumRoute)
GroupAggregateGroup landing page meant to display all forums in a group or an aggregate thread list (needs to be part of the GroupRoute)
ThreadForum thread landing page (needs to be part of the ThreadRoute)
AddThreadStart a new forum thread (needs to be part of ForumRoute)
EditThreadEdit a forum thread (needs to be part of the ThreadRoute)
EditForumReplyEdit a forum thread's reply (needs to be part of ForumReplyRoute)
ReplyToForumThreadReply to a thread when using rich text editing (needs to be part of ReplyToForumThreadRoute)
ReplyToForumReplyReply to a thread reply when using rich text editing (needs to be part of ReplyToForumReplyRoute)
ReportAbuseReport abusive content in a forum (needs to be part of ReportAbuseRoute)
ForumReplyView a forum reply (needs to be part of ForumReplyRoute)
PendingModerationView a forum thread that is moderated (needs to be part of ForumRoute)
sitecore_v2_groupUrlsHomeGroup landing page (needs to be part of GroupRoute)
sitecore_v2_mediaUrlsGroupAggregateGroup landing page where you list media galleries or an aggregate list of gallery files (needs to be part of GroupRoute)
MediaView a gallery post (needs to be part of MediaRoute)
GalleryView a gallery, usually a list of its media (needs to be part of GalleryRoute)
EditMediaEdit a gallery post (needs to be part of MediaRoute)
AddMediaCreate a new gallery post and upload a file (needs to be part of GalleryRoute)
SlideshowView a slideshow of gallery posts (needs to be part of GalleryRoute)
Media-IDSame as Media but for ID-only based URLs and is not used directly (needs to be part of MediaRoute)
sitecore_v2_userUrlsUserUser profile (needs to be part of UsernameRoute)

Viewing latest article 4
Browse Latest Browse All 234

Trending Articles