Skip Navigation

[Gelöst] Layout templates like content templates

This support ticket is created vor 8 Jahre, 7 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 9 Antworten, has 3 Stimmen.

Last updated by henrikG vor 8 Jahre, 5 Monate.

Assisted by: Adriano.

Author
Artikel
#303689

Hi.

I have a header and footer layout

[HEADER]
[child layout]
[FOOTER]

Now I would like to have a few different layouts where the header part is different but the footer is the same on all these layouts

[SIMPLE HEADER]
[child layout]
[FOOTER]

I would like to be able to create a layout which I can insert in other layouts, so in my situation above I could create a footer layout and then insert this in both layouts above, so if I need to change something in my footer, I only have to change one layout, instead of two layouts.

The only layout you can insert is a child layout, (the body section) but I would like to be able to insert a new type.

You can define content templates in views, which you can use in many places, I would like to create a single row layout in other layouts.

The new type could be called a layout row.

#303788

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello and thank you for contacting Toolset support.

1)
I think you should try to create two level hierarchical layout.
=> a grand parent with the footer only
=> and a child layout cell

Where:
=> the child layout cell will host different layouts with different headers and child layout

Please refer to the following link:
=> https://toolset.com/documentation/user-guides/hierarchical-layouts/

2)
could you please send me debug information that will help us in order to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#303819

Hi Minesh.

I do not think you understand what I am suggesting.

I would like to be able to define a layout which you can then insert in a row in other layouts.

You can insert content templates, but you can't insert other layouts.

YES you can create a header, child, footer layout, which you can use on your other layouts, but you can't create a single layout row in layouts and then use this in other layouts

I wan't to be able to have multiple header-footer layouts where the header is different, but the footer should always remain the same on these layouts. Because of that, It would be nice if I only had a single footer row layout, which I could then use in other layouts.

Any given layout can only include one child layout, so I cant use a child layout.

Basically what I would like is the option to create a layout and reuse that in a row on a different layout which also includes a child layout.

That way I can have multiple header-footer layouts where the header is different, but the footer remains the same, and if I have to change the footer, I only have to change a single layout.

I have tried to describe my request in this screencast: hidden link

#304234

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

You cant insert layouts that way. Actually the way you want to use exactly is not possible but you should try to create custom footer as row/cell and use it at any place.

Please refer to the following documentation:
=> https://toolset.com/documentation/user-guides/using-custom-rows-add-custom-theme-functionality/
=> https://toolset.com/documentation/user-guides/layouts-cells-api/

If this does not helps I will escalate this to our next level support. Please share debug information with us that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#308240

Well can you escalate it as a feature request?

Because It would be really nice if you could design a row in layout and reuse it in other layouts, like you can reuse content templates in views.

The purpose is that you only have to maintain a single layout if you reuse this in other layouts. Just like content-templates.

#308346

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok. I have reported your concern to our next level support as a feature request. Please be patient, I will get in touch with you as soon as I know more.

#310850

Hi Henrik,

I've been talking with our Layouts developer and we ended adding it as a nice feature request which is allowing conditionals for rows.

But as workaround you can use nested Layouts, I mean child of child. A grand parent can has a child, and this child can has another child.

Please let me know if you are satisfied with my reply and any other questions you may have.

Regards,

Adriano Ferreira

#310868

Hi Adriano

It is not possible this way

It is the footer that I would like to have defined one place,

Since I can only define the parent of a layout, and only one single parent, I would essential have to create x amounts of identical footers for each layout I create.

Since the footer is a static content on all pages, but the header may change. I need to maintain multiple copies.

It is not the biggest issue I know, but content template takes care of this in views and layouts. I basically would like a content layout template 🙂

So even though it may not bee on your radar for the moment, I would really love to see this option implemented.

#311117

I understand. Ok, this has been added as a feature request. Unfortunately it's not up to me to give a date.

#312297

Thanks.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.