By XBleed on
Okay, I'm in the process of creating a local classified ad / community website. I'm stumped on pretty much just this one thing here..
Is there a way to allow the node author to "mark" their node as something specific? In this case, if the author of a classified node has sold the item, they could click a "Mark as sold" link, which would then give me the ability to specify if the ad is still available or not to the front end visitor?
Thanks
Comments
CCK
you can add a CCK field.
That may not be a bad route
That may not be a bad route to go. The problem I see with that is.. someone could mark the item as sold when creating the node, rather than after it has been created just click a link to have it update. Or is there a way around that, that I am unaware of?
Thanks
BZ - Music Community
cck permissions
if the creator and editor are different users, you can use cck permissions
You could write a very
You could write a very simple module with a form_alter hook in it (http://api.drupal.org/api/function/hook_form_alter/6). You alter the form so the CCK checkbox 'sold' is hidden on the node/add page.
An even easier, but less secure method would of course be to hide the checkbox using CSS.
I think the flag module does
I think the flag module does pretty much what you want.
http://drupal.org/project/flag
With views, you can then build lists of sold or "for selling" items
Hey! Looks like it might do
Hey! Looks like it might do the trick, I'll give it a shot.
Thanks.
BZ - Music Community
Just a quick follow up for
Just a quick follow up for anyone who may need this feature in the future. I did use the Flag module to do this, and a plethora of other things. The flag module is a great contribution.
BZ - Music Community
Yep! Essential in every
Yep! Essential in every site. Glad it was useful!