Forums / Setup & design / create new node in subfolder / Comment25301
paul bolger
Friday 19 October 2007 12:50:09 am
And this is what ended up working for me.
<bold>Note</bold>: This is in a calendar template based on Agenda2, and $curr_year is defined earlier.
{*tests for the node which contains this years events*} {foreach $node.children as $years} {if eq($curr_year,$years.name)}{def $this_years_node=$years.node_id}{/if} {/foreach} <div class="interaction-box" style="margin-top: 1em;text-align:center"> <p style="width: 200px">Create a new Calendar event</p> <form method="post" action={'/content/action'|ezurl} style="margin: .2em 0"> <input type="submit" name="NewButton" value="Create" class="button" /> <input type="hidden" name="ClassID" value="29" /> <input type="hidden" name="NodeID" value="{$this_years_node}" /> <input type="hidden" name="RedirectURIAfterPublish" value="/community/community_calendar" /> </form> </div>
Paul Bolger