-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide "Cards" by default – a new hidden-path content type. #4903
Comments
For reference, I've mentioned the plan for this feature request before in issue 4849, and there was some first feedback in a related issue thread:
|
What would be a good name for the new content type? On sites built by me, I use to call it "Info block" or "Info box" (machine name |
The idea is an interesting one, but I'd suggest changing the issue title as the word 'block' there made me think that's what you wanted to call it, and so I started reading the issue already with doubts in my mind. Maybe "Add a new 'hidden-path' content type" instead...? |
Thank you, good point! I've changed it to "Add a 'hidden-path' content type for content blocks". |
A perfect example use case for such a new "rabbit-holed" content type would be a "Slide". But we are getting into hairy territory there, because of the whole slide functionality. I realize that such a feature would provide great OOTB value for Backdrop (less contrib modules for end users to install, less configuration needed etc.). This would be similar to the great job we've done with the drop-down menus provided OOTB... but then you get into quests like which 3rd party library to use (needs to be well-maintained, have modern browser support, be accessible etc.) ...also should this be implemented as a single node with multi-value image fields, or a view display + individual nodes for each slide 🤔 |
A hidden path content type is accurate, but I don't think it's easy for new users to understand. I like "Info block," because that describes how I would most likely use it. But, it may be too specific or narrow. A default content type should be as flexible as possible. Time to brainstorm:
What if we invent a new name for this type of content to avoid confusion and make it easy for us to define this usage with relatively clean slate?
Here are how a few examples might look on the add content page along with some possible help text: I look forward to new ideas... |
In our latest backdrop-cms.de team meeting we've already been joking, that finding a proper name for such a content type might be the hardest task. 😆 Here we go...
|
I like both the idea from @olafgrabienski and the "Embedded" suggestion from @stpaultim. I use this exact approach in every single project, and I highly prefer it over Drupal's fieldable block entity approach (just try to explain the difference to a customer) |
Comment redacted for being unrelated to the issue, but related to the overall discussion. For context see: #4908 because it deals with removing the alias path field from entities. |
@philsward Your suggestions are interesting but I guess they are too general for this thread. Can you open a new issue for your idea, I guess as a follow-up of Add a system of page-less nodes? |
@olafgrabienski ah, this is about adding a new content type to the install profile, right? Yeah, totally different. I didn't quite understand the concept at first. I'll remove my previous comment. |
But it's fun! 😅 ...OK, I'll get onboard with the name bike-shading:
|
This was my first thought as well. Thinking about it again, I wouldn't try to cover too many use-cases with the new content type. Let's compare it to Posts which are a simple example of dynamic content usually displayed in lists: Posts work out of the box for a news section, or for a blog (both sorted by post date), perfect. Now, if I want to display something different in a list, e.g. events, I'd add an Event content type, add a date field, and provide a different sort criteria (not by post date but by event date) in Views. Even if this use-case isn't covered by Posts, the Post content type helped me to understand that Backdrop is able to build dynamic lists of content (in contrast to how the more 'static' and menu related Page content type works, at least usually). I could also tweak the Post content type for Events (instead of adding a new type), but I'd say that's not within the scope of providing Posts in Backdrop out of the box. In the same way, an Info block could be tweaked for holding let's say slideshow pictures, but I'd suggest a more narrow main scope: providing 'hidden path' content for Existing content blocks. That said, I see that "Info block" may still be too specific. My current favorites are "Content snippet" and "Embeddable". The latter would go fine with the description text when adding Existing content blocks ( |
(sorry) |
Or just "Snippet"? The name will primarily appear on pages like "Add content" and "Manage content", so the "content" part of the name might not be necessary. |
"Snippet" is very vague to me. I'm not sure what it means in this content, but maybe that is a feature and not a bug, if the description helps define it? |
I use the name "Promo Box" ("Promotionsbox" in German) in all my customer projects, and will rename it accordingly;-) |
Definitely needs a help text. In contrast to other situations, people will probably read it :-) I'll try to provide some mockup screenshots to get an impression. Btw, "Snippet" reminded me the term "Widget". Widgets are / where a very popular feature in WordPress, and it's an example for a vague name that seems to work good. |
I like that @olafgrabienski 👍 ...it showcases a very simple example of how these "snippets" can be used. |
I like that too @olafgrabienski |
I wasn't sure at first, but I think "Snippet" works for me. I don't have a better idea yet, but I'm still listening... While, I like the idea for a snippet content type, I would suggest that we ask the following question "If we are going to add a third default content type to Backdrop CMS Core, is this the one that is most needed?" Because, I don't think we can add (m)any more. |
This is where having something like #3763 could be helpful I believe. |
Well, I haven't heard of another suggestion for a long time (if ever). Did I miss something? |
I posted to the PR as well, but I think we should go ahead and get this merged. We have the separated issue for the image style at #4903 and we can make another issue if needed to change the default image. |
@jenlampton has raised a couple of possible changes that have I have rejected for now and explained my reasoning in the PR discussion (mostly because the current code is consistent with other things and if we make changes, we should probably make similar changes for other content types or fields). These are all issues that can easily be discussed and changed later without significant changes in the functionality of this PR. We need a "Works For Me" label and I assume one more Code Review before we mark this RTBC. Anyone? Can someone clarify again, where the translation update comes in? |
@quicksketch For what it's worth, I'd be happy to see this happen anytime. If small changes need to be made without me, go ahead and make them and get this merged. We can then open up whatever follow-up issues we need, which will be much easier to deal with independently. |
Usually after release, @olafgrabienski downloads the release zip file and uploads it to localize.backdropcms.org, where strings are extracted and translators work from there. |
Seeing as it looked like all issues in the PR got addressed in the last day, I downloaded the code from the PR and ran through a fresh install.
Everything looks good. Gonna remove the "Needs testing" label (I see it already had WFM.) I looked through the code, didn't see anything amiss, but I think sharper eyes than me have already looked at the code anyhow. |
I have merged backdrop/backdrop#3862 into 1.x for 1.22.0! 🎉 🎉 🎉 This was a huge effort with a lot of opinions (it is the homepage after all!) and I'm happy we reached conclusions on almost everything. Thank you everyone for your patience as we worked out an acceptable solution. We have a follow-up regarding the image styles at #5593, and I encourage folks to make new issues as needed for adjustments. The exciting thing is we got this completed for the next release. The credit list on this one is longer than any I remember. I included everyone who made multiple posts that were beyond the voting and simple preference statements (though those have been useful too!) Big thanks to everyone in this issue. backdrop/backdrop@c429a72 by @stpaultim, @olafgrabienski, @docwilmot, @herbdool, @bugfolder, @BWpanda, @jenlampton, @quicksketch, @indigoxela, @philsward, @klonos, @laryn, @diannevolek, @wesruv, @yorkshire-pudding, @irinaz, and @albanycomputers. 🎉 |
Wow! Good work everyone. |
Description of the need
With 'existing content' blocks and 'hidden-path' content, Backdrop provides a powerful alternative to custom blocks: fieldable, translatable as any other content, and quite editor-friendly. I've got however a notion that many people aren't aware of its potential. Let's make the approach more visible and integrate it better into Backdrop by adding a new 'hidden-path' content type to Backdrop core.
Proposed solution
Add a third content type to Backdrop, and configure it for the use of existing content blocks. Display an example of such a content block, e.g. on the home page (see #4849 and #4867).
Alternatives that have been considered
Create a custom content type on my own sites. Works fine for me but doesn't make the approach more visible.
Build a contributed module with such a content type. Should be possible and might make the approach more visible. It couldn't be used in a vanilla Backdrop installation, though.
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes a powerful alternative to custom blocks: the flexible and editor-friendly Promobox content type.
Advocate: @stpaultim
PR:
backdrop/backdrop#3700PR: backdrop/backdrop#3862
The text was updated successfully, but these errors were encountered: