dokufreaks/plugin-blogtng

default blog

Closed this issue · 9 comments

It would be nice to have a configuration option to set the default blog which is selected if you create/edit a site.

I'm not sure if that's a good idea as at least for existing pages as if a page doesn't belong to a blog I don't want to add it to one just by accident because I haven't unselected the automatically selected blog. But of course there might be other use cases where really every page of the wiki should be part of a blog. Btw. a blog is already automatically selected when you are using the new entry form.

The use-case I need it for that we've many sites on our wiki at work which should be all in the same blog and the people writing the articles don't want to be bothered to change the blog evertime they create a new page.

I know the new entry form but it doesn't provide a function I would need to use it.
Because we have many namespaces to sort the articles I need to be able to choose the namespace the site is created in like the addnewpage-plugin provides.
But creating a new form for each namespace is a bit to heavy.

Or is there a way to create a template for new form just like for the entries?

No, there is no template for the new form and that probably won't be that easy to implement in a way you can do with it what you need. I thus suggest that we implement that configuration option you are requesting but use it for new pages only (and of course provide the option to select no blog at all).

That sounds very good.

Thank you very much.

I disagree. I more agree with your first comment, @michitux. Then every page would be added to a blog and I don't think, that's what people want.

How about adding a "blog"-option to the new entry form so the blog can be set there? Would that be okay, @Andrwe. So you could add entry-pages for the specific blogs and the fitting blog would be pre-selected.

Wait, I'm an idiot. The <blog newform>-tag already has that option. Isn't that enough, @Andrwe ? Not to use the "Create page"-method for a new blog entry and rather use the a page with the <blog newform>-tag?

Or am I misunderstanding something here?

As far as I've understood @Andrwe wants that all pages, also those that weren't created with the <blog newform>-tag, belong to a default blog. My suggestion was to not to change the default behavior but allow admins to configure a default blog that is used when a new page is edited.

Oh, okay. Is that what you meant, @Andrwe? If so, I second #49 (comment)

Yes dploeger, that's what I mean.