#twiki 2012-08-08,Wed

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
***ChanServ sets mode: +o PeterThoeny [17:43]
................................................ (idle for 3h56mn)
rouiljPeterThoeny if you are around I could use a little feedback on an idea you floated a few weeks back. [21:39]
PeterThoenyyes? [21:39]
rouiljThe problem was to copy a page from one web to another web with a button push. You suggested using the same script with a template page.
This worked great for the first publish (i.e. it created a new page).
but it doesn't work for updates since the templatetopic is only used if the destination page doesn't exist.
I need to set the text blob (and I guess some method for attachments as well) for any update after the first one unless there is some hidden flag e.g. update_from_template_topic=1 that I can pass to save.
is this ringing any bells?
sorry type: using the same -> using the save script with a templatetopic
so the code looks like:
<form action="%SCRIPTURL{save}%/Hr/%BASETOPIC%" method="post">
<input type="submit" class="twikiSubmit" value='Publish to Hr Web' />
<input type="hidden" name="templatetopic" value="Sandbox.%BASETOPIC%" />
</form>
[21:39]
......... (idle for 42mn)
peter, sorry have to head home. I'll be back in a few hours. I'll check the logs for an answer as well. [22:27]
........ (idle for 36mn)
PeterThoenysorry, i missed rouilj, hope he comes back soon [23:03]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)