Closed (fixed)
Project:
Annotate
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
16 Sep 2007 at 17:52 UTC
Updated:
5 Oct 2007 at 02:11 UTC
hi guys,
i got a bad problem
i use a custom usernode template to show the annotate form.
if i access the view directly with arg "uid is author" OR "node id = usernode_id" the annotate will shown and i can modify / save it.
but if i embed the annotate form on my custom profile page i will see the annotate in the form but i cannot modify it.
if i click on save the message "successful saved" will shown but nothing will change.
what should i do?
greets
Lausch
Comments
Comment #1
clemens.tolboomA user is not a node. So we cannot fix this in the current setting.
(If i'm wrong feel free to reopen)
Comment #2
Lausch commentedhi clemens,
yes i have to re open, sorry i think my description was bad.
ok look...
i use USERNODE as profile so my profile is a node.
AND if i open the view from edit mode:
admin/build/views/annotate/"NODE_ID"
with arg "Node: ID"
IT WILL WORK!
but if i embed this view into another place, the form and the entry
(previously created from admin/build/views/annotate/"NODE_ID")
will shown but i cannot make changes!
i can only make changes if i edit the annotate on admin/build/views/annotate/"NODE_ID"
not as embed view.
so where is the problem?
greets
Lausch
Comment #3
clemens.tolboomThanks for the extra info.
I'll try to replay your problem.
One question though ... is annotation working on other node types?
(checkout the latest dev version please. There're some extra's added)
Regards, Clemens
Comment #4
clemens.tolboomTry the version of today when it appears :-/
Comment #5
Lausch commentedhi,
i tryd your latest cvs head. not work, same problem.
i show you some code now.....
my node-usernode.tpl.php
print $node->content['annotate_form']['#value'];now i access the view:
admin/build/views/annotate/103 (node 103)
i can edit the annotate - works
----------
i can see the form but if i edit nothing will change - not works
greets
Lausch
Comment #6
clemens.tolboomComment #7
clemens.tolboomCan you please give more information. In trying to reproduce a don't get close :-/
I installed usernode. But then what? If possible please attach the exported view too!
Comment #8
Lausch commentedhi,
you don't need usernode to get this "error"!
i tried many things today to find out wheres the problem...
OK listen
try the following:
create a content type called "annotate"
create a new content now
../node/add/annotate
write some stuff in and save the node.
now you get the node id, for example "123"
now create a node-annotate.tpl.php and save it into your theme directory.
open the file and add the following code:
print $node->content['annotate_form']['#value'];and save the file
now create a view called annotate
create field -> node id
create filter -> content type is one of "annotate"
create argument -> node id
save the view
now include this view on any other place like user profile or another node
for example create a new page
in the body write:
filter php code.
save the node
now you see the annotate form for node 123
and now what i find out:
it works on any place on other nodes and views...
BUT IF i use node load to get fields of my usernode (or other)
and also include the annotate form on this page, it will only SOMETIMES work....
on my site i use a custom userprofile tpl where i also load a node and get fields from this node and there i also include the view for the annotation form coz i don't know how to render the annotate form with node load....
so if you try node load 123 and load some fields and also the annotate view. it seems not longer working
so what the hell i should do... :-(
greets
Lausch
Comment #9
clemens.tolboomDear Lausch,
to begin with ... thanks for the conscious steps to reproduce.
After reading the previous instructions my guess is you're encountering a naming collision. Not really but things got mixed up.
The annotation module provides a FORM to ADD to nodes. So when theming your annotation NODE (node-annotate.tpl.php) it only shows an annotation FORM when configured this relation through the annotation module settings.
So you don't need a node_load what so ever to get the annotation FORM into a theming template for a specific node type.
When it comes to theming of the FORM we could now file an issue because there is no theming possible for the annotation FORM. But it is added right now ;-)
So my guess is we can close this issue. Right?
Regards, Clemens
Comment #10
Lausch commentedaaaaaaaaaaaaaaaaaaaaaaaah what the hell,
right...
since your latest csv i enabled the annotate for my content type usernode....
it seems working...
i will do some tests but i think its fixed :-)
thanks and greets
Lausch
Comment #11
(not verified) commented