Does not find my template?
| Project: | Autocreate Node Reference |
| Version: | 6.x-2.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | sunset_bill |
| Status: | active |
I've followed the instructions and tried repeating everything a few times. No matter what I do I can't choose a template file as the select list is completely empty.
Select template:
[ ]
Select the template to clone for this content type.
To recap, I have a node-type called 'company' and a new template node of type 'company' called 'company AC_TEMPLATE'. I then created a ' autonode create' field in the node type 'employee' and called it 'company' (i.e. full name is field_company). The widget type is set to 'select list' within the 'autonode create' type. I try to select the template 'company AC_TEMPLATE' for this field but it doesn't find it.
Would really appreciate any help with this, thanks in advance...

#1
This sounds like another unfortunate bit of name confusion between modules, otherwise you seem to be doing everything right.
For ANR, you need to be adding an 'Autocreate Node Reference' field, not an 'autonode create' field. Remember also that you won't see the ANR field in the node create/edit form. ANR does its stuff behind the scenes when a referring node is created, with no user input.
hope that helped,
SB
#2
#3
Reopening - same issue - followed all the steps outlined above - nothing showing up in the "select template" dropdown menu after when trying to configure the field.
Anyone figure this out?
-CarbonPig
#4
When you say you followed the same steps outlined above, does that mean you selected 'autonode create' as your field type? If so, you're using the wrong field type. Try selecting the 'autocreate node reference' field type instead. It sounds like you're trying to do an Autonode CCK widget, which is something completely different and not related to Autocreate Node Reference at all.
#5
I get the same error and have tried a number of times, and on different sites.
And I tripled checked I'm using 'Autocreate Node Reference' CCK type. (I don't have autonode installed)
Am keen to work out where I'm going wrong cause this module sounds awesome.
Has anyone worked out why this happens?
Cheers
#6
I have the same problem im using the 'Autocreate Node Reference' module, followed the guide on http://drupal.org/node/371518 and got also the the select list empty...
#7
worked out adding a suffix, if you live the suffix empty the list box remains empty...
#8
Thanks for pointing that out, as it is a very key piece of the puzzle. Your template document(s) must contain the string specified as the suffix in your ANR configuration so the module will recognize them as candidate nodes.
I've updated the documentation to make that more clear.
cheers,
SB
#9
Apologies for seeming so dense,
But I have checked that my content type includes the Template token in the title.
I have also made sure the field name is the same as the template type name (machine-readable).
And I still don't get any options in the select list.
I've followed the documentation a number of times.
Any other ideas on where I could be going wrong or other modules interferring? (Node Reference, node referrer?)
@CarbonPig any luck?
Cheers,
Feet
#10
No worries, I'd really like to see this working for you, too.
Trying to clarify: When you say "checked that my content type includes the Template token in the title", do you mean your template node title, or the name of the content type you're trying to use for your template?
E.g., if you want to have an ANR field that references a webform: 1) create an ordinary webform and give it a title like "Form 1 AC_TEMPLATE" (assuming that AC_TEMPLATE is specified as the template token in the ANR config); 2) your field name should be simply "webform", not "webform_AC_TEMPLATE".
The way it works is that ANR uses the field name when a user adds/edits a node that has an ANR field (and the user never sees anything about it), it uses node title to select what shows up in the select list when the admin is adding an ANR field to a CCK type.
hoping that helps,
SB
#11
Many thanks for all the help and apologies for being so difficult.
Really looking forward to getting this to work.
I have attached jpgs of the settings/selections.
Hopefully you'll be able to see what's going on.
Cheers
#12
Aha, I think I see...
It looks like you're trying to follow the example in the doc, so what you need to being doing is to
1. create a regular Poll (node/add/poll) and give it the title "Poll 1 AC_TEMPLATE". You don't need to have a new content type called "Poll 1 AC_TEMPLATE". ANR uses node titles to figure out what to show in the Select template list, not node content types.
2. on your settings page, make sure the template token is "AC_TEMPLATE" and specify "Poll" as the suffix for the Poll content type. When you post a new node that has a poll ANR field in it, ANR will tack the work "Poll" onto the end of the title of that node. E.g., if the title of your node is "My ANR Poll Test 1", the link to your poll will be called "My ANR Poll Test 1 Poll".
And don't worry, I was plenty confused when I was trying to write this sucker, too. ;^)
salud,
SB
#13
Ah.
Thanks SB.
Yeah I was not reading the documentation properly despite reading it over and over.
It was fine once I created the content for the template.
Cheers for your patience and module.
salud también,
Feet