Hi,

In each category page, there is a bar at the bottom containing:

Add child category Add child container Add new comment

Could you add a "create content" button, that would add a page/story/something that has the current category as it's parent? That would make it easier to add content to a particular category, especially of the whole category tree is very large.

Thanks,

fcmisc.

Comments

jonnyz’s picture

I would second this request! Similar to how the book page has a "Add Child Page" option which would simply add a page to that section/category, I think that would be a great enhancement here.

Thanks for all your work on this!

H3rnand3z’s picture

I have not tried this in 5.x but in 4.7 I added /node/add/page/[category node id] link to the category body, When I click on the add page here link the category is preselected, the user just fills in the title and body and clicks submit.

summit’s picture

Hi,

Can you please tell how you did it?
May be a patch?
Thanks in advance.

greetings,
Martijn

H3rnand3z’s picture

I wen to Administer, Categories, List categories clicked edit and added a new link in the category body. The link url is /node/add/page/55 where 55 = Accounting category node id. I added these links in the body of each category.

fcmisc’s picture

Thanks for the tip, but that doesn't seem to work for me.

Just in case that works for someone else, I created a block that automatically generates the link for the above. It needs to work out whether a page is a category page or not, but if the site is just maintained by one admin I guess finesse isn't that important.


echo '<a href="/node/add/page/' . arg(1) . '">Add Page</a>';

fcmisc’s picture

Erm... why has this been assigned to me? I'm not a member of the development team for this project. Just a humble user with basic coding skills.

Does anyone know how to add the button we're after?

nainainai’s picture

subscript. still no update on this :(