Blog Setup Instructions? (ASPX + Portal)

Fahlgren Mortine asked on October 20, 2016 19:33

Good afternoon. I'm developing a client site using the ASPX + Portal engine of Kentico 9. I'm adding my first Kentico blog to the site. The documentation (https://docs.kentico.com/display/K9/Creating+blogs) makes this seems extraordinarily easy, but it seems that huge steps or prerequisites are missing. The Kentico 9 docs say, in summary, to 1) add a "blog" page, 2) select a template, 3) add blog posts, as if everything else is done automatically. However, the "select a template" portion seems to be sorely lacking in detail. I've selected a built-in blank ASPX template, a built-in 2-column Portal template, a custom ASPX + Portal template with webpart zones, and the built-in Blog template, but selecting them does nothing to actually make blog content visible. If I add the Recent Posts and Post Archive webparts to the blog page, I can then see links to blog posts, but clicking on said links takes me to the same template (at a different URL) with no new content being shown. It feels like there needs to be a "blog content" webpart or something similar to actually output the blog post itself. What am I missing? Thank you!

Kentico 9.0 ASPX + Portal

Recent Answers


Matthew Sandstrom answered on October 20, 2016 21:59

Hi Fahlgren,

The template you choose can be either a portal template or an ASPX template, but it should have some sort of listing web part or form control (such as a repeater or cms:repeater) on it that displays data from the Blog Post pages located under it using a transformation.

There is an example template called Blog included in Kentico by default. You can either use this template or use it as a reference for creating your own.

You can find more information about creating transformations for pages here: https://docs.kentico.com/display/K9/Creating+transformations+for+pages

Have a good one!

0 votesVote for this answer Mark as a Correct answer

Fahlgren Mortine answered on October 20, 2016 22:06

As per my question, I used this built-in Blog template and it did absolutely nothing; it didn't output anything at all to the screen, even after blog posts had been entered. As an aside, I don't know where to find this template in the code to see what it's supposed to be doing.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 24, 2016 13:54

Hi,
I would recommend to install/import the sample Corporate site template - for example into a testing instance of Kentico you have (this way you will not overwrite any of the existing global objects in your current instance).

Then, in the Community section is an example of the blog pages. The templates used there are the portal engine model, but the idea is the same.

The thing is that you need a listing web part that will list all the blogs and then a web part that will list the blog posts under certain blog. So, the idea is basically the same as when listing news. The only special thing about blogs is that there are used special page types and the logic to automatically create blog month "categories" is there.

Also, the documentation assumes that you have the sample site template there - so you have the page templates available for selection. If you have started for example with blank site, you will need to create and configure the page templates for blogs from scratch as well. Here is a brief description of the structure and template and web parts (.

/Blog page (page template A, with a repeater1 which will list all the blogs underneath this page)
----John's blog (page template B with repeater2 which will be listing the blog posts)
--------blog posts (inherits page template B)
----Mike's blog (page template B with repeater2 which will be listing the blog posts)
--------blog posts (inherits page template B)

0 votesVote for this answer Mark as a Correct answer

Fahlgren Mortine answered on November 9, 2016 21:58

Juraj Ondrus: How do I go about getting a copy of this Corporate site? I'm working in v9, but was presented with a site imported from v6. If I look under CMSTemplates > CorporateSite, there are only HomeASPX.aspx/.cs, HomeMixed.aspx/.cs, and Root.master/.cs files. Is this all I'm supposed to see? Where are the blog-related files?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.