Highlighted

module_contentholder OK in DW CS6 but not OK in DW CC (2018)

Explorer ,
Jun 17, 2018

Copy link to clipboard

Copied

I have recuperated all the files from an entire site created with Dreamweaver CS6 in the latest version of Dreamweaver CC. The Main Template.dwt is in the directory Templates. Here is the code referring to the menu.html (in _System/ContentHolders/) which never appear in index.html nor in any other files based on the same template :

<body>

   

    <header class="page">

      <div class="container">

        <div class="sixteen columns logo">

          <h3><a href="/">An OBR Esprit instance on the web</a></h3>

         

          <div class="menu full">

         

            <!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

            {module_contentholder,name="menu"}

          </div>

         

          <div class="menu dropdown">

            <ul>

              <li><a href="#">Menu</a>

             

                <!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

                {module_contentholder,name="menu"}

             

              </li>

            </ul>

          </div>

        </div>

      </div>

    </header>

    This code worked perfectly in DW CS6 but no longer in DW CC.

Having published the site, I see only  {module_contentholder,name="menu"} in place the menu

What happen?   

TOPICS
Create menus in Dreamweaver

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

module_contentholder OK in DW CS6 but not OK in DW CC (2018)

Explorer ,
Jun 17, 2018

Copy link to clipboard

Copied

I have recuperated all the files from an entire site created with Dreamweaver CS6 in the latest version of Dreamweaver CC. The Main Template.dwt is in the directory Templates. Here is the code referring to the menu.html (in _System/ContentHolders/) which never appear in index.html nor in any other files based on the same template :

<body>

   

    <header class="page">

      <div class="container">

        <div class="sixteen columns logo">

          <h3><a href="/">An OBR Esprit instance on the web</a></h3>

         

          <div class="menu full">

         

            <!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

            {module_contentholder,name="menu"}

          </div>

         

          <div class="menu dropdown">

            <ul>

              <li><a href="#">Menu</a>

             

                <!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

                {module_contentholder,name="menu"}

             

              </li>

            </ul>

          </div>

        </div>

      </div>

    </header>

    This code worked perfectly in DW CS6 but no longer in DW CC.

Having published the site, I see only  {module_contentholder,name="menu"} in place the menu

What happen?   

TOPICS
Create menus in Dreamweaver

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 17, 2018 0
Adobe Community Professional ,
Jun 17, 2018

Copy link to clipboard

Copied

The code you're showing us is neither a DW Template.dwt or a child page spawned from a DW Template.

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 17, 2018 0
Explorer ,
Jun 17, 2018

Copy link to clipboard

Copied

Please, see below  the full code of Main Template.dwt of which a skeleton was generated by DW CS6 and which I modified so that it meets more precisely my needs. I assure you that It worked perfectly so in DW CS6. It seems that DW CC does not recognize /_System/ContentHolders/    and can not reach the files placed in this supposedly standard directory.

<!doctype html>

<html>

  <head>

   

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <!-- TemplateBeginEditable name="doctitle" --><title>An OBR Esprit instance on the web TEST 2</title><!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

   

    <link href="/stylesheets/base.css" type="text/css" rel="stylesheet" />

    <link href="/stylesheets/skeleton.css" type="text/css" rel="stylesheet" />

    <link href="/stylesheets/layout.css" type="text/css" rel="stylesheet" />

   

    <!--[if lt IE 9]>

        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>

    <![endif]-->

   

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

    <script src="/javascripts/sorttable2.js"></script>   

   

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

 

  </head>

  <body>

   

    <header class="page">

      <div class="container">

        <div class="sixteen columns logo">

          <h3><a href="/">An OBR Esprit instance on the web</a></h3>

         

          <div class="menu full">

         

            <!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

            {module_contentholder,name="menu"}

          </div>

         

          <div class="menu dropdown">

            <ul>

              <li><a href="#">Menu</a>

             

                <!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

                {module_contentholder,name="menu"}

             

              </li>

            </ul>

          </div>

       

        </div>

      </div>

    </header>

   

    <div class="container">

      <!-- TemplateBeginEditable name="ContentArea" -->{tag_pagecontent}<!-- TemplateEndEditable -->

    </div>

   

    <footer class="container">

      <div class="sixteen columns">

        <nav role="navigation">

         

          <!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

          {module_contentholder,name="menu"}

       

        </nav>

        <p>Copyright © 2012 Company Co. All rights reserved.</p>

      </div>

    </footer>

   

    <!-- Scripts moved at the end for a faster page rendering -->

   

    <script src="/javascripts/menu.js"></script>

   

    <script type="text/javascript">

      $(document).ready(function() {

        $('.menu.dropdown ul li').click(function(){

           $(this).find('ul').toggle();

        });

      });

    </script>

  </body>

