Ticket (Solved)

Zone inside dynamic layout?

I'd like to move TitlePart from it's default top-of-the-page position into the dynamic layout on some pages, but it's proving a bit difficult. If I insert TitlePart into Layout I end up with 2 titles on a page. If I try to hide it with a placement, they both disappear.

So I'm thinking maybe define new zone within layout and then move TitlePart with placement there? Is it possible or is there better solution?

Re: Zone inside dynamic layout?

When you drag a title part somewhere through the layout editor, the display type will be "Layout". So, if in the placement file you match the content type "Page" and the display type "Detail", only the default title will be hidden. But, the default title will be hidden for all "Page". If you don't want that, you need to use another specific content type

About zones: In the placement file you can send part to a new zone (will be part of the Model) that you can diplay where you want in an alternate (based on content type / display type / url...). See here: http://www.orchardpros.net/tickets/6765


Tuesday, June 2, 2015 2:24:52 AM byjtkech
  • jtkech
  • Lv. 13 Rookie
  • Total EXP: 1028

Re: Zone inside dynamic layout?

It's a rare scenario on one page for me so this did the trick. Thanks.

<Match Path="~/contact" ContentType="Page" DisplayType="Detail">
    <Place Parts_Title="-" />
Tuesday, June 2, 2015 1:52:43 PM byXeevis
  • Xeevis
  • Lv. 01 Rookie
  • Total EXP: 6

Post a reply

You need to be signed in to post a reply.

Sign In