The Mestopheles path
I've spent a couple days at this point trying to discover how something is being done, without much progress. I'd walk through it in debug, but the environment for this site is wamp and I'm equally unsuccessful getting phpStorm and xDebug to play nicely in Windows, so far. A D6 site using panels. A view producing a block. The panel page loads the block and overrides its path (well...technically not, but that's what the setting says) to be domain.com/music Have a module that implements pre-process, as well as registering a callback. The path in the callback is /music-xml. The pre-process implementation checks for arg(0) containing music-xml. The module registers its templates directory, which contains a template for page-music-xml.tpl.php. When invoking /music, the result is the callback or music-xml fires, arg(0) contains music-xml, and the template fires. The browser path, meanwhile, still says /music The problem is that I need to change the content type used in the view from music to something else, at which point it all breaks...arg(0) shows up just as music then, not music-xml. I've grepped the code, exported and grepped the db, clicked all the clickables (I think) in panels, check path aliases, strongarm ... I can't figure out how it's being done. Jeff -- /I am a non sequitur. Beware, the contents were packaged where peanuts are processed./ Ayen Designs 388 Bullsboro Drive #105 · Newnan, Georgia 30263 404-271-9734 Web:ayendesigns.com <http://ayendesigns.com/> Blog: theAccidentalCoder.com <http://theaccidentalcoder.com/> Drupal: j. ayen green <http://drupal.org/user/367108> (367108) IRQ: j_ayen_green IM (Yahoo) baalwww (MSN) baalwww@yahoo.com Skype: ayendesigns | Facebook: ayendesigns | Twitter: @ayendesigns Ayen Designs is the computer services division of
Hey Jeff, I'm knee deep and a little lost on what you're trying to do, but phpEd plays really well on Windows. Plus, you can just place a debugBreak(); where ever you want the code to start stepping. Then you can walk through it. -Don- On 5/2/2011 8:34 PM, jeff@ayendesigns.com wrote:
I've spent a couple days at this point trying to discover how something is being done, without much progress. I'd walk through it in debug, but the environment for this site is wamp and I'm equally unsuccessful getting phpStorm and xDebug to play nicely in Windows, so far.
A D6 site using panels. A view producing a block. The panel page loads the block and overrides its path (well...technically not, but that's what the setting says) to be domain.com/music
Have a module that implements pre-process, as well as registering a callback. The path in the callback is /music-xml. The pre-process implementation checks for arg(0) containing music-xml. The module registers its templates directory, which contains a template for page-music-xml.tpl.php. When invoking /music, the result is the callback or music-xml fires, arg(0) contains music-xml, and the template fires. The browser path, meanwhile, still says /music
The problem is that I need to change the content type used in the view from music to something else, at which point it all breaks...arg(0) shows up just as music then, not music-xml.
I've grepped the code, exported and grepped the db, clicked all the clickables (I think) in panels, check path aliases, strongarm ... I can't figure out how it's being done.
Jeff -- /I am a non sequitur. Beware, the contents were packaged where peanuts are processed./
Ayen Designs 388 Bullsboro Drive #105 · Newnan, Georgia 30263 404-271-9734 Web:ayendesigns.com <http://ayendesigns.com/> Blog: theAccidentalCoder.com <http://theaccidentalcoder.com/> Drupal: j. ayen green <http://drupal.org/user/367108> (367108) IRQ: j_ayen_green IM (Yahoo) baalwww (MSN) baalwww@yahoo.com Skype: ayendesigns | Facebook: ayendesigns | Twitter: @ayendesigns
Ayen Designs is the computer services division of
Hi Don, yes, you're right, I used to use that and should dig it out. Of course, a breakpoint is based on Any idea of where to start :) For some reason devel's stack trace has nothing to say, which might mean something iterative is going on. Ayen Designs - quality software the first time, every time! -----Original Message----- From: Don <donald@fane.com> Sender: development-bounces@drupal.org Date: Mon, 02 May 2011 21:01:09 To: <development@drupal.org> Reply-To: development@drupal.org Subject: Re: [development] The Mestopheles path Hey Jeff, I'm knee deep and a little lost on what you're trying to do, but phpEd plays really well on Windows. Plus, you can just place a debugBreak(); where ever you want the code to start stepping. Then you can walk through it. -Don- On 5/2/2011 8:34 PM, jeff@ayendesigns.com wrote:
I've spent a couple days at this point trying to discover how something is being done, without much progress. I'd walk through it in debug, but the environment for this site is wamp and I'm equally unsuccessful getting phpStorm and xDebug to play nicely in Windows, so far.
A D6 site using panels. A view producing a block. The panel page loads the block and overrides its path (well...technically not, but that's what the setting says) to be domain.com/music
Have a module that implements pre-process, as well as registering a callback. The path in the callback is /music-xml. The pre-process implementation checks for arg(0) containing music-xml. The module registers its templates directory, which contains a template for page-music-xml.tpl.php. When invoking /music, the result is the callback or music-xml fires, arg(0) contains music-xml, and the template fires. The browser path, meanwhile, still says /music
The problem is that I need to change the content type used in the view from music to something else, at which point it all breaks...arg(0) shows up just as music then, not music-xml.
I've grepped the code, exported and grepped the db, clicked all the clickables (I think) in panels, check path aliases, strongarm ... I can't figure out how it's being done.
Jeff -- /I am a non sequitur. Beware, the contents were packaged where peanuts are processed./
Ayen Designs 388 Bullsboro Drive #105 · Newnan, Georgia 30263 404-271-9734 Web:ayendesigns.com <http://ayendesigns.com/> Blog: theAccidentalCoder.com <http://theaccidentalcoder.com/> Drupal: j. ayen green <http://drupal.org/user/367108> (367108) IRQ: j_ayen_green IM (Yahoo) baalwww (MSN) baalwww@yahoo.com Skype: ayendesigns | Facebook: ayendesigns | Twitter: @ayendesigns
Ayen Designs is the computer services division of
On Tuesday 03 May 2011, jeff@ayendesigns.com wrote:
I've spent a couple days at this point trying to discover how something is being done, without much progress. I'd walk through it in debug, but the environment for this site is wamp and I'm equally unsuccessful getting phpStorm and xDebug to play nicely in Windows, so far.
A D6 site using panels. A view producing a block. The panel page loads the block and overrides its path (well...technically not, but that's what the setting says) to be domain.com/music
Have a module that implements pre-process, as well as registering a callback. The path in the callback is /music-xml. The pre-process implementation checks for arg(0) containing music-xml. The module registers its templates directory, which contains a template for page-music-xml.tpl.php. When invoking /music, the result is the callback or music-xml fires, arg(0) contains music-xml, and the template fires. The browser path, meanwhile, still says /music
The problem is that I need to change the content type used in the view from music to something else, at which point it all breaks...arg(0) shows up just as music then, not music-xml.
Can you get rid of the '-' in music-xml? I think it might be interfering, just a guess.
I've grepped the code, exported and grepped the db, clicked all the clickables (I think) in panels, check path aliases, strongarm ... I can't figure out how it's being done.
Jeff
-- ----------------- Bob Hutchinson Midwales dot com -----------------
In the panels area, there is a part called ‘selection rules’, and other areas that can control arguments, or contexts, or many other items. You might try digging through the panels area for your culrit. Joel From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of jeff@ayendesigns.com Sent: Monday, May 02, 2011 7:34 PM To: development@drupal.org Subject: [development] The Mestopheles path I've spent a couple days at this point trying to discover how something is being done, without much progress. I'd walk through it in debug, but the environment for this site is wamp and I'm equally unsuccessful getting phpStorm and xDebug to play nicely in Windows, so far. A D6 site using panels. A view producing a block. The panel page loads the block and overrides its path (well...technically not, but that's what the setting says) to be domain.com/music Have a module that implements pre-process, as well as registering a callback. The path in the callback is /music-xml. The pre-process implementation checks for arg(0) containing music-xml. The module registers its templates directory, which contains a template for page-music-xml.tpl.php. When invoking /music, the result is the callback or music-xml fires, arg(0) contains music-xml, and the template fires. The browser path, meanwhile, still says /music The problem is that I need to change the content type used in the view from music to something else, at which point it all breaks...arg(0) shows up just as music then, not music-xml. I've grepped the code, exported and grepped the db, clicked all the clickables (I think) in panels, check path aliases, strongarm ... I can't figure out how it's being done. Jeff -- I am a non sequitur. Beware, the contents were packaged where peanuts are processed. Ayen Designs 388 Bullsboro Drive #105 · Newnan, Georgia 30263 404-271-9734 Web:ayendesigns.com <http://ayendesigns.com/> Blog: theAccidentalCoder.com <http://theaccidentalcoder.com/> Drupal: j. ayen green <http://drupal.org/user/367108> (367108) IRQ: j_ayen_green IM (Yahoo) baalwww (MSN) baalwww@yahoo.com Skype: ayendesigns | Facebook: ayendesigns | Twitter: @ayendesigns Ayen Designs is the computer services division of
On 5/2/2011 5:34 PM, jeff@ayendesigns.com wrote:
A D6 site using panels. A view producing a block. The panel page loads the block and overrides its path (well...technically not, but that's what the setting says) to be domain.com/music
The 'override path' really means to change the "view path" so that when you click on something in the view (such as an exposed filter or a more link) it goes to the path you specify. It doesn't change anything in arg(0) or $_GET['q'].
Have a module that implements pre-process, as well as registering a callback. The path in the callback is /music-xml. The pre-process implementation checks for arg(0) containing music-xml. The module registers its templates directory, which contains a template for page-music-xml.tpl.php. When invoking /music, the result is the callback or music-xml fires, arg(0) contains music-xml, and the template fires. The browser path, meanwhile, still says /music
The problem is that I need to change the content type used in the view from music to something else, at which point it all breaks...arg(0) shows up just as music then, not music-xml.
I've grepped the code, exported and grepped the db, clicked all the clickables (I think) in panels, check path aliases, strongarm ... I can't figure out how it's being done.
I can't either. The thing to check is aliases, since aliases are the biggest source of confusion about path. But if it's aliases I can't see how changing the view would affect it in the slightest. arg(0) looks directly in $_GET['q'] -- I can't imagine anything that's actually going to change $_GET['q'] to look like music-xml when the path is in fact music. So there's got to be something custom, somewhere, that's doing it.
participants (5)
-
Bob Hutchinson -
Don -
Earl Miles -
jeff@ayendesigns.com -
Joel Willers