Patterns managed via php files do not display title in inserter? #161
dainemawer
started this conversation in
General
Replies: 1 comment
-
@dainemawer I'll try to get to the ground of why it is this way, but looking at the source code it is intentional. Only user-created ones are showing their name in that view. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if this is a bug or maybe Im doing something wrong.
If I create a pattern through the editor and its saved straight to the database, the pattern appears with a title beneath it:
Step 1: Create a pattern from core blocks:
![Screenshot 2024-04-29 at 14 13 59](https://private-user-images.githubusercontent.com/48082535/326316414-4e6b87f5-fc18-4647-b5d9-c77c7eca5d59.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjg1NjIsIm5iZiI6MTcyNDEyODI2MiwicGF0aCI6Ii80ODA4MjUzNS8zMjYzMTY0MTQtNGU2Yjg3ZjUtZmMxOC00NjQ3LWI1ZDktYzc3YzdlY2E1ZDU5LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA0MzEwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYwNjBmYzcyMTE2M2RmMDczYmUyNjg4OGNjMDJkYzI0NzM4MGRhZTk0Y2U5NWI2Yzc3ZDY1YmNlYTBiZmU4M2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OjPmYaIGYn2P8y-Cfh4c4YGnjbvjlL50GkSJ7t16_Y4)
Step 2: View pattern from Block Inserter
![Screenshot 2024-04-29 at 14 14 14](https://private-user-images.githubusercontent.com/48082535/326316429-4d1f4823-b8ac-4f6a-b434-21e3fa26f60f.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjg1NjIsIm5iZiI6MTcyNDEyODI2MiwicGF0aCI6Ii80ODA4MjUzNS8zMjYzMTY0MjktNGQxZjQ4MjMtYjhhYy00ZjZhLWI0MzQtMjFlM2ZhMjZmNjBmLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA0MzEwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4ZWI2MDEzZmJmMTM2YjhiZTZmOGM4NWQ4OGVhYzBhN2U4MTY2OTc0OTkxNzQ3MWY5YWQwYTIwZTFjYzg0MDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.s2kxY31as19RyJ5mfMI2DZxcc5J4v5jf1WR9NS0iMB4)
However, if a pattern is managed via a
.php
file in thepattern
folder, even with the correct file header meta, no title is displays when viewing patterns within the Inserter on edit post:Beta Was this translation helpful? Give feedback.
All reactions