... | in poll.naml |
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
|
<override_macro name="save_edit_post_custom_fields" requires="node_page">
<n.overridden/>
<n.if.both condition1="[n.page_node.has_poll/]" condition2="[n.visitor.can_create_poll_in.page_node/]">
<then>
<n.edit_poll>
<poll_max_choices>
<n.get_int. default="1" exception="max_choices_field_not_integer"><n.poll_max_choices_field.value/></n.get_int.>
</poll_max_choices>
<poll_days_left><n.to_null_if. equals=""><n.poll_days_left_field.value/></n.to_null_if.></poll_days_left>
<poll_allow_vote_change><n.poll_allow_vote_change_field.value/></poll_allow_vote_change>
<poll_show_results_before_vote><n.poll_show_results_before_vote_field.value/></poll_show_results_before_vote>
<poll_show_results_before_end><n.poll_show_results_before_end_field.value/></poll_show_results_before_end>
</n.edit_poll>
</then>
<else.page_node.save_new_poll/>
</n.if.both>
</override_macro>
|
... | in edit_post.naml |
204 205 206
|
<macro name="save_edit_post_custom_fields" requires="node_page">
<n.comment.>To be overridden</n.comment.>
</macro>
|
Free forum by Nabble | Edit this page |