Hello guys,
I've recently downloaded Drupal 7 and absolutely happy with it as it's really amazing. But I've got a problem in configuring it to work properly with Adobe Dreamweaver CS5. As you know DW CS5 has a feature to recognize dynamically connected files so that you can have a live preview of all the changes you apply to templates files in the internal browser. While I am working with Drupal 6 Dreamweaver has no problem with discovering those dynamically connected files. Now I'm trying to do the same with my new Drupal 7 site, I configure my testing server the similar way as I do it for Drupal 6 website (actually I follow the testing server set up according to this post http://www.adobe.com/devnet/dreamweaver/articles/dw_working_with_drupal.... under Step 1: Add a new Drupal site to Dreamweaver CS5 ) and this time upon opening any php file it also offers me to discover dynamically connected files, I push "Discover" button but now it says that dynamically connected files could not be recognized as I configured my website for this server incorrectly. I have really no idea why that happens and haven't found any answer in Google.
So, if anybody encountered the same problem and knows the solution please help! ;)
Thanks a lot!
Comments
What theme are you using?
What theme are you using?
--rj
Hi, I'm using just the
Hi, I'm using just the default Bartic theme. It is actually able to discover dynamically connected files when I open the theme's files like node.tpl.php or page.tpl.php. In this case it discovers .css and .js associated files only.
But what I want to do is to discover dynamically connected files for index.php in the root directory. When I do so with Drupal 6 it discovers all the files like .css, .engine, .inc, .js, .module, .xml and what is important for me it also discovers .php files. Thus I can see all the .tpl.php files (block.tpl.php, node.tpl.php, page.tpl.php, template.php, node-story.tpl.php, etc.) used to render my theme in one place.
In Drupal 7 case it fails to do so with index.php.
another solution
maybe im beating a dead horse buy here's another fix, pretty much pointing the Dreamweaver test server web url to: "http://localhost/" and point the server location to the folder that contains your drupal installation, along with an advanced settings adjustment, its all in the YouTube video hope it helps..
Same Problem
Hi,
I am also facing the same issue. Please help!
Perry.
Same issue - can't get DW CS5
Same issue - can't get DW CS5 to work with Drupal 7
subscribed
After having the same problem
After having the same problem with Drupal 7 and CS5 I did allot of research and found this info.
If you look at the issue bellow, it begins with poste #27 by the use david3605, which is someone who works for Adobe. If you continue and read others answer to his posts and his answers too, you will see some good info.
http://drupal.org/node/711650
Looks like in Drupal 6 you could go do you site using "www.example.com/index.php" or "www.example.com". If you try "www.example.com/index.php" for the new Drupal 7 you will see that it doesnt allow you to do this. This is where we are stumbling into the problem with CS5 and Drupal 7.
It also looks like they have a patch that changes this and works but didnt get released in the main Drupal7 yet.
Im going to see if I can patch it myself, maybe just while i design, then once im done reverse. Time to play!
Found a work around
Ok I figured a way to put the patch in and make it work. I cant guarantee that this doesnt break anything else, so maybe revert back to the original file once your finished working with CS5.
What I did was create a copy of the "bootstrap.inc" file, modified it with the patch and named it to "bootstrap-mod.inc". So that leaves me with 2 files, bootstrap.inc and bootstrap-mod.inc. When i want to work with CS5, all i do is rename the files;
bootstrap.inc -> bootstrap-original.inc
bootstrap-mod.inc -> bootstrap.inc
All in all it doesnt matter how you do it, just make a backup in case.
Here is what i changed;
file: includes/bootstrap.inc
version: (at the begining of file) v 1.462 2011/01/05 06:17:58
line: 2520 (right after this line of code "$path = substr(urldecode($request_path), $base_path_len + 1);")
Add a new line between 2520 and 2521
add these lines:
I hope the patch will be worked into Drupal 7 soon enough. Let me know how this works and if you have any questions.
Tried your method
Hi Sim,
thanks a lot for the reply!
I've just tried what you've advised. Yea, it does work now. It now discovers all those php template and other files I've been after. Although with limited functionality. This time I only can have a live preview of the homepage ;) I cannot see changes I make to different content types live in the browser as only a home page shows up no matter what deep url I'm trying to access.
Anyway it's already a good way to have a quick note of all the template files on which your theme depends. Then you just revert to the original file and continue working in the normal mode.
Actually, what I've just noticed is that upon reverting the bootstrap.inc back to the original version all the files which were discovered do not disappear if you haven't closed Dreamweaver yet. So you now can access them quickly and modify while having a live preview of any page you need.
Hope the guys behind Drupal will face this issue and in the upcoming releases it will be fixed.
Thanks for the info
ILLIA, thank you for your answer too!
For myself, im new to drupal and dw cs5, maybe coupel weeks. But I've been into html, css, php for quite a while.
As for the pages, once I change to the mod file, I can load the files and i can follow links within the live view by either right clicking and "Follow link" or entering the address in the address bar, without ever having to change the file back to the original. Is it at that point you say you cant navigate?
Again please bare with me, im on day 2 of using DW to play with Drupal themes.
Simon
Ha, I got it! :))) I just put
Ha, I got it! :))) I just put the code you had specified in the wrong place. To be more exact I put it after } on line 2520 and it got only limited functionality as I described earlier. But instead I needed to put it before }. Now it works how it should work.
Just to make it all clear for everybody I'll put the new lines of code in the context:
Starts from line 2518 , file: includes/bootstrap.inc
Thanks again a lot to Simon!!! Now I (we all) can start real Drupal 7 theming in Dreamweaver CS5 with no unnecessary hassle)))))
Perfect! No need to thank me,
Perfect! No need to thank me, I'm just glad i could contribute something back.
dreamweaver crashes.
Hi There,
I would like to know if anyone is also facing the same issue, or it is just me that dreamweaver crashes frequently while I work on my d7 site (I open my index.php in order to see the site and then work on my style.css from there on). I have applied the changes as mentioned above.
thanks,
Perry.
Greatly appreciated
Simon
Can't remember how many variations of site set up I went through...
Greatly appreciate your fix! Works like a 'dream'
Cheers
TLD
Dreamweaver crashes
I am also having the same problem. i have done the fix. But when I try to edit the css Dreamweaver crashes. Has anyone found a solution to this problem? I am using DW CS5.
Hello there, I am also having
Hello there,
I am also having the same issue. CS5 crashed while I am trying to edit the CSS (theme css file) in Live view mode. However, it won't crash if I update the CSS file directly.
Version: DW CS5 V11.0 Build 4964
Thanks
+1 DW CS5 crashes when
+1
DW CS5 crashes when attempting to edit a css file using the css styles panel.
Im not sure what to say, I
Im not sure what to say, I tested it and i can edit the styles using the CSS styles panel, save all, sync local to server, then refresh my live website and see the changes.
Maybe make sure you edited the correct code?
crashing!
just upgraded to CS5.5 - and it stopped crashing :-)
crash
same issue here, dont understand why...i cant find anything on the adobe page :(
Same as above. Not sure why
Same as above. Not sure why it would be doing this. Ill try posting my file in case people are making typos.
This is my moded bootstrap
This is my moded bootstrap file. See if this helps out.
http://rapidshare.com/files/452086981/bootstrap.inc
Thanks Simon, but it doesn't
Thanks Simon, but it doesn't help for this crash issue.
+1 for the crash problem
Having the same problem as everyone else
subscribing
Dreamweaver crash seems only
With Dreamweaver I also get the error: An unknown error occured while discovering dynamically-related files'. - even though my server setup is correct.
Have tested WAMP and Acquia Drupal and find both setups crash
Yes it is interaction with the CSS panal which causes it, but there doesn't seem to be any particular trigger. Sometimes it crashes immediately, at others, it's possible to make a few changes before a crash.
---
Paul Driver
www.easable.uk
Ilkley, West Yorkshire, UK
Adobe Help
I seem to remember that there was somebody from the Adobe Dreamweaver team on the forum somewhere. Maybe he can help
---
Paul Driver
www.easable.uk
Ilkley, West Yorkshire, UK
Crashing on .css edit
grrrr - just when I thought It was going to work - crash!
Anybody resolved this yet - about to get up Adobe about it.
m
upgraded to CS5.5
upgrade stopped the crashing :-)
Possible solution from Adobe
This looks the same as yours but I thought I would post it anyway.
Link: http://kb2.adobe.com/cps/888/cpsid_88838.html
Thank you for your post
Same Issue, Adobe should fix it now!!!!
Hi everyone, I have Windows 7 with XAMPP & Dreamweaver CS5 installed, I also have the same problem as you lot 'Dreamweaver crashes when altering CSS using the styles panel whilst in live-view with Drupal 7'. Something I have noticed is that Dreamweaver only crashes if you are logged into the Drupal 7 admin within the live-view browser. If you are not logged into the site it edits the CSS just fine without crashing. I feel so cheated by Adobe as I feel they will not fix this bug even though it says on the box 'Intergrate with content management frameworks including Wordpress, Joomla!, and Drupal.' When I rang them, I asked for an explanation and all they could say was upgrade to CS6 for a discount price but why should I do that for this one bug. I really feel adobe has let us down. They should at the very least provide an update to fix this issue. Sorry for my rant :-)
Also check this out: http://forums.adobe.com/message/3792285