Hello i dont use the forum module (boo hiss) instead i try to emulate it just with taxonomy. The part i always fall down though is creating a "Add new Forum topic" block on my taxonomy page. At present ive added a text field to my terms and i manually add a href link using Prepopulate Module to let me prepopulate a tag field.

This is a bit of a bugger as i have to manually add this for every new tag and with a free tagging vocab it can be a bit of a pain to keep on top of.

Is there an easier way to do this?

My coding experience is next to nothing (copy and paste google expert level) but i was thinking that a wee bit of php taking the term from the url and adding it to a url like-

/node/add/article?edit[insert-term-here-from-url]-£$£moreurlness

could work. This could be an issue with prepopulate but i thought i would try here first as the fru module wont be using prepopulate and it has the behaviour that one doth require.

All thoughts and help appreciated as this has been troubling me since D4.

Thanks

Comments

neRok’s picture

Component: forum.module » taxonomy.module
Status: Active » Fixed

Yes, you are on the right path. You want to use a token or url arg or some other readily available information to populate the link for you. If you use panels, you can add a custom content pane and use a token to help create your url link. You could probably do it a hacky way with a php block or even views block. Lots of options.

I am trying to close off some core issues, so I will set this as fixed incase you never look at it again. I can give you some more php code guidance if you give me some more info on your exact use case. ie, do you want a block to contain the link, do you want the block to show only on the term pages, etc.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.