Targeting layouts for forums vs topics

I’m working on a site that incorporates bbpress, and I’m seeing some instability integrating it into Cornerstone which I think may be related to setting Conditions correctly.

Specifically, I’m not seeing how I can set the Conditions for a Forum (a landing for Topics underneath it) so that layout does not apply to Topics pages. And similarly, I’m not seeing how I exclude Forum pages from being affected by my layout for Topics.

Any suggestions?

Hello Matt,

Thanks for writing in!

The Single layout will apply to single posts and pages only. The archives like the blog index, category, taxonomy and other archives uses the archive layout. Any pages that uses the shortcodes from bbPress may not apply with the layouts. It can display the shortcodes but you won’t be able to edit it in the layout builder.

By the way, can you please provide the URL of the page you are editing?

Best Regards.

Hello Matt,

The Forum Landing (#3818) and the Topic Landing (#3821) are single archive layouts. This will be the layout for a Forum item and a topic item. Here’s one thing to note with the layouts that you will need:

- Forums - archive layout
    - Forum - single layout
          - Topic - single layout

If you are using the {{dc:post:title}} and the {{dc:post:the_content}} dynamic content codes, you do not need to have [bbp-single-forum id={{dc:post:id}}] bbPress shortcode. With the {{dc:post:title}} and the {{dc:post:the_content}} dynamic content, you can select which element to use for example,

    Section
      Row
          Column
               Headline - h3 - {{dc:post:title}}
               Text Element - {{dc:post:the_content}}
          Column
                 Sidebar Widget Area

Hope this helps.

Thanks for this, Rue.

Just so I understanding, you are saying that the two templates I have right now (Forum 3818 and Topic 3821) are NOT correct. Instead, you’re saying only the Forum Landing should be an Archive layout, and all the sub pages under it should be Singles:

Forum Index : should be an Archive Layout
–— Single Forum Landing page (containing a list of topics): Single Layout
-------- Single Topic : Single Layout

Do I understand that correctly?

Hello Matt,

I would highly suggest that you unassign any single or archive layouts for the forums. This is to identify first the Forum pages and distinguish whether it is an archive or a single layout. Actually, the body classes will give you an indication for that. For example;

Hope this helps.

Thanks for this. But I’m a little unclear: if I ‘unassign’ both single and archive layouts for the Forums, what Settings > Assignment > Conditions am I setting for those?

Forum Index : Archive Layout (Condition: Post Type = Forum)
–— Single Forum Landing page (containing a list of topics): Single Layout (Condition: ?)
-------- Single Topic : Single Layout (Condition: ?)

?

Single forum would be Post type = “Forum”.

image

And Single topic would be Post type = “Topic”

image

Let us know if that helps and have a great day.

Thanks for the help, Rue and Charlie. I appreciate it!

1 Like

You are most welcome, Matt.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.