</html>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 17, 2018 0
Adobe Community Professional ,
Jun 17, 2018

Copy link to clipboard

Copied

It's looks like you're using Root Relative links.  See screenshot below.  My template contains a link to my external CSS file but it's document relative (../css/my_styles.css).

Try changing your links to document relative and see if thiat helps.

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 17, 2018 1
Explorer ,
Jun 17, 2018

Copy link to clipboard

Copied

Your could be right but the problem seems not to be at this level. First, the directories structure has not be changed from DW CS6. As I neglected to maintain my site from while, and didn't program no longer for the web from years, I don't remember the way to force the depending files (based on the template) to integrated the template's changes that I did. I made changes to the template, saved them and those changes weren't reflected in the non editable code areas in the deepening/referring files. It recalls me something as "broken links" but no broken links are notified.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 17, 2018 0
Explorer ,
Jun 17, 2018

Copy link to clipboard

Copied

The problem could be this: force DW CC to understand that {module_contentholder,name="menu"} refers to C:\Dev\DW CC\CS6\www\_System\ContentHolders\menu.html. Sorry, I am suspecting that my error is more trivial than the one you pointed out and is situated at the level of the use of the interface.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 17, 2018 0
Explorer ,
Jun 21, 2018

Copy link to clipboard

Copied

In DW CC as in DW CS6, referring to the root directory is allowed by this:

- Select Manage sites... (under Site)

- Click on the name of your site

- Site setup for "your site" appears

- Select Advanced Settings

- On Local Info, two radio buttons gives you the choice between Document and Site Root.(Links relative to:)

- I have chosen Site Root.

Despite all of this,

<!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

            {module_contentholder,name="menu"}

does not work.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 21, 2018 0
Adobe Community Professional ,
Jun 22, 2018

Copy link to clipboard

Copied

It looks like you're working on a Business Catalyst site.  Business Catalyst Templates only work on BC Servers.

Connect to your site using Dreamweaver CC 2014 or later

In case you missed the memo, Business Catalyst is EOL which means the servers will be taken down in March 2021. You will need to make plans to move your current sites from BC to a new web host.

Important Update about the Business Catalyst End of Life

The ability to create new BC trial sites ended on Monday 6/18.

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 22, 2018 1
Explorer ,
Jun 23, 2018

Copy link to clipboard

Copied

My question may be stupid but what do you mean by "Business catalyst site"? I created my site originally with DW CS6 and tried to recuperate it in DW CC. I don't know nearly nothing about BC. My site was put on a server from en Belgian provider and is liable to be totally independent from  BC structure or any what else that could involves restrictions on the generality of the JavaScript generated by DW CS6 or coded in it by myself. As  DW CS6 is free for those who have bought DW CC, I downloaded again DW CS6 and experienced with horror that it works not better with this one than with the new DW CC, while I developed my site with DW CS6! What does mean such a mess ?!

In Design mode, I click on a container area and the properties pane (for the container) appears and I have only to drag a file in the link field and drop this file in it (or select the file in the files tree). Whatever the way is use, the file does not appear in the link field. When I click on the help button, I get an obsolete link on the web.

About the support: it comes to nothing as soon as we go beyond the limits of elementary use of the interface. At least, I have to retry, chatting and chatting again...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2018 0
Adobe Community Professional ,
Jun 23, 2018

Copy link to clipboard

Copied

What do I understand is that you have download all of the files form the remote server and  the code works in CS6 but not in CC18.

If that is true, could you please supply a link to the remote site so that we can have a loo at it.

I my understanding is not true, please start again. Using your first language (Dutch/French) may help us as there are Dutch and French speaking persons that frequent this forum.

Must go back to watching Belgium-Tunesia.


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2018 0
Explorer ,
Jun 23, 2018

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2018 0
LEGEND ,
Jun 23, 2018

Copy link to clipboard

Copied

Ben & Nancy,

I don't know if this will help, but BC was also available on 3rd party hosting plans at the time of CS6's release, and the code was also availible as part of CS6's features. So it may be that the OP's server provider no longer supports BC and has moved the OP to another server plan.

