GravityView icon indicating copy to clipboard operation
GravityView copied to clipboard

Allow different layouts for Multiple Entries and Single Entry

Open rafaehlers opened this issue 7 years ago • 22 comments

Lots of users have requested this functionality. Let's start considering the possibility of doing it. This will allow greater modifications to the way a user can display the single entry page.

Always show the Layout Type metabox as a configuration step, like the Data Source.


Requirements

  • Must be backward compatible: The default must be the Multiple Entries layout is the layout used for Single Entry.
  • Don't get bogged down trying to rework our renderer. Use existing hooks and methods.
  • Write unit tests

In order to implement

We will have to modify the renderer to use different templates based on the context.

This likely will involve filtering gravityview/template/view/class in View_Renderer::render() and gravityview/template/entry/class in Entry_Renderer::render().

I think this isn't hard to implement—a day or two for the design, a day or two for the back-end code, and a day or two for writing tests.

rafaehlers avatar Nov 05 '18 21:11 rafaehlers

Lots of users have requested this functionality. Let's start considering the possibility of doing it. This will allow greater modifications to the way a user can display the single entry page.

@rafaehlers Is this request the same as having different layouts for Multiple Entries and Single Entry?

zackkatz avatar Nov 05 '18 21:11 zackkatz

@zackkatz Yes, but the opposite can be done with DIY already. So, allowing the Single Entry to be customizable, is the way to go I believe.

rafaehlers avatar Nov 05 '18 21:11 rafaehlers

@rafaehlers I mean different layout types (List on Multiple Entries, Table on Single)

zackkatz avatar Nov 13 '18 23:11 zackkatz

https://secure.helpscout.net/conversation/1499668565/34162/

bennemann avatar May 03 '21 14:05 bennemann

https://secure.helpscout.net/conversation/1499878734/34166

bennemann avatar May 03 '21 15:05 bennemann

https://secure.helpscout.net/conversation/1661199736/37489/

bennemann avatar Oct 14 '21 08:10 bennemann

https://secure.helpscout.net/conversation/1671541563/37667/

bennemann avatar Oct 22 '21 14:10 bennemann

https://secure.helpscout.net/conversation/2068637078/44848

rafaehlers avatar Nov 15 '22 17:11 rafaehlers

https://secure.helpscout.net/conversation/2077323604/45091

bennemann avatar Nov 24 '22 08:11 bennemann

https://secure.helpscout.net/conversation/2106381129/45970

bennemann avatar Dec 23 '22 17:12 bennemann

https://secure.helpscout.net/conversation/2140037649/46652

rafaehlers avatar Jan 30 '23 18:01 rafaehlers

https://secure.helpscout.net/conversation/1879471744/41188

bennemann avatar Feb 16 '23 13:02 bennemann

https://secure.helpscout.net/conversation/1893364864/41413

bennemann avatar Feb 16 '23 13:02 bennemann

https://secure.helpscout.net/conversation/2010351635/43507

bennemann avatar Feb 16 '23 13:02 bennemann

https://secure.helpscout.net/conversation/2140256980/46657

bennemann avatar Feb 16 '23 13:02 bennemann

https://secure.helpscout.net/conversation/2157566585/47065

bennemann avatar Feb 16 '23 13:02 bennemann

https://secure.helpscout.net/conversation/2226541838/48603/

bennemann avatar Apr 28 '23 17:04 bennemann

We have a design for this in Figma titled GravityView - Per-Context Layouts.

https://www.figma.com/file/OM63Lq6eIlzu3nFPR4Xro8/GravityKit-UI%2FUX?type=design&node-id=1434%3A538&mode=design&t=p5f3JMp59fBwD46m-1

zackkatz avatar Oct 10 '23 15:10 zackkatz

@doekenorg I'm adding this to your plate, but I'm not sure what priority it should be yet. Let's discuss before you start.

I'm loving what you're doing currently, fixing a bunch of stuff across all the plugins! I'm thinking another few weeks of that and we'll have so much checked off the list!

zackkatz avatar Jan 17 '24 03:01 zackkatz

Another reason for this: When using the PDF for GravityView Extension to build custom PDF documents, it's much easier to design/style the Single Entry PDFs using the DIY layout. However, there are times when you may want a simple table for the Multiple Entries layout.

crbdev avatar Feb 02 '24 02:02 crbdev

FreeScout #77242.
https://support.gravitykit.com/conversation/77242?folder_id=1

floatytheastronaut avatar Feb 09 '24 21:02 floatytheastronaut

FreeScout #78879.
https://support.gravitykit.com/conversation/78879?folder_id=1

floatytheastronaut avatar Apr 09 '24 20:04 floatytheastronaut