Closed (fixed)
Project:
Node Page Template
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2009 at 14:18 UTC
Updated:
29 Jan 2010 at 15:50 UTC
Hi - really useful module - thanks.
I'm getting a problem whereby the selected template is lost when editing a content-type. When setting up a new content type I select the required template from the list, and save the content type. If I subsequently edit the content type, the template selection is not persisted and resets to the default.
I would have expected the value selected to persist and not require re-selection.
Comments
Comment #1
WebNewCastle commentedIn the module file, under:
and skip down to:
you should see this line:
I believe if you change it to something like this it will work:
Comment #2
jaybee1001 commentedWebNewCastle - thanks, will give that a spin.
Comment #3
djmy commentedWebNewCastle - thanks for the solution on the default value, it did change it but the only thing is that i still don't see the template change on the page. I only see that the drop down is correctly pointing to the template but it does not reflect on the page (from the content type), and i cleared my cache. Is it working for you?
Comment #4
WebNewCastle commentedHi Djmy,
If I am understanding correctly, the purpose of setting the template in the content type is to make it the default when adding or editing a node, but that it wouldn't affect the display of the content type retroactively (i.e. affect the way existing nodes in the content type are displayed). The module maintainer is welcome to correct me if I am wrong.
Is this what you are referring to when you mention that is doesn't reflect on the page or did I misunderstand?
Comment #5
djmy commentedComment #6
djmy commentedhi WebNewCastle, the problem is that when I go and edit the template choice in the Content Type, it does save, but when I go to the individual node page the template change doesn't occur. :-(
Comment #7
WebNewCastle commentedAre you saying that after you save your choice in the content type settings and then you go to create a new node of the same content type - that there is a problem at that point? Or are you talking about an existing node that you already created?
Comment #8
djmy commentedThe problem is to an existing node that i created. Its the "edit" function. Creating a new node works though.
Comment #9
WebNewCastle commentedI could be wrong, but I think the way the module is written, setting the template in the content type would primarily just affect creating a new node. But choosing a template when editing a node should cause the node to be displayed with the node template selected.
Comment #10
DenRaf commentedWebNewCastle, it is like you describe in #9.
Code added in new release.