Just a guess, but would explain the BC code.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2018 1
Adobe Community Professional ,
Jun 23, 2018

Copy link to clipboard

Copied

When I have a look at the Template at http://www.danielpisters.be/Templates/Main%20Template.dwt​, I see {module_contentholder,name="menu"} mentioned a few times. This file can be found at http://www.danielpisters.be/_System/ContentHolders/menu.html

I do not know enough about the mechanism involved in including the menu file into the main Template. As far as I can see, this has nought to do with BC.

What I do know is, if it worked under CS6 it should also work under CC18 if all is equal.

Edit: Belgium 5 - Tunesia 2


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2018 0
LEGEND ,
Jun 23, 2018

Copy link to clipboard

Copied

I suggested BC because -

<!-- you can edit the menu from "_System/ContentHolders/menu.html" -->

            {module_contentholder,name="menu"}

_System/Content... and the method of inserting into an html file are both part of BC's server file structure and how one would reference the 'include' using BC.

Also if the OP's server provider has moved the site to a none BC server, then the file would no longer exist, so could not be downloaded by the OP.

Edit - Dw CS6 has BC code support as part of the program, CC (all versions) does not support BC. So BC code should work in CS6 (not CC download).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2018 1
Explorer ,
Jun 23, 2018

Copy link to clipboard

Copied

My country won? Dommage... I apologize, Ben, for this remark that would instead have its place on Facebook: the naïve and almost fanatical craze for football in this country diverts the attention of people from the essential problems that gangrenate it probably irreparably (corruption, foolishness, stupidity, incompetence... and  "evolution " towards a form of dictatorship) but "revenons à nos moutons".

Nancy and Pziecina are most probably right. I was deceived by DW CS6 using treacherously a non-standard structure related to BC.

In this case, what is the best way (referring to the best programming practice) to replace this damned {module_contentholder,name="menu"} while preserving modularity ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2018 0
Adobe Community Professional ,
Jun 24, 2018

Copy link to clipboard

Copied

I forgot that there are those that feel that football (soccer) is a game for fools. I guess that I am one of them .

Back on topic, as I said, je ne suis pas familier avec bc, hence I did not detect the problem.


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
Explorer ,
Jun 24, 2018

Copy link to clipboard

Copied

Je confesse, Ben, qu'il m'arrive de regarder l'un ou l'autre match quand c'est une coupe d'Europe ou un Mondial. J'espère que mes compatriotes se fassent ridiculiser par une petite équipe mais lorsque les "Diables" parviennent à la rencontre avec l'Espagne, ou l'Angletterre, par exemple, je deviens comme "tout le monde": j'essaye de suivre le match et j'espère qu'ils gagnent.

I used BC but never to program and/or to design. The site was published on a server Adobe BC compatible provided automatically and freely, at this time at least, when you buy or have a monthly subscription for the product. I used BC to get statistics about the time my site is visited and from where, etc.

I verified in the meanwhile that DW CC does not maintain the mechanism I described above, allowing to link a container with some file contained in "_System/ContentHolder"

Therefore, I have to replace the code In order to achieve the same result while  preserving the modularity, and remaining as close as possible to the best Javascript programming practices. I am not a web developer... I manage only to get the best possible result by the best possible way.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
LEGEND ,
Jun 24, 2018

Copy link to clipboard

Copied

To convert you BC code to a format that would work, will depend on your server support. If your server supports php, then you just need to change the file extensions from html to php, and use php includes to insert them at run-time into the page.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
Explorer ,
Jun 24, 2018

Copy link to clipboard

Copied

I would prefer to stay in html. There should be possible to open an html page in a container on another page in standard JavaScript. Yes ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
LEGEND ,
Jun 24, 2018

Copy link to clipboard

Copied

A reserved no, using just html and/or javascript will not include any of the items in the page that are external to that page, (e.g. modules).

The reason I say 'reserved no' is because there is an html method to include external files, (module files) in an html page. Unfortunatly it is currently only supported by the Chrome and latest Android browsers. This would mean that anyone using a different browser or device would not see the contents of the included file.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
Explorer ,
Jun 24, 2018

Copy link to clipboard

Copied

Thanks for this precise, useful but despairing answer. This mean that  (except Chrome etc.), I'll have to include the same "module" code as many times as there are pages using this code! But it is HORRIBLE! HELP! HELP! Originally, since I was a computer scientist (25 years in R&D, scientific field), I never liked the internet and even less program for the web. Now I'm really well served!

