Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > One blog feeding three sites - possible? View modes: 
User avatar
Member
Member
danielrae - 11/10/2010 4:00:35 AM
   
One blog feeding three sites - possible?
Hello,

I'd like my content editors to create posts in a single blog which feeds three sites.

The scenario I would like is as follows:

ContentEditor creates a blog post and tags it with "SiteA" and SiteB". The post appears on the blog of SiteA and SiteB.

The ContentEditor then creates another blog post with tags "SiteA" and "SiteC". The post appears on the lbogs of Site A and Site C.

So basically, posts with particular tags appear in different locations. Or perhaps tick boxes to choose where the post appears?

Is this possible?

User avatar
Member
Member
kentico_michal - 11/12/2010 7:20:35 AM
   
RE:One blog feeding three sites - possible?
Hi,

Regrettably, I am not sure if I understand your request correctly.

Could you please describe it in more detail?

Do you want to create blogs for example only on SiteA and depending on assigned tags display blogs on SiteA, SiteB or SiteC?


Best regards,
Michal Legen

User avatar
Member
Member
danielrae - 11/12/2010 8:34:22 AM
   
RE:One blog feeding three sites - possible?
Yeh pretty much.

So I have content editors creating blog posts. Could I have a web part that displays only posts tagged with a particular word?

And then, could I have a similar web part on a different site (within the same installation) that only shows posts with a different keyword?

E.g. I have a blog on my main company site with posts with tags such as "corporate", "aviation", "healthcare".

I want all articles tagged with corporate to appear on the corporate site. Posts tagged with aviation appear on the aviation site, etc.

BUT... A post tagged with corporate AND aviation appears on both sites.

Does that makes sense?

User avatar
Member
Member
kentico_michal - 11/17/2010 4:27:44 AM
   
RE:One blog feeding three sites - possible?
Hi,

I see now what you want to achieve. One possible way could be based on using WHERE condition property of a repeater to filter blogs with appropriate tag. Let’s assume that you are creating blogs on corporate site. So, you could use standard repeaters on aviation and healthcare site, you just need to specify correct Path and Site name property. To display blogs with tag "aviation" you could use WHERE condition property:

WHERE condition: documenttags like '%aviation%'

In case of healthcare site you could filter blogs with tag “ healthcare“ with following WHERE condition:

WHERE condition: documenttags like '%healthcare%'


Another way could be adding custom fields to blog document type and use them in WHERE condition instead of tags. In other words, you could add three fields (one for each site let’s say showOnAviation, showOnHealthcare...) of type Boolean to blog document type and use it to filter displayed blogs. If field contains true, it will be displayed on appropriate site and vice versa. WHERE condition of the repeater on aviation page could look like this one:

WHERE condition: showOnAviation = 1


Best regards,
Michal Legen

User avatar
Member
Member
danielrae - 11/18/2010 9:03:40 AM
   
RE:One blog feeding three sites - possible?
Thank you Michal. I'll take your proposals on board and give them a go. If I have any issues, I'll reply to this topic.

Daniel