Author Topic

Fraser Hore

Monday 06 February 2006 5:31:05 am

Comment20998

Hi Kristof,

Thanks, it works well now with your change. There are a couple of other issues i would be grateful for your thoughts on:

1. It doesn't seem to be able to validate a float datatype, i get a message to this effect at the top of the edit form. When i submit the edit form it publishes.

2. I'm having trouble submitting more than one attribute at a time. In the code below only the activity attribute is stored in the new content object. Am i missing something in the code?

<form method="post" action={"powercontent/action"|ezurl} enctype="multipart/form-data">
    <div>
    <input type="hidden" name="NodeID" value="{$item.main_node_id}" />
    <input style="display: none;" type="checkbox" name="DoPublish" checked="unchecked" />
    <input type="hidden" name="UseNodeAssigments" value="0" />
    <input type="hidden" name="ClassID" value="70" />
    <input type="hidden" name="RedirectURIAfterPublish" value="/{$node.url_alias}" />
    </div>
    <div>
    <input style="display: none;" type="text" name="powercontent_activity_ContentObjectAttribute_ezstring_data_text_pcattributeid" size="12" value="{$item.name}" />
    <input style="display: none;" class="box" type="text" name="powercontent_week_number_ContentObjectAttribute_data_integer_pcattributeid" size="5" value="{$currentweeknumber}" />
    <input type="text" name="powercontent_monday_hours_ContentObjectAttribute_ezstring_data_text_pcattributeid" size="1" value="" />
    <input type="text" name="powercontent_tuesday_hours_ContentObjectAttribute_ezstring_data_text_pcattributeid" size="1" value="" />
    <input type="text" name="powercontent_wednesday_hours_ContentObjectAttribute_ezstring_data_text_pcattributeid" size="1" value="" />
    <input class="button" type="submit" name="CreateButton" value="Go" />
    </div>
</form>

3. Not having to open a form and then submit it definitely saves clicks and time, but even with the powercontent it's still a bit slow. Is there any way with Ajax we could get to the almost instant update that you get with tada list, for example? (www.tadalist.com)

4. I'm using javascript to expand and collabse nodes of my list (using the expandablelist extension i contributed). When i add an item to level one of the list it appears immediately after update. When i add a sub item below level one i need to clear the cache for the sub item to appear. Any ideas what i could do to fix this?

5. What about in-place editing? Is it possible to send updates to a content object rather than just create new objects?

Any thoughts or advice you have on these questions would be great!

Fraser