Active
Project:
Content Templates (Contemplate)
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2011 at 18:02 UTC
Updated:
29 Aug 2011 at 15:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
dgtlmoon commentedSounds like a good idea. I wonder if it's worth going all the way and making contemplate templates node's ?
perhaps some simple revisioning could be good.
but then that would make our work with setting the template's as something you can StrongArm unfeasable
Comment #2
dgtlmoon commentedOr maybe the broader issue is being able to test that a template functions without WSOD and gives you back what you expect?
Comment #3
dgtlmoon commentedOh yes, and there is already a patch that is being worked on so you can set the templates in your settings.php etc using strongarm.
So correct me if i'm wrong, but i think you just need something to 'test' that it executes OK?
Comment #4
sunset_bill commentedJust being able to test without crashing would be great. Setting templates in settings.php sounds like a cool thing, too.
thanks,
SB
Comment #5
sunset_bill commentedGreetings,
I've been playing around with adding revisions, basically by creating a contemplate_revisions table and giving the user an option of saving a revision when a template is doing what they want (no point in wasting DB space on a bunch of experiments). It's almost there (see screenshot), but what I need now is to be able to get a chosen date in contemplate_edit_type_form(). Unfortunately, while this function does have &$form_state as its first parameter, at the time the function executes, there's not much of anything in $form_state, especially $form_state{'values']['revision'], which holds the value of the revision the user has selected to load.
I've been trying various things over the past couple days, and I'm now basically thrashing. Rather than passing around a param, I've even tried using a global variable and checking in contemplate_get_template() to see if it's set and, if it is, fetching a revision instead of the regular template. No luck so far.
A. Would this interfere with StrongArm?
B. If not, do you have any ideas how I can get the selected date to contemplate_get_template()?
cheers,
SB