Share » Forums » General » blog comments hidden by default

blog comments hidden by default

blog comments hidden by default

Monday 15 June 2009 6:36:56 am - 3 replies

Author Message

Jean-Luc Nguyen

Wednesday 17 June 2009 12:56:57 am

Hello,

I don't know if you can hide objects by default, but you can:

- As you said, add an attribute to the comment class, "status", with values "waiting for validation, validated, rejected".

- Use the workflow module, where the admin can approve / reject the comments.

http://www.acidre.com

Ivo Lukac

Wednesday 17 June 2009 1:08:51 am

If you want to make object hidden after first publish you can do it adding next lines under form tag in your edit template:

{if $edit_version|eq(1)}
	<input name="FutureNodeHiddenState_{$main_node_id}" type="hidden" value="hidden" />
	<input type="hidden" name="MainNodeID" value="{$main_node_id}" />
{/if}

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Mirko Battisti

Thursday 18 June 2009 5:05:13 am

Thanks Ivo,
I've tried your suggestion and it works fine.

And thanks Jean-Luc, your solution is probably more elegant. I haven't tried it yet, but I'm planning to look into the creation of an approval workflow.

Thank you very much!
Mirko.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu