Design view in DW CS3 with php ?
I am evaluating DW CS3 having previously used text editors to
create simple php based sites.
I'm having problems understanding if DW can show a design
view of a static php page,that uses include php files to provide
the html code for the top of the page and the bottom of the page.
So something like
<?php include('includes/top.php'); ?>
<div id="main">
<h1>Page under construction</h1>
<div class="page_link"><a href="hw.php"
title="HW">Hardware</a></div>
</div>
<div id="bottom">
<?php include 'includes/bottom.php'; ?>
</body>
</html>
top.php and bottom.php include some standard images/text I'm
using on several pages. They contain standard html.
Would I expect DW to show what this should look like in
design view ? If so how do I get this to work ?
> Would I expect DW to show what this should look like in
design view ? If
> so
> how do I get this to work ?
No, DW will not show this page in the way you are hoping.
Why? Because the
page doesn't contain <html>, <head>, or
<body> tags. Sure, you have them in
the include file, but DW won't like that. Must you have those
tags in the
files being included?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"tonyb61" <[email protected]> wrote in
message
news:fv4sav$npe$[email protected]..
>I am evaluating DW CS3 having previously used text
editors to create simple
>php
> based sites.
> I'm having problems understanding if DW can show a
design view of a static
> php
> page,that uses include php files to provide the html
code for the top of
> the
> page and the bottom of the page.
> So something like
> <?php include('includes/top.php'); ?>
> <div id="main">
> <h1>Page under construction</h1>
> <div class="page_link"><a href="hw.php"
title="HW">Hardware</a></div>
> </div>
> <div id="bottom">
> <?php include 'includes/bottom.php'; ?>
> </body>
> </html>
>
> top.php and bottom.php include some standard images/text
I'm using on
> several
> pages. They contain standard html.
>
> Would I expect DW to show what this should look like in
design view ? If
> so
> how do I get this to work ?
>
>
Similar Messages
-
Design view in DreamWeaver CS3 disabled for CSS & Java
I currently use Adobe Dreamweaver CS3, and only some files have the option to view them in code AND in design view. This works for most files (HTML, PHP, etc). However, anytime I create a new CSS or Java file, the design view is disabled:
I have already tried the two other solutions I've found in this forum.
First I tried Preferences > File Types / Editors, and I deleted all of the file types in the "Open in Code View" menu (pictured below).
I restarted DW, and it didn't work.
Then I tried several steps to re-create the Configuration folder (which it did, but the problem remained) listed here: http://kb2.adobe.com/cps/401/kb401118.html.
Still nothing. HTML, PHP, ASP and all other files have the Design View and Split View available, but CSS and Java do not. I would really like to use DW to start editing CSS, but do not know it well enough to write in code and therefore could really use that handy Design View so I can learn as I tweak it.
Any help much appreciated - thanks!HTML, PHP, ASP and all other files have the Design View and Split View available, but CSS and Java do not.
That's correct. That's as it should be.
A CSS file contains a bunch of text only CSS rules. Javascript is text-only script. There's no layout to see for CSS and JS files in Design and Split View so they're disabled.
Files with layout e.g. .htm, .php have Design View because they're web pages with a layout which can be viewed.
I would really like to use DW to start editing CSS, but do not know it well enough to write in code and therefore could really use that handy Design View so I can learn as I tweak it.
Open any .htm or .php (or other) web page and its associated CSS file.
Then tweak the CSS either via Code View in the CSS file, or using the DW CSS Editor when viewing the .htm/.php file, and see the formatting changes applied in Design View in the .htm (or .php) file.
Do not rely on DW's Design View as an absolute reference for pixel perfect accuracy. It will always be an approximation only to assist visually oriented web designers while editing.
Always test all CSS rules and edits in a range of browsers. Browser support for CSS rules and effects varies. Not all browsers support everything on offer in CSS1, CSS2 and CSS3. -
Floated element breaks Design view in Dreamweaver CS3
I've tried searching for this issue but haven't found a fix yet and could use some help.
I am redesigning a site and am adding a fluid box to the page. This floated element breaks Design View in Dreamweaver CS3 but appears correctly in the Firefox, Chrome, and IE. I can get the element to appear correctly in Design View after I make minor changes to the page's HTML or CSS, however it always breaks when I save the file.
I've tried many work-arounds including adding an absoutely defined container div, altering the various div sizes, adding <div class="clear"> before and after the element, to no avail.
Ideally, I would like to have page appear correctly in Design View so that others in my lab can easily update the page (and not come to me with repeated questions!).
I've included screen prints of how it looks in Design View and how it look in Chrome.
THANKS! J
Design Time error:
Web Browser - correct view:I'll try CS4; however my main reason for finding a fix is so that others updating the page (w/ CS3) will be able to do so w/ the WYSIWYG editor that we purchased. We will not be upgrading to CS4 anytime soon either.
Thanks -
Design View Not Displaying Pages with any Formatting
I asked this question in another thread and somebody locked it. The question is not answered. My Design view is not displaying my files with any formatting. I can view them in a browser, but not in Design view where I can see my work as I'm working. While I can upload files to the remote server (host provider) the links got screwed up so files on the remote server don't show any formatting either. Every link, thousands of links, are off by one word (folder) from where my site was residing on my hard drive. When I try to make a change to the links manually then I can no longer view them with any formatting in my own browser either.
On my local broswer on my PC the address line reads: http://localhost/folderNameIneedToDelete/filename.php
On the live website (for my homepage) the address line reads http://websiteName.com/folderNameIneedToDelete/index.html
(Here is the text from another thread that was improperly locked)
I just added a remote server to my site so I could begin uploading files to my host provider. When I saved the setup I saw a message popup about the cache changing. Now when I try to view a file in Dreamweaver in Design View it doesn't recognize any of the external style sheets. It displays with no formating.
I can still view the pages in a browser and they look appropriate, just not in Design View where I can continue working on the site as I've been doing.
How do I get Design View to display my pages properly again using the .css pages that apply to each page design?
Thanks,
RobertMurray, thanks for all your assistance.
Before I edit thousands of links again I want to confirm I've interpreted all your info correctly. If I setup everything as follows all my pages should work in Design View, browsers accessed from the "Preview/Debug in browser" icon in Dreamweaver and most importantly in a live environment at a host provider:
Site Setup
Site - Site Name: anything including spaces
Site - Local Site Folder: C:\wamp\www\rootfoldername\
Servers - Testing Server (Testing: checked)
Server Name: Testing Server
Connect Using: Local/Network
Server Folder: C:\wamp\www\rootfoldername\
Web URL: http://localhost/rootfoldername/
Remote Server - Maintain synmchronization information: checked
Remote Server - Automatically upload files to server on Save: unchecked
Remote Server - Enable file check-out: unchecked
Testing Server - Server Model: PHP My SQL
Version Control - Access: None
Advanced Settings - Local Info - Default Images Folder: C:\wamp\www\rootfoldername\_images\
Advanced Settings - Local Info - Links relative to: Document
Advanced Settings - Local Info - Web URL: http://sitename.com/
Advanced Settings - Local Info - Case-sensitive links checking: unchecked
Advanced Settings - Local Info - Enable Cache: checked
Advanced Settings - Cloaking - Enable Cloaking: checked
Cloak files ending with: unchecked
Advanced Settings - Design Notes - Maintain Design Notes: checked
Advanced Settings - Design Notes - Enable Upload Design Notes for Sharing: unchecked
Advanced Settings - File View Columns - Name: Built In - Show
Advanced Settings - File View Columns - Notes: Built In - Hide
Advanced Settings - File View Columns - Size: Built In - Show
Advanced Settings - File View Columns - Type: Built In - Show
Advanced Settings - File View Columns - Modified: Built In - Show
Advanced Settings - File View Columns - Checked Out By: Built In - Show
Advanced Settings - Contribute - Enable Contribute compatibility: unchecked
Advanced Settings - Templates - Don't rewrite relative document paths: checked
Advanced Settings - Spry - Asset Folder: C:\wamp\www\rootfoldername\SpryAssets\
Site File Structure - place files in the following folders:
C:\wamp\www\rootfoldername
webpages (html & php)
_images - [folder] (there are numerous image folders beginning with _images) containing .jpg and .png files
_includes - [folder] containing attached .php files for the header, navigation and footer attached to every page
_scripts - [folder] containing .js script files
_styles - [folder] containing .css files (external style sheets)
Connections - [folder] contains one php file (databasename.php)
SpryAssets - [folder] containing system generated .js files .css files and .gif files
ZendFramework - [folder] - I have no idea if the files in this folder are necesary and why it was placed here many months ago
** Links **
Remove the leading / from every link in every file
HTML5 shiv
using an external link will always reflect the latest changes(Question) - If I link to this .js file externally at google instead of linking to a current copy in my _script folder could future changes to this external .js file cause future problems with the webpages that have this file attached?
Remote Server
Setup a remote server using the ftp address settings provided by the host provider. (Question) Any settings defined for the future Remote Server (the first remote server was deleted when problems occured) will not cause any harm to anything involving the Testing Server such as viewing webpages in Design View, browsers accessed from the "Preview/Debug in browser" icon in Dreamweaver and will not cause any harm to any files eventually put to the host provider via that future Remote Server. Is that correct?
Murray, thanks again for your help,
Robert -
Code in will not appear in design view window of CS3 :(
When I was using CS2 and placed code in an HTML page like
this: <$JobTitle$> it would show up in the Design
window...but in CS3 it's invisible to the design view/window. Is
there any way to get it to show again? It would be a HUGE
help!!!Yes, I do have it checked. It makes no difference with these
tags, unfortunately. :(
And I will admit, they'll be a dozen or so very happy people
if you can help me figure this one out.
I tried to compare all the settings under preferences between
CS2 and CS3, and they look the same. That's definitely why I'm
asking teh question here. -
Design view goes blank [CS3]
I usually work with split code + design view
When working with certain files and make a change in code
view(or in a linked .css), and then click in Design view, the
Design view goes totally or partially blank. Either nothing appears
at all, or the content appears up to some point, and the rest up to
the end is blank.
Once this happens, there is absolutely no way to make the
'hidden' content visible. Tried to switch to another file, to
select code in code view, to edit in code view or even in design
view - no go. I have to close / open the file, and then it appears
normally. But indeed I can't do this every minite, is there some
solution known?
There is no stuff with visibility set to hidden or alike, if
the content is displayed - it's displayed correctly. Also looks OK
in all major browsers.
ThanksThis often happens when you have added such garbage code that
DW cannot
figure out what to do with it. For example, adding a
<body> or </body> tag
in the middle of a page can do such things. Might that be
what's happening
for you?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"harpo_" <[email protected]> wrote in
message
news:f2nq7t$dse$[email protected]..
>I usually work with split code + design view
> When working with certain files and make a change in
code view(or in a
> linked
> .css), and then click in Design view, the Design view
goes totally or
> partially
> blank. Either nothing appears at all, or the content
appears up to some
> point,
> and the rest up to the end is blank.
> Once this happens, there is absolutely no way to make
the 'hidden' content
> visible. Tried to switch to another file, to select code
in code view, to
> edit
> in code view or even in design view - no go. I have to
close / open the
> file,
> and then it appears normally. But indeed I can't do this
every minite, is
> there
> some solution known?
>
> There is no stuff with visibility set to hidden or
alike, if the content
> is
> displayed - it's displayed correctly. Also looks OK in
all major browsers.
>
> Thanks
> -
Design view grayed out, inaccessable. The file has an HTML
extenstion. Files I had previously been able to use Design View on,
Design View no longer works. I suspect I inadvertantly turned it
off, but how?Problem resolved by renaming file extention from HTML to HTM
- Why in Wilbur's name this fixed the problem, I haven't a clue.
Time to go put paint on my face and start dancing with
twigs. -
BEA workshop design view is NOT consistent with the actual application
When I move the cursor to one jsf component in the design view and hit the space bar several times, I can see the component is being moved to the right. However, when I deloy this application to the server, this change does NOT actually apply to the page. Any suggestions?
Thanks,
JimmTry "Shift + Space" to introduce white space in design view and generate respective in the source code.
-
Designing View to select Date with Time
Hi,
How can we design the view to select the date along with time?
We know that we can provide drop downs for hours, minutes and seconds.
Is there any alternative to display UI element to select the date and time. I am in 7.0 SP17
ThanksHi Tatayya Marni,
For selecting the Date and Time u can try a workaround. First create a simple type of type date and bind it to an Input Field so that the date can be captured and for the for the time u can use the System Date and using the same SystemDate u can get the Time in Hours, Minutes and Seconds.
Eg :- store the SystemDate in a Date variable and to get the hour u can use Date.getHours(), getMinutes
Date dt = new Date(System.currentTimeMillis());
dt.getHours(),dt.getMinutes(),dt.getSeconds());
Hope this works dor u.
Regards,
Poojith M V -
View display image BLOB with PHP!
I using..
$consulta = oci_parse($conexao,"select photo from userp where usrph_status = 'A' and id = :didbv");
$didbv = $_POST["id"];
oci_bind_by_name($consulta, ':didbv', $didbv);
oci_execute($consulta, OCI_NO_AUTO_COMMIT);
while (($row = oci_fetch_array($consulta, OCI_ASSOC)) != false) {
$arr = oci_fetch_assoc($consulta);
header("Content-type: image/JPEG");
$result = $arr['PHOTO']->load();
print "<img src='".$arr['PHOTO']."'>";
print $result;
echo $result;
What appears in the result page is:
This image contains errors and can not be displayed.
How to fix this?- With that content type, you should be sending only binary data, not the HTML "<img" text.
- You have both a print and and echo.
Look at script 105 on p.236 of The Underground PHP and Oracle Manual | Homepage -
PHP icon not showing in design view
I just ordered Studio 8 and currently working on the demo
version of Dreamweaver 8. I had been using FrontPage for many years
and I finally hit it's limitations. I am creating new pages from
scratch and not importing any of my older FrontPage web pages. I am
coding in PHP and noticed this nice php icon that shows in my
design view of where all my php code is. This FrontPage could never
do. I have a table that is doing multiple "include" calls. I am
able to successfully add 2 lines of code, which generates two php
icons in my design view. When I try to add a 3rd line of php code,
it removes all of the nice php icons in the design view. For the
rest of the document, if I add more code, then the icons will not
show up. The PHP is in the code view, but the design view is no
longer showing the php icon. Does anyone have any ideas on how to
make them show up permanently? This is one of many great features
of Dreamweaver that drove me to purchase it.Thank you for the quick response. I went home and took a look
at my code. It matches pretty closely with what you offered as a
suggestion. That didn't seem to fix the issues I am having. Maybe
there is something I am missing that will stand out for you.
Here is a sample of it:
<td>Item Review 1</td>
<td><div align="center"><?php include('
http://www.mytestsite.com/review/stars_only_by_item_id_listing.php?item_id=5');
?></div>
</td>
<td><div align="center"><a href="
http://www.mytestsite.com/review/index2.php?item_id=5">
link</a></div></td>
</tr>
<tr>
<td>Item Review 2</td>
<td><div align="center"><?php include('
http://www.mytestsite.com/review/stars_only_by_item_id_listing.php?item_id=6');
?></div></td>
Thank you for any help you can offer. This one is really
stumping me. Could it be that I am using the demo version and not
the full version? -
When working in Design View in DW CS3 the page takes an age
to change when highlighting links or placing my cursor over text.
The only way that i can fix this is if everytime i move my mouse to
where i wish to be in design view I click F5 to refresh the page so
i can see the elements. The machine is running Win Vista Ultimate.
I also have DW CS3 on a Win Xp machine and it works fine.
Can anyone help with a solution.I have 4 sites I maintain. My local copy of the files were on an hard drive that didn't crash. So file structure did not change. DW Template file under a subfolder in EACH site.
I did a small edit on one of the pages and uploaded to the web and it shows all the images as it should.
Two of the older website have images defined in the template file not in the css file, they show correctly in design view.
The two newer sites use a template that has background images defined in the css file- those are the ones that are not showing the images in the pages when displayed in design view.
Cameron -
can`t understand why, but, when I open php file which
contains some html formatting or not, (e.g. in *.html.php files of
CMS Joomla/Mambo) design view in DW-8 is inactive. When I rename
file to .html extension and open it then, design view is active and
I can work in WYSIWYG mode, but in previous versions everything has
been OK.
I was not need to rename files each time.
Is there solution or newest version of DW can not work in
design view with files exept of html extension?Thanks for the tips but... design view won't open at all,
there's no errors or anything like that, it just -wont open-. It
wont let me click "design view", it just remains stuck in code
view, but it allowed me to view design view last week.
quote:
Originally posted by:
Newsgroup User
the "WVA - News" appears to be the include- and is a complete
html document
instead of just what is correct for where it's inserted.
rough fix-
suggest using an external stylesheet for the site, so you
don't need to have
each style in the head section. This will also reduce the
number of styles
and keep them consistent.
edit the WVA - News file. Select just after the <body>
tag and erase to top
of file. Erase </body> and </html> at the end of
file.
(tip- attach a "design time" stylesheet to the included file
to see and
select the styles of the new external css file)
or- brute force fix if don't care about syntax- go into dw
preferences/invisible items and turn off rendering of
included files. That
doesn't fix the problem, just prevents the errors from
confusing design
view.
> Are you using includes or scripted includes?
>
> there are several pairs of <body> tags, which will
totally confuse dw design
> view.
>
>> Ah, they're .php - here's the site so far if it
helps at all:
>>
>>
http://www.walsallva.org.uk/NEWSITE/index.php
>>
>> This worked fine in design view last week, but
doesn't this week. =(
> -
PhpBB2 source code does not show in design view /CS3
I would like to customize a php bulletin board.
The default bulletin board page does not show in design view.
Is there a way to do it , such that php code can be written
by DreamWeaver via the design view ?> The files I am trying to edit, or that is think I should
be trying to edit ,
> are
> index.php , and in the includes file template.php
If I am sorting this out correctly, which i am _not_ sure of
at the moment:
those aren't .tpl files.
they are .php files, and are part of the forum. They aren't
displaying in
design view because they are all php.
You need to find and edit the template files.
In previous link given:
http://www.phpbb.com/community/viewtopic.php?t=10764
<q>
So where do I find these great 'templates'?
Look in /templates/subSilver (thoroughout the FAQ I will be
using subSilver,
the default template. If you are using a different template
then change the
folder you look in accordingly). You will see a collection of
files there.
The templates are the ones with the file extension '.tpl' The
majority of
files in that folder are .tpl files. </q>
strongly suggest you make a backup copy of anything you try
to touch.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Is it possible to print from design view in CS3
I've got a summary print out / display page for a CF application that I'd like to be able to print out in Design view.
DW CS3 only seems to print the code page and I don't want to print from a browser as that will only show the options currently selected - I'm after having all options displayed.
Is it possible? Any suggestions other than printScreen?No, you can't print from Design view. It seems as though screen capture is your best option,
Maybe you are looking for
-
How do I install an app on the application page in Lion?
How do I intall additional apps in the launchpad in Lion?
-
AppleScript InDesign CS5.5 Syntax Error
Hi, this script runs fine as is but when I got to edit, it gives me error when compiling. Error I get is on following 2 lines with as text part. If I take it out, I don't get error but script doesn't run. Script was created on a older version of M
-
Where do i go to have ipod repaired...
i need a lot of help. I need to know where i can go to have my ipod 5th generation 30 gb repaired. It would be nice if it wouldn't cost too much. If it is unavoidable to pay, then thats fine with me then. The problem is that the LCD screen is cracked
-
Performance impact on SQL DB in Virtualized servers
So, your performance monitoring indicates that it's bottlenecked on CPU, correct? What about the physical host? Does that have spare CPU cycles to give?
-
Please help to write a query in this format
Sir, I am having a table like following Deptno job 10 aaa 11 bbb 12 ccc 10 ddd 11 eee 12 ffff 10 ggg deptno-number job- varchar in the above table I want the out put like following in a single query ,is it possible. 10 aaa,ddd,ggg (concatenation of a