I just want to open a page into an area of another, expecting that some specifications in the second apply to the first.

O Misery!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
LEGEND ,
Jun 24, 2018

Copy link to clipboard

Copied

You could use an iframe, providing you do not want the contents of the iframe to interact with anything on the page.

That would mean that things like your menu would not work correctly. An iframe is o/k just for content, but does also have accessibility issues. e.g. It is not usable with a screen reader.

Another possibility wouls be to create your page with things like the menu included, then to use ajax to change the content. That though would not be a beginner method as it does require a good understanding of javascript, plus you would possibly have to completely change your file structure.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
Adobe Community Professional ,
Jun 24, 2018

Copy link to clipboard

Copied

I would  simply switch over to server-side includes.  That makes the most longterm sense since you set it up once and forget it.

<?php require_once('folder/menu.html'); ?>

Alt-Web Design & Publishing: Server-Side Includes with PHP

Some shared hosting plans won't allow you to parse HTML files as PHP because it makes the server slower for everyone.  But if you have decent hosting  or a VPS plan, the option to keep using HTML files with PHP includes is possible by ammending or creating  an .htaccess file in your server's root folder.   I have many sites  and I use server-side includes in all of them. 

AddType text/html .php
AddHandler server-parsed .php
Options Indexes FollowSymLinks Includes
AddHandler server-parsed .html

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0
Explorer ,
Jun 25, 2018

Copy link to clipboard

Copied

I don't know PHP, Nancy, have no desire to learn it (especially since it needs a server that supports it) and does not like the idea to mix server side files with my local files, nor to create explicit dependencies from the second to the first in my JS code. I ask to a linkedin Javascript group and directly to a member of it, a friend specialist working in the silicon valley. His team is using esoteric things like AngularJ, very mysterious expression which make me dream of the Graal ....     to the extent that this framework is supposed to improve the modularity of programming for the Web, but I don-t like the idea to become dependent from a framework, even if I was developing with .net (C# and a bit of ASP). As soon as I receive a satisfying answer, a really modular solution, I will inform you.

"magento purchase". What does this mean the BCMan?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 25, 2018 0
Guide ,
Jun 25, 2018

Copy link to clipboard

Copied

module_contentholder is also server side, Adobe's server actually does the include

Server side includes are not tied to a language they are usually part of the webserver and you do not need to learn any languages (including PHP) if you don't want to.

Take a look at: Server Side Includes - Wikipedia

You would literally just have to replace those module_contentholder with <!--#include virtual="/_System/ContentHolders/menu.html" --> or something there about.

Adobe just purchased the e-commerce platform Magento.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 25, 2018 1
Explorer ,
Jun 25, 2018

Copy link to clipboard

Copied

I know that ADOBE's server does the include. In any case, I'll try your solution.

Thanks.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 25, 2018 0
Explorer ,
Jun 25, 2018

Copy link to clipboard

Copied

TheBCMan

I have tried

#include virtual="_System/ContentHolders/menu.html"

{#include virtual="_System/ContentHolders/menu.html"} with curled brackets

#include virtual="/_System/ContentHolders/menu.html" with a slash before _System

{#include virtual="/_System/ContentHolders/menu.html"}  with curled brackets and a slash

I don't see the men but the code. For example "_System/ContentHolders/menu.html" at the top right corner of the window.

I put those 4 cases to the server and none of them works, I made an automatic update of the depending files (based on this template). I supposed that I missed specifying something that is evident for you but not for me.

My root directory is /www/ sot that the first slash is useless.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 25, 2018 0
TheBCMan LATEST
Guide ,
Jun 26, 2018

Copy link to clipboard

Copied

This is also a server side include but it wont render / show in DW, you have publish it to your webserver and use the full syntax of:

<!--#include virtual="/_System/ContentHolders/menu.html" -->

To see it. This is assuming that is the correct path to the file. You wont have to put www in as the root of your webserver starts at www.

I understand you want to see it working in DW but Adobe have announced end of life for these tags and while it still 2 years away everyone should start making the change.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 26, 2018 1
Guide ,
Jun 24, 2018

Copy link to clipboard

Copied

As others have pointed out, your hosting provider by Adobe is shutting their service down. It is still unclear how the recent magento purchase will fit with DW but consider moving the site and changing your includes to a static file.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2018 0