Design view + stylesheet on include file

I'm building a site that uses server-side include files. I
refer to CSS class names in these include files, but the actual
stylesheet link is on another page. In design view, the editor does
not reflect what is in the stylesheet, making it difficult to
visualize and edit.
Is there a way to have the editor recognize the stylesheet
globally for the project? I don't want to put redundant stylesheet
include statements on every include file just to have the editor
work properly.
- James.

On Thu, 31 Jan 2008 15:55:22 +0000 (UTC), "Diodeus"
<[email protected]> wrote:
> Is there a way to have the editor recognize the
stylesheet globally for the
>project? I don't want to put redundant stylesheet include
statements on every
>include file just to have the editor work properly.
Apply a design-time style sheet. Press F1, in the index,
find:
Design-Time style sheets, using
Gary

Similar Messages

  • Can not see the design view nor the java file in CentOS

    Hi all. I've recently installed JSC2 in CentOS. I find this tool really useful. But I have a problem with the design view and the java file view. At the beginning, when I first create a Page1.jsp, I can see the design view and the java view with no problem. I run apps correctly. But after a while, I get a "null pointer exception" error and I am able to see only the jsp view, not the others. I don't even have the option to see the Design and Java views. And the page icon in the project window appears to be darker than a well working page. I'm not really sure what sequence of actions I do to get this error, it just suddenly happens. What I've done so far in JSC2 is to link to pages in the Page Navigation view. It works fine for a while, but after a while I get the error I've described.

    Yes, if I do that It happens the same. I've tried everything. Now I'm using Window$ 2000 and it works properly. Thanks anyway.

  • Can't see design view after changing connections file from localhost to a remote host & back again

    I was using localhost to test files before changing the connections document over to a remote host, since I couldn't get dreamweaver to connect to the remote host, I changed back to localhot. My files are all .php files. This is a dynamic site. After I changed my connection back to my local host my design view no longer works. It's competly grey with 3 small icons at the top on the left. I can view in live view and I can view in the browser. But no longer in design view after being able to for 6 months. The 3 icons are a hard drive case, a document, and a link symbol . When I click in code view the design view turns grey when I click in design view it turns white. I am using wamp for the localhost, Windows XP home, Dreamweaver CS5. Can someone please tell me how to go back to design view. This happens with any & all files including non dynamic .html files. Also having a problem connecting to my remote host. using godaddy, and they have tried with me for 2 hours to connect, I just keep getting password is incorrect. Thank you for any help, Stacey

    I would also recommend clearing the Site cache, which may help with the connection failure. To do so, choose Site > Advanced > Recreate Site Cache.
    After doing so, be sure to go back into your Site Setup, and make sure the FTP address, user name, and password are all correct. (Click the Test button in there to verify.)
    If that doesn't help with getting connected to your server, you might try an alternate FTP client (e.g. FileZilla) to just make sure you are entering the right connection information. It could be that GoDaddy is having some issue, or maybe you just mistyped something (I know I do this often when I type too fast).
    As for the issue with Design View, try clearing the Dreamweaver cache. Instructions are here: http://forums.adobe.com/thread/494811
    You might also try toggling the location of Design View. That is, when in Split View, choose View > Design View On Left. Then, choose that menu option again to reset the location back to the right.
    Resetting the workspace might also be recommended. Window > Worksapce Layout > Reset 'name of current workspace'

  • Design View not displaying external files...HELP!

    This is my second attempt asking for anybody's help. I'm using Dreamweaver 8.0.2 (OS X 10.4.11) and when I open "any" of my local files In "Design View" NO external files loads. Here's what I've done so far to no avail:
    Delete "site cache"
    Delete all pref files
    Made sure "Display External Files" is check
    Made sure "Style Rendering --> Display Files" is check (using screen media type)
    Check that my firewall is disabled
    Renamed local root DIR of site file
    Searched the web, forums, etc...none of the answers worked
    Reinstalled DW 8.....TWICE!
    2 weeks ago I did updates to my website and everything was just fine. And now, nothing is working. All I can see is text and all of DIV blocks...but all external CSS and INC files fails to load. Been trying to fix this for 2 days now. Can anyone "please" give me some ideas to fix this problem.

    Hi - without seeing the actual page code, I'll take a stab that possibly you've lost the link to your stylesheets...?
    If you view the code, somewhere inside the "head" tags (generally right under the "Title", you should have a reference to any of your external stylesheets/images, etc.) Something like this:
    <link href="name_of_stylesheet.css" rel="stylesheet" type="text/css" />
    If no images are showing up as well, my guess is that you've moved the page (or the images and stylesheet) into a different folder/or subfolder without updating the links.  Any time you move a file, it should be done within dreamweaver (and it will always ask if you want to update links). If you move a file without using DW, it will definitely break all links, and no amount of re-installing, re-caching, etc. will fix it (sorry)...
    If this is the case, the best way to rectify would be to move the file back to where you had it... if this isn't the reason for the broken links, you'll need to manually re-update all of the links because something else has broken the linkage... (sorry again...)
    Hope that helps,
    Jesse

  • DW 11.0 Build 4993 - why can't I use Design view with an HTML file?

    Subject line basically says it all: I started a new HTML file, but I can't switch to design view.  Anyone have any idea why?  Thanks!

    Which operating system? Mac or PC?
    Can you post a set of reproducible steps so we can follow what you're doing?

  • PHP Include not showing in design view

    One of the advantages of Dreamweaver is the ability to see
    the result of your code in the Design view. I am building a
    template set for a web site I'm starting, and will be using the
    template files in various paths and path depths. As a result, I am
    not interested in using relative paths for things like PHP
    includes.
    If I use the following code for an include, the 'main.php'
    file is included in the design view:
    <?php include('/includes/templates/main.php'); ?>
    When uploaded to the Apache server, this does not display
    properly, because it is looking for the file in the user root, not
    the Apache document root.
    The portable code solutions to this would be to use the
    following code:
    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/includes/templates/main.php');
    ?>
    This shows perfectly when uploaded to the Apache server, but
    of course does not show in the Design view of Dreamweaver.
    It is ridiculous to think that someone would want code one
    way to see in the design view, and another for the web server, so I
    am assuming that there is a way to do this so that it works both in
    the desing view and on the web server.
    I have had limited success using:
    <?php virtual('/includes/templates/main.php'); ?>
    which shows up in both the design view and on the web server.
    However, I've experienced problems using virtual calls in scripts
    called by the virtual command. I.e. nested inclusions. It would be
    important to note that PHP's own documentation states "This
    function may be used on PHP files. However, it is typically better
    to use include() or require() for PHP files.", along with other
    warnings.
    So, basically, what I am asking for is a solution to allow
    the following code to work and show the included file in the design
    view:
    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/includes/templates/main.php');
    ?>
    Any suggestions?
    BTW, I have tried setting the PHP include_path to the web
    root so that the first example above would work. Doesn't work. I
    have full, unrestricted access to the server, so if there is
    another setting or configuration change I can make to have the
    include function default to the web root, I'd love to know what it
    is.

    quote:
    Originally posted by:
    Newsgroup User
    It does that with all server-side includes, not just PHP. It
    only shows
    the HTML content of includes. To see dynamic output from a
    server-side
    language, you need to use Live Data view.
    I'm not referencing dynamic output from PHP processing. I am
    referencing includes. When using an include, Dreamweaver shows you
    exactly what it would show you if you were looking at the included
    file itself.
    However, Dreamweaver makes the assumption that <?php
    include('/inc/test.php'); ?> is a path located in the web server
    document root. This is not the same assumption that web servers
    make.
    The Apache web server (at least the several that I use),
    treat this same include as a request for /inc/test.php off of the
    root of the server. To achieve the same include, relative to the
    web document root, the include must be <?php
    include($_SERVER['DOCUMENT_ROOT'].'/inc/test.php'); ?>.
    Unfortunately, Dreamweaver does not understand this basic syntax
    and will not show the included file in the design view.
    The bottom line is that Dreamweaver could make it much
    simpler to build portable code if it understood this syntax on the
    include. You could take place that include in any location on your
    site and it would pull the include from the proper location in both
    your design view and on the web server.
    Keep in mind that we establish a "document_root" when we set
    up a site in Dreamweaver. The information is already there. The
    handling of it just needs to be added to the include parser.

  • Cannot view css styles in design view

    Is there a way to get Dreamweaver to display style in design
    view when the css files are in virtual folders?
    Have tried using ASP (Vbscript) snippet to write in the
    server URL and using Liveview, but still doesn't display. It
    appears that DW only recognizes hard coded relative links or hard
    coded full URLs.
    Browser displays these documents with no errors.
    Please Help! I have users who will be confused attempting to
    edit the documents without visible style, and need to use the
    virtual folders.
    Thanks.
    Sean

    > Is there a way to get Dreamweaver to display style in
    design view when the
    > css
    > files are in virtual folders?
    Try using Design Time Stylesheets.
    Open the Design-Time Style Sheets dialog box by doing one of
    the following:
    1. Right-click in the CSS Styles panel, and in the context
    menu select
    Design-time, or
    2. Select Text > CSS Styles > Design-time.
    Regards
    John Waller

  • JSFF design view not showing

    In the design view of a jsff file, only the structure of the af components is shown. Any advice?
    (seems this forum does support images ...)
    Edited by: Leon Zeng on May 3, 2013 10:39 AM

    Hi Leon,
    I have seen this behaviour after the use of "Convert to .."
    e.g. after convert of af:inputText (Number) to af:outputText
    "Convert to .." did not remove <af:convertNumber>
    After remove of <af:convertNumber> in the "Source" I got my design view back.
    Best,
    Kees.

  • Design view greyed out

    Hello
    I have this css file and i can only view the code, when I try to click on the design view its greyed out. This wasnt the case last week when I could view it fine. Can anyone help me? Thanks

    There is nothing to see in design view in a css file, it is always grayed out.  Perhaps you were working with embedded css instead of a css file.
    Gary

  • Qt creator seg fualt when entering design view

    I created a qt quick ui project and I get a segmentation fault whenever I enter design view.
    My log file:
    http://pastebin.com/71vLBVNK
    anyone know how to get around this bug?

    qtcreator still crashes on me as soon as I open or create a C++ Gui (Widget) project and click on any .ui files which AFIK is supposed to load the Form editor. Checked the Design view in a dummy QML project and it seems to work fine. Have tried this with several projects to no avail. Reinstalled package several times. Running kde-unstable but qt/qtcreator are from extra/community.
    qt 4.7.3-3
    qtcreator 2.2.1-3
    To reproduce, just create a  new Qt Widget -> Qt Gui Application and click on the mainwindow.ui file. Is anyone else getting this?
    Should I add new report/topic or is it likely these two things are related?
    EDIT: The same actually happens when I go to Tools-Options-Designer. No need to even open up a project.
    Last edited by dinsdale (2011-07-18 18:58:59)

  • How  to show  php 'include' file in Design View?

    Is it possible (in design view MX04) to show a php include
    file?
    It shows if it's <?php include('myPage.inc'); ?>
    but if its got the .php ext, <?php include('myPage.php');
    ?>
    its doesnt show.
    Any way of making it show?
    Cheers.
    Os.

    > Is it possible (in design view MX04) to show a php
    include file?
    Yes.
    Does the include file *also* contain PHP code?
    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
    ==================
    "Osgood" <[email protected]> wrote in
    message
    news:e791va$css$[email protected]..
    > Is it possible (in design view MX04) to show a php
    include file?
    >
    > It shows if it's <?php include('myPage.inc'); ?>
    >
    > but if its got the .php ext, <?php
    include('myPage.php'); ?>
    >
    > its doesnt show.
    >
    > Any way of making it show?
    >
    >
    > Cheers.
    >
    > Os.
    >

  • Design view no longer displaying included files properly or at all

    Hello,
    The site I need help with is a classic asp site. I am using Dreamweaver CS5.5 and am working in Windows 7 Professional.
    For over a year I have been opening files directly from two separate servers (one is testing, the other is live) and the files previewed fine in design view. One day design view stopped working for asp files on both servers and I do not know what caused this. HTML files still preview fine.
    On the live server, design view is not recognizing the included files at all. On the test server design view is recognizing the html from the includes but not any images or files with a "/" as the first character in the path.
    The loss of design view is making my styleing very challenging. I think I need to tell dreamweaver where the root of the testing and live server are. I'm not sure is this is the solution and if it is I am not sure how to implement it. Perhaps I should try to uninstall/reinstall Dreamweaver. Any help would be greatly appreciated. Thank you.
    Paul

    Please show us the code from a sample parent page and an included page.

  • Design view in php files

    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. =(
    >

  • Ver 4: Still no support for Includes or Design Time Stylesheets?

    Wow...well, without either of these I can't make use of this
    product. I guess I'm confused at what types of users this product
    may be marketed toward, although with the amount of focus put on
    Blogs and Blogging and lack of focus on requests already made in
    this forum for some time I'm getting a better idea. Hey, if they
    want to "dumb this down" and make it a price point product that
    purposely sits lower on the totem pole than Dreamweaver, then I
    think that ought to be made more clear in the marketing materials.
    I guess what's frustrating is that it's touted that it "uses the
    Dreamweaver HTML Engine" but can't implement a feature like Design
    Time Stylesheets? Would this put it too close to Dreamweaver in the
    product line? I certainly don't think so but if it did implement
    such a feature it would increase the demographic that could make
    use of such a great product as many users are not going to rewrite
    Includes OUT of their existing sites just to be able to use it.
    Most intermediate to advanced designers will almost always,
    and have been taught, to use includes to minimize page changes in
    multiple places...it's such a common thing to do. But unless an
    included page can be edited inline I have no way to turn my users
    loose with this app. It seems reasonable to implement Design Time
    Stylesheets like Dreamweaver does in which case, the users could
    edit the included page directly and at least see it like it should
    look with formatting which they can't do now because of the lack of
    an applied stylesheet when opening the include file directly.
    Do they expect that once we've written a site using includes
    we should have our content providers use Dreamweaver? I don't know
    about the rest of you but that's asking for a heck of a lot of
    trouble turning non-designer/developers loose with
    Dreamweaver...even using Templates.
    Sorry for the rant, I'm just a bit frustrated as I really
    need an app that can let me make use of "Content Providers" in our
    company. And don't get me wrong, I'm a long time Macromedia/Adobe
    supporter...just hoped something would happen with v4 that didn't
    and was pretty sure it would based on user input on this and other
    forums.
    If anyone has ideas on workarounds for this problem I'd love
    to hear!
    Thx,
    Mike

    Hi. I'm going to reopen this thread instead of starting a new
    one. Maybe someone here can help me figure out how Contribute can
    solve my client's editing woes.
    His site is built in ColdFusion, with template information
    that's stored in the database for each page. Currently this is what
    happens, simplified.
    1. User requests /foo.cfm
    2. Database looks up header, footer, and template to use for
    /foo.cfm, or the page can use "no template" in which case
    whatever's in the page gets put between the header and footer.
    3. The template or the page will contain one or more
    "editable regions", to use a Dreamweaver term. These blocks of HTML
    are pulled out of the database, and can currently be edited within
    the CMS by a browser-based WYSWYG editor.
    The problem is, the WYSIWYG editor in question isn't up to
    the task. Contribute seems to be, but I can't figure out how to fit
    it into a workflow compatible with this site!
    We don't use Dreamweaver and from what I've seen Dreamweaver
    templates aren't going to work in this application. It seems that
    if you make a change to the template, Dreamweaver has to go and
    update all 800 pages that use the template ... ??!? ... if so,
    lame.
    I don't mind pulling out all the HTML content snippets from
    the database and making a "database" on the filesystem of files
    that can be edited in Contribute. No problem. One of these snippets
    may be a "contact us" box or something that's used on 100 pages
    throughout the site, so I'm not going to put stuff like that
    separately on every page.
    If I do this, though, my snippets when I open them to edit
    them in Contribute are missing their CSS. This is because the CSS
    is set up in the header file, which is not included in the snippet
    HTML, obviously. The snippets also won't have the header and footer
    navigation and stuff, but I can live with that.
    How can I get the CSS to show up for my client when he edits
    the HTML snippets?
    The only solution I can think of is to put a stylesheet
    include into every snippet, and then pull that out with a regular
    expression from EVERY include at runtime whenever I display that
    HTML to the end user. Talk about a gross, ugly, non-extensible
    hack. Please tell me there's a better way...
    Thanks for reading,
    - Andrew.

  • Server Side Includes not displaying in DW CS3 design view

    I have this code in my page (see below):
    When I open the file in Dreamweaver MX 2004 in design view,
    the page displays correctly. That is, I see the correct styles from
    the style sheet contained in Head_Standard.html and the logo/menu
    in Logo_TopMenu.html
    When I open the page in DW CS3, I do not see the effects of
    the style sheet and I do not see the logo/menu.
    However, when I change the code for the first include from:
    virtual="/ServerSide
    to
    virtual="
    ../../ServerSide
    then the page renders correctly in Dreamweaver CS3.
    My first reaction was: what?! And my question is: how do I
    use a root reference inside the head and get it to display properly
    in DW CS 3?

    "Go to Edit > Preferences > Invisible Elements >
    Server-Side Includes (Check this box) to show contents of included
    file"
    I already do this.
    For me:
    /ServerSide... does NOT work
    ../../ServerSide... works
    So, a relative reference works and a reference to the root
    does not. I have over 20 websites with root references and I need
    this to work in DW9.

Maybe you are looking for