Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Add: Single portfolio template #382

Merged
merged 7 commits into from
Sep 19, 2023
Merged

Add: Single portfolio template #382

merged 7 commits into from
Sep 19, 2023

Conversation

MaggieCabrera
Copy link
Collaborator

@MaggieCabrera MaggieCabrera commented Sep 15, 2023

Description

This PR introduces the template for Single portfolio designed in figma:

https://www.figma.com/file/AlYr03vh4dVimwYwQkTdf6/Twenty-Twenty-Four?type=design&node-id=492%3A2741&mode=dev

Screenshots

Screenshot 2023-09-15 at 17-47-36 Atque cupiditate sed et est qui – wp-stable

Testing Instructions

Create a post and select the template on the sidebar to be single portfolio.

@richtabor
Copy link
Member

This should be abstracted as a pattern, like we did here https://github.com/WordPress/twentytwentyfour/blob/trunk/patterns/template-home-portfolio.php. Otherwise it’s confusing having the template available in the site editor (while it’s not used anywhere).

@MaggieCabrera
Copy link
Collaborator Author

This should be abstracted as a pattern, like we did here https://github.com/WordPress/twentytwentyfour/blob/trunk/patterns/template-home-portfolio.php. Otherwise it’s confusing having the template available in the site editor (while it’s not used anywhere).

I don't think I agree. It's fine if we decide we want this as a pattern, but the template for single and pages need to stay so people can use them for specific posts. Maybe we need to think of remaining these. Bea created the 3 concepts to showcase the theme as 3 different use cases, but the idea behind that was that theme could support multiple "post formats". If we only provide full template replacing, that defeats the purpose, I'd like to keep the theme flexible providing the ability to change between them.

@richtabor
Copy link
Member

I don't think I agree. It's fine if we decide we want this as a pattern, but the template for single and pages need to stay so people can use them for specific posts.

This should be an alternative single template type, not a standalone template. That's what we're doing with the home page (and other subsequent templates, right)? If we have a "Single Portfolio" template in the site editor, it looks like the actual single portfolio template for a custom post type.

@richtabor
Copy link
Member

Create a post and select the template on the sidebar to be single portfolio.

I would not expect this to be a one-off template flow, but rather "I want to use this template for my single posts" (which supports the original idea of having three concepts to showcase the theme in three different ways.

@MaggieCabrera
Copy link
Collaborator Author

I would not expect this to be a one-off template flow, but rather "I want to use this template for my single posts" (which supports the original idea of having three concepts to showcase the theme in three different ways.

That's where I don't agree. I might be misunderstanding the whole concept behind the design, but I think the idea was to have 3 different concepts to showcase use cases for different types of content, because from a design perspective it's harder to find a use case that will need them all, but the goal is to give the flexibility depending on their own content. Sure some sites will just do fine with one of the single templates, but not all of them. This was a take on how post formats could be implemented on a block theme natively. If I have post with just an image, I will want to use the single-portfolio that shows it very prominently, but for my regular text based posts I will want to use single-writer to show my sidebar instead.

Then again, I might be understanding this completely wrong but the way we set up the demo sites is just a way of of showing the users how they can set up their sites, but I don't think it's great that we are forcing them into just one way of displaying their content if they want to mix and match? Else it would have made sense to just make child themes instead

@richtabor
Copy link
Member

I don't think we should mix post formats and templates tbh.

@carolinan
Copy link
Contributor

I would expect to be able to create a post and select any from the template selection: default, writer, portfolio, sidebar
What would be more confusing to me is that they have different footers.

@richtabor
Copy link
Member

I would expect to be able to create a post and select any from the template selection:

I don't think I agree. I expect it's confusing mixing post formats and templates here.

default, writer, portfolio, sidebar

I don't think these should be surfaced as such perhaps. 🤔

@richtabor
Copy link
Member

What would be more confusing to me is that they have different footers.

Agreed.

@richtabor
Copy link
Member

If we don't make this as a pattern, it's not available as an alternate template within the site editor (for pages and for single). Makes it inconsistent with how we did template-home-portfolio.php.

Related to WordPress/gutenberg#54562

@MaggieCabrera
Copy link
Collaborator Author

I would expect to be able to create a post and select any from the template selection: default, writer, portfolio, sidebar What would be more confusing to me is that they have different footers.

You have a point about the footers. I'm not sure how we can fix that.

@richtabor and I discussed this a bit more and came to the agreement that it's ok to have the sidebar/no sidebar single as templates, but this one is a bit more niche and confusing for users and should stay as a pattern like we have done for the alternative home pages. I will update this

@MaggieCabrera
Copy link
Collaborator Author

@richtabor can you have a look and give this a 👍 so we can get the pattern in? once were have all of them we can discuss if we need changes to the template/post types for all these patterns

@luminuu luminuu merged commit 17d1d5e into trunk Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants