WeBlog creates its own login template

I am using Sitecore 7.2 and weblog 2.3.

I have a blog with two posts, the posts are displaying well. I am trying to create a custom template "CustomEntry" that inherits from "Entry"

I followed all the steps from the link https://github.com/WeTeam/WeBlog/wiki/Template-Settings . The blog is now completely empty. During debugging, it appears that GetBlogEntries () is empty. I believe this is an index related issue. There are several things for me.

  • When creating a new template for Entry, I understand that I have to inherit the entry. I inherited both Entry and StandardTemplate and sorted the entry that sits above the standard template. Is this what I have to do?
  • In the following code, what should be "" if it should be used as a blog template. in my case CustomEntry? I understand that the value must be a "CustomEntry" template id.
<locations hint="list:AddCrawler">
  <master type="Sitecore.Modules.WeBlog.Search.Crawlers.DatabaseCrawler,Sitecore.Modules.WeBlog">
    <include hint="list:IncludeTemplate" entryTemplate="$(EntryTemplateID)" commentTemplate="$(CommentTemplateID)">
      <myEntry>{D5608C5D-45E4-43FA-B2E4-DCD9DDF3E5A1}</myEntry>
      <myComment>{C85123CF-DA89-4C37-ACFA-4F8BA5157AC1}</myComment>
    </include>
  </master>
  <web type="Sitecore.Modules.WeBlog.Search.Crawlers.DatabaseCrawler,Sitecore.Modules.WeBlog">
    <include hint="list:IncludeTemplate" entryTemplate="$(EntryTemplateID)" commentTemplate="$(CommentTemplateID)">
      <myEntry>{D5608C5D-45E4-43FA-B2E4-DCD9DDF3E5A1}</myEntry>
      <myComment>{C85123CF-DA89-4C37-ACFA-4F8BA5157AC1}</myComment>
    </include>
  </web>
</locations>

      

+3


source to share


1 answer


Yes, you have to create 3 templates, each of which inherits from BlogEntry, BlogCategory, or BlogComment:

/ sitecore / templates / Modules / WeBlog / BlogEntry / sitecore / templates / Modules / WeBlog / BlogCategory / sitecore / templates / Modules / WeBlog / BlogComment

The settings shown in the snippet refer to the search index that you have configured on the main and web indexes.

These parameters should be template IDs of your new templates that inherit from the built-in templates. The tag name "myEntry" or "myComment" can be whatever you like, and only those instructions will be read from those tags.



<myEntry>{D5608C5D-45E4-43FA-B2E4-DCD9DDF3E5A1}</myEntry>
<myComment>{C85123CF-DA89-4C37-ACFA-4F8BA5157AC1}</myComment>

      

I would try to rebuild the search index called weBlog to see if that fixes the problem.

You need to make sure you have blog posts that are based on the newly created templates.

You can use Luke - https://code.google.com/p/luke/ to examine Sitecore indexes / data / indexes to see if you are getting blog items in your index.

+3


source







All Articles