Oleksandr Hrebeniuk
Oleksandr Hrebeniuk

Reputation: 165

Add layout for all blog posts Orchard CMS

I'm trying to add layout for all blog posts. I have added part Layout for BlogPost content type. Now I can add layout for blog post one by one. So, how I can add existing layout for all blog posts in blog?

Upvotes: 0

Views: 132

Answers (2)

urbanit
urbanit

Reputation: 473

You should create a Layout from /Admin/Contents/Create/Layout, save it and then in your blogposts, use the option "Use existing layout: " in order to get your layout.

Upvotes: 1

mdameer
mdameer

Reputation: 1540

You can do it by adding new layer with ContentType rule, like this:

ContentType("BlogPost")

enter image description here

Then you can add your blog post special widgets to this layer including a Layout Widget, as you want.

Upvotes: 0

Related Questions