List Info

Thread: adding DD fields to the comments input box




adding DD fields to the comments input box
user name
2006-12-13 16:16:19
Hi all,

I'd like to add a new DD field to the comments input box. 

I added the field at
?module=comments&type=admin&func=modifyconfig

The field name is 'comment_name'.  Then, in my theme, in 
modules/includes/input-box.xt, I did this...

<xar:if
condition="xarModIsAvailable('dynamicdata')">
   <xar:data-input
property="$properties['comment_name']" />
   </xar:if>

That approach has worked for me in
registration/user-registerform.xt, 
but I guess something more is needed in the comments module?
  In the 
comments module I see "Call to a member function on a
non-object".

I had a look at the dynamicdata module overview, but am not
sure how to 
proceed.

Thanks for any pointers,
Ryan

-- 
Ryan Walker
www.WebCommunicate.net:
Insights and resources for effective websites.

_______________________________________________
Xaraya_devel mailing list
Xaraya_develxaraya.com
http:
//xaraya.com/mailman/listinfo/xaraya_devel
adding DD fields to the comments input box
user name
2006-12-13 18:20:57
nevermind... I found what I'm after:
http://www.xaraya.com/pipermail/xaraya_user/20
06-March/004010.html



Ryan Walker wrote:
> Hi all,
>
> I'd like to add a new DD field to the comments input
box. 
>
> I added the field at
?module=comments&type=admin&func=modifyconfig
>
> The field name is 'comment_name'.  Then, in my theme,
in 
> modules/includes/input-box.xt, I did this...
>
> <xar:if
condition="xarModIsAvailable('dynamicdata')">
>    <xar:data-input
property="$properties['comment_name']" />
>    </xar:if>
>
> That approach has worked for me in
registration/user-registerform.xt, 
> but I guess something more is needed in the comments
module?   In the 
> comments module I see "Call to a member function
on a non-object".
>
> I had a look at the dynamicdata module overview, but am
not sure how to 
> proceed.
>
> Thanks for any pointers,
> Ryan
>
>   


-- 
Ryan Walker
www.WebCommunicate.net:
Insights and resources for effective websites.

_______________________________________________
Xaraya_devel mailing list
Xaraya_develxaraya.com
http:
//xaraya.com/mailman/listinfo/xaraya_devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )