Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleNote

 In the virtualization server environment with many webapps, this can be slow.  That means that for people using the Preview button, you may have to wait some time before any changes to the global SiteTree are picked up.  This does not mean that people have to wait to see something; just that they see an older version of the information.  If they refresh after enough time has gone by, they will see the newest information.  

 On a production system, which is running (probably) just the one webapp, this will be fast.  I have tested this system on a Tomcat instance running on a local machine, crawling a site with 3,000 files in it.  It took approximately one half of a second between updates.  Again, no user has to wait an extra half of a second for their browser to show a page; the page will be rendered at the normal time, but with information which may be up to a half of a second old.


The web application automatically generates navigation information for your web project.  If you do not tell it to do something differently, it will generate default titles for the sections and pages in your site.  By default, every folder (except META-INF and WEB-INF) in the site will be a Section whose title is the same as the name of the folder.  Also, every file

Info
titleNote to Self

I probably should make this just .html, .htm, .xhtml, .jsp, or .jspx files

in the site in the site with an "html-like" extension: (one of "jsp", "jspf", "jspx", "htm", "html", "xht", "xhtm", "xhtml", "sht", "shtm", or "shtml") will be a Page whose title is the same as the name of the file ( without the extension).  In some cases this will be what you want.  In other cases, you will want to alter the default behavior by controlling the navigation information yourself.

You may control the navigation information on a per-folder level in your Alfresco Web Project via the web form named "Navigation Information".  This web form manages a file in the current folder called "navigation.xml".  If you have just created a new folder and you want to control its navigation information, you must choose Create > Create Web Content.  Then you should create content via the "Navigation Information" web form as shown below:

...

The next type of field is a list of Links.  A Link consists of a Url and a Title.  You may enter as many Links as you'd like.  These will generally end up as Pages under the current section, in the order they appear in this web form.  There are several ways you can use Links to alter the default page naming behavior.use Links to alter the default page naming behavior.

  • To change the title of a Page which is already included in the current Section: type the url for the page (either the full root-relative url e.g.,"/foo/bar/baz.html" or just the file name e.g., "baz.html") in the Url field and a new title in the Title field.
  • To add a Page which is not currently included in the current Section, because it is has a non-html-like file extension:  To change the title of a Page which is already included in the current Section: type the url for the page (either the full root-relative url for the page, e.g., "/foo/bar/baz.htmltxt", or just the file name e.g., "baz.htmltxt") in into the Url field and a new the desired title in the Title field.
  • To add a Page which is not currently included in the current Section, because you want to cross-link it from somewhere else in the site:  type the full root-relative url for the page, e.g., "/other/folder/thing.html", into the Url field and the desired title in the Title field.
  • To add a Page which is not currently included int he current Section, because it is a link to an external web page: type the absolute url for this page, e.g., "http://web.mit.edu.ezproxyberklee.flo.org/", into the Url field and the desired title in the Title field.
  • To change the order of a Page or a Section which is already included in the current Section: enter its url (root-relative or file name) into the Url field and the desired title in the Title field, and change the order of the Link by clicking the up or down arrow buttons in the form.  Note that any Links that are explicitly included in the navigation.xml file will come first in the Section listing, before any Sections or Pages which are automatically included by default.  If you want fine-tuned control over the order of all the Sections and Pages in the Section, you will need to create Links for all of them. 

...

Finally, there is a list of Ignore Urls.  These are the urls of files or subfolders that you don't want to be included under the current Section.  Remember that by default, all files and folders folders and most html-like files are included in the site tree.  This is a way to turn that behavior off for particular folders and files.  There are two ways you can use Ignore Urls:

...

No Format
<nav:setSiteTreeVar var="theSiteTree" />
<h3><ul><li>
  <nav:treeWalk root="${theSiteTree.homeSection}" var="page">
     <a href="${page.url}"                      ><c:out value="${page.title}" /></a>:<br/>
       <ul><c:forEach items="${page.subpages}" var="subpage">
         <li><nav:subtreeWalk subroot="${subpage}" /></li>
       </c:forEach></ul>
  </nav:treeWalk>
</li></ul></h3>

...

No Format
<nav:setBreadcrumbVar var="breadcrumb" />
<c:forEach var="page" items="${breadcrumb}" varStatus="status">
<c:if test="${not status.first}">&gt;</c:if><a href="${page.url}"                   ><c:out value="${page.title}" /></a>
</c:forEach>

...

No Format
<nav:setPageVar var="page"/>
<c:forEach var="subpage" items="${page.subpages}" >
&bull; <a href="${subpage.url}"                   ><c:out value="${subpage.title}" /></a><br/>
</c:forEach>

...