Top o' the mornin' to you (well, U.S. east-coaster's morning, that is.)
Although I am in the process of converting from an Xtemplate-based style module, I am currently using a Chameleon-derived style.
In my PHPTemplate work, I've set up different page displays based on the url (specifically I'm not interested in node type differences, just sectional differences, and so I'm filtering on the URL arguments.)
However, I'd like to implement this same feature during the transition phase, and I am wondering just where, in the Xtemplate scheme of things, I should be looking to inject my PHP code to filter by node type?
I'm happy to know that Xtemplate is by the wayside, in favor of PHPTemplate. What a load of code the other way.
Thanks for any quick pointers of where to edit first (so I don't blow things apart.)
-- Gary
P.S.
I checked in on the Csthemes IRC channel and there are a half-dozen folks listed as present but no one seems really to be around. Are there other Drupal-related IRC channels, even if not theme-specific?
Ciao.
Lists wrote:
However, I'd like to implement this same feature during the transition phase
I have no idea about xtemplate...and I don't quite see why you have a transition. If you're updating a theme why not just go the whole hog and switch to phptemplate? Surely the differences between xtemplate and phptemplate aren't that different - in the sense that phptemplate can do everything xtemplate does and more.
Are there other Drupal-related IRC channels, even if not theme-specific?
Please check channel topic's to see what is suitable for discussion, but: irc.freenode.net #drupal-themes #drupal-support #drupal
"Adrian Simmons" wrote:
Lists wrote:
However, I'd like to implement this same feature during the transition phase
I have no idea about xtemplate...
Okay. 8-|
and I don't quite see why you have a transition. If you're updating a theme why not just go the whole hog and switch to phptemplate?
Typically, we like to test things on non-production server, to verify that all other customisations and changes are functioning properly.
Quite common, I think.
Surely the differences between xtemplate and phptemplate aren't that different
"Adrian Simmons" wrote:
I have no idea about xtemplate...
They are, in fact, quite very different.
- in the sense that phptemplate can do
everything xtemplate does and more.
Moot. They may have the same result -- display a page -- but they are very different engines and based on entirely different code and logic.
But thanks...anyway? -- Gary
On 14 Apr 2006, at 4:23 PM, Lists wrote:
Moot. They may have the same result -- display a page -- but they are very different engines and based on entirely different code and logic.
no. they are not.
It shouldn't take more than 20 minutes max to port your template. http://heydon.com.au/node/636
also the some of the variable names changed in 4.7: http://drupal.org/node/25297
additionally, what you want to do is completely , utterly and totally impossible without modifying the xtemplate.engine file, and breaking all other xtemplate templates.
-- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
"Adrian Rossouw" wrote:
On 14 Apr 2006, at 4:23 PM, Lists wrote:
Moot. They may have the same result -- display a page -- but they are very different engines and based on entirely different code and logic.
no. they are not.
Yes. They are.
All one has to do is open one of the files to see that they are very different beasts.
Were they the same, then all PHPTemplate-based templates would work in Xtemplate and we wouldn't be having this conversation (which we are not anyway, since you're not really conversing with me. ;)
But that's cool. And not relevant. And, besides, we are not defining "same" in any meaningful way so there is no need to banter about it.
I have no need (or desire) to port an Xtemplate-based template. I wish to (and am) moving to a PHPTemplate-based template, and there I have no problem doing what I wish: divert specific URLs to specific templated pages.
But, we can agree on this:
Xtemplate is not readily amenable to do what I wish (I have no concern whether I break any other Xtemplate templates, since I only have one, but I do appreciate the heads-up.)
I am not going to pursue editing the Xtemplate engine file, because it's not going to be around much more than a week OMM, and also because it is a real mess, code-wise.
Thanks, however, Adrian, for taking time to reply. -- Gary