Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
didn't know what category to put this in...
could the machine name for a blog entry be changed from blog to blog_entry as it's more representative of what it really is.
a blog (as a whole) - consisting of a title, description, and refrences to blog entries etc is more of what a blog is.
thanks
Comment | File | Size | Author |
---|---|---|---|
#40 | 313801-40.patch | 13.96 KB | JamesAn |
#27 | 313801-27.patch | 13.98 KB | JamesAn |
#25 | 313801-25.patch | 13.87 KB | JamesAn |
#20 | jamesan_313801-update_7000.patch | 615 bytes | JamesAn |
#14 | jamesan_313801.patch | 14.79 KB | JamesAn |
Comments
Comment #1
add1sun CreditAttribution: add1sun commentedShould be for 7.
Comment #2
karschsp CreditAttribution: karschsp commentedtagging for novice queue.
Comment #3
George2 CreditAttribution: George2 commentedif the tables are going to have a constant naming format, ie. singular / plural, and as singular is impossible because user is a reserved word in pgsql, maybe it should be blog_entries ?
Comment #4
Dave ReidComment #5
jbomb CreditAttribution: jbomb commentedComment #6
wretched sinner - saved by grace CreditAttribution: wretched sinner - saved by grace commentedIs it worth, at the same time, changing the Human name to Blog Entry also? (for the same reasons?)
Comment #7
jbomb CreditAttribution: jbomb commentedchanging the human readable name to "Blog entry" as well makes sense to me.
Comment #8
jbomb CreditAttribution: jbomb commentedThought I might be able to do this this week, but it doesn't look like that's going to happen.
Comment #9
brianV CreditAttribution: brianV commentedFrom what I can see, the human readable name is already 'Blog Entry'...
Comment #10
JamesAn CreditAttribution: JamesAn commentedHere are patches for both blog and blogapi.
I don't use blogapi, but I read through the code to try to change the blog_entry machine-readable name. I went with the singular form as the default content types (article and story) are also singular.
Comment #12
JamesAn CreditAttribution: JamesAn commentedHrm.. still new.. I keep forgetting to test these patches. Silly me.
Here are the patches that pass the tests. They include changes to the tests since renaming the machine-readable name affects the permission strings.
Comment #14
JamesAn CreditAttribution: JamesAn commentedHm. I misunderstood how the patch tests work. The whole patch has to be self-contained. I see now.
This patch modifies blog, blogapi, and the test for dblog - all the areas that have the blog machine-readable name hard-coded in.
Comment #15
George2 CreditAttribution: George2 commentedgood luck this time james ; )
Comment #16
jbomb CreditAttribution: jbomb commentedFlipping to needs review for test bot.
Comment #17
JamesAn CreditAttribution: JamesAn commentedZomg! It passed. I'm excited. XD This is so cool.. ^_^"
Thanks for flipping the status over. I was impatiently waiting for the test bot to make its rounds and didn't realize the status was not set. -.-"
Comment #18
catchLooks like a good change.
What happens if you install Drupal 6 and blog module, then upgrade to Drupal 7? Seems like we probably need an update to change the node type from blog to blog_enty in existing installations since so much is hard coded to it.
Comment #19
Dave ReidSeems like it should be easy enough to do:
Comment #20
JamesAn CreditAttribution: JamesAn commentedSimple enough. The patch adds a blog.install with the function: blog_update_7000().
Comment #21
JamesAn CreditAttribution: JamesAn commentedHmm.. when I try to run this 7000 update, it throws an error that
field_attach_rename_bundle()
doesn't exist when called by node.module's node_type_save, line 584. Any ideas?Comment #22
catchI don't think there's a guarantee that all modules are enabled during update.php. Not sure if that's being worked on at the moment or not though.
Comment #23
JamesAn CreditAttribution: JamesAn commentedMakes sense. field_attach_rename_bundle() is in field.autoload.inc, which is loaded on field_init(). I noticed a TODO note for D7 there:
TODO D7: Determine which functions need to always be "loaded", and put autoloaders for them into field.autoload.inc. Also figure out how to make this work during installation.
If it doesn't work during installation, maybe it doesn't work during updates yet either. I don't exactly know how drupal install and update work.
Should this be postponed until this TODO issue is resolved? And has an issue be filed for the TODO?
Comment #24
JamesAn CreditAttribution: JamesAn commentedResuming. The TODO in field_init() was resolved in #439236-10: field_attach_create_bundle() undefined when creating a content type on hook_update():
Comment #25
JamesAn CreditAttribution: JamesAn commentedLet's see if this goes. A bunch of changes to reroll.
Like before, blog.install is added with a few changes, but the error that postponed this issue no longer occurs. I think I added the file in correctly.
Hopefully, testbot will be happy.
Comment #26
catchI think it makes sense to do this, but the patch needs an upgrade function for existing sites with blog module installed.
Comment #27
JamesAn CreditAttribution: JamesAn commentedOops. I didn't correctly add blog.install into the patch. Here it is again.
Comment #28
Dries CreditAttribution: Dries commentedComplete the following sentence: "I'm going to write a blog ...". Should we use "blog post" or "blog entry"? I'd be inclined to say "blog post" but maybe "blog entry" is the norm.
Comment #29
catchI'd probably say blog post first too, but we use post to mean a lot of things and I have small mission to stop using it as a noun in core #431612: Stop using post as a noun, whereas entry currently has a lot less chance for confusion.
Comment #30
JamesAn CreditAttribution: JamesAn commentedI have the habit of saying "post" as well, but I agree that it's vague and overused. An "entry" seems to be more precise as an entry is part of something (e.g. a diary, journal, or blog entry), whereas a "post" doesn't give the noun any more definition.
"Post" is also currently confused with "content" and "node", as they all seem to be used interchangeably.
So I still think "blog entry" is more appropriate.
Comment #32
brianV CreditAttribution: brianV commentedSetting to 'needs review' - testbot was broken.
Comment #33
langworthy CreditAttribution: langworthy commentedHere's what Derek Powazek has to say.
While I understand the noun/verb confusion over post, I don't see that same confusion with blog post, which I believe is more familiar than blog entry.
As Derek describes, the name of the entry is post. Considering the noun/verb confusion, this isn't perfect, but IMHO it's the best option.
Comment #34
karschsp CreditAttribution: karschsp commentedI am leaning towards "blog post" as well, assuming we can remove "post" from elsewhere in core as catch mentioned in 29 #431612: Stop using post as a noun. I'm not sure if this patch is necessarily dependent on that, but it would be nice if they both got in.
Comment #35
michaelfavia CreditAttribution: michaelfavia commented+1 for blog post. Catch's personal quest to rid us of "post" is really more about ridding us of the misuse of the word. people were using it as the generic descriptor of content because it was all they could think of besides "node" and they new that wasn't going to fly from a usability standpoint. :). I think htis is a proper use of the term as well.
Comment #36
NaheemSays CreditAttribution: NaheemSays commentedAn alternative approach could be to remove blog from being a special node type.
I attempted something similar in #470580: Allow multiple content types for user blogs but I do not have the skills to take that any further.
Comment #37
JamesAn CreditAttribution: JamesAn commentedI like the idea of allowing blogs to support multiple content types. I took a peek at #470580 and it's a whole lot more involved than I've time for, at the moment.
I'll push through this "blog post" patch first and then I'll look at that.
Comment #38
michaelfavia CreditAttribution: michaelfavia commented@dries: mind weighing in with your preference if one at all for this?
I too value the idea behind multiple content types in a "blog" but I also agree that we don't want them all available. There seem to be two options then:
1. Define "blog content types" across all users as a system variable under "site configuration". This would allow admins to designate bloggable content and it would all be automatically posted to the blog streams.
2. Add a "Add to blog" checkbox field to all content types letting users determine which content should end up in their blog themselves. This could be added in the publishing options fieldset or the like.
I favor option 1 as the easiest option for both the end user and for implementation sake. I'm all for presenting users with fewer options and checkboxes at authoring time. more complex use cases could develop in contrib.
Little direction and ill write it.
Comment #39
NaheemSays CreditAttribution: NaheemSays commentedIn the linked patch (comment 36), it is possible to choose which content types are allowed to appear in a blog.
That allows to choose what content types a user can add to the user blog, but it can probably be extended (to fix the test exceptions and) to have a default on/off setting per content type too.
Comment #40
JamesAn CreditAttribution: JamesAn commentedThis patch rerolls the one from #27 and changes the machine name type to "blog_post" instead.
Comment #42
JamesAn CreditAttribution: JamesAn commentedChanging title to reflect the change in the machine name.
Comment #43
rschwab CreditAttribution: rschwab commented+1 for 'blog_post'. I agree 'post' is ambiguous, but 'blog_post' is crystal clear. However, I think this breaks the API freeze for 7x.-dev.
Comment #44
Jody LynnShould be blog_post
Powered by Dreditor.
Comment #45
deekayen CreditAttribution: deekayen commented#233301-125: Remove blog module from core removed blog from core.
Comment #47
a_thakur CreditAttribution: a_thakur commentedThe blog module is removed from core in d8. This issue should be closed.
Comment #48
a_thakur CreditAttribution: a_thakur commentedComment #49
a_thakur CreditAttribution: a_thakur commentedSorry my bad. I didn't check the issue properly.
Comment #50
a_thakur CreditAttribution: a_thakur commented+1 for blog post.
blog_post is clear.
Comment #51
rschwab CreditAttribution: rschwab commentedAs far as I can tell, the machine name is still blog.
Comment #52
jasdev.moun CreditAttribution: jasdev.moun commented+1 for "blog_post".
Comment #53
jasdev.moun CreditAttribution: jasdev.moun commentedComment #54
opdaviesI'll sort this. :)
Comment #55
acabouet CreditAttribution: acabouet commentedBlog module is removed in D8 core. Closing this.
Comment #56
chris_hall_hu_cheng CreditAttribution: chris_hall_hu_cheng commentedI have re-opened this issue as the blog module although no-longer in D8 Core, is now in contrib.
Comment #57
chris_hall_hu_cheng CreditAttribution: chris_hall_hu_cheng as a volunteer commentedInadvertently fixed this one whilst getting the tests to work etc. node type blog makes no sense for a individual post.