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

flabat’s picture

you can add a CCK field.

XBleed’s picture

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

flabat’s picture

if the creator and editor are different users, you can use cck permissions

marcvangend’s picture

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.

tiago.gmarques’s picture

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

XBleed’s picture

Hey! Looks like it might do the trick, I'll give it a shot.

Thanks.

BZ - Music Community

XBleed’s picture

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

tiago.gmarques’s picture

Yep! Essential in every site. Glad it was useful!