Web Services Blog

Change the order of left navigation links

The left navigation is built from the folder/file structure is Cascade and is ordered alphabetically by default.

To rearrange the order of your indexed assets, select the parent folder from the asset tree. The asset information will be displayed in columns in a new window. Choose the “Order” column heading to show the order in which your assets are displayed in the left navigation. Move your pointer into the “white space” beside a folder/file until it becomes a small arrow. Click and drag the asset up or down into the desired position.

This only applies to assets that have indexing turned on.

Remember: Reordering your assets will not change how they are displayed in the asset tree. Assets are ordered alphabetically by default.

Create a page that auto builds the left navigation

The Left Column page type includes a column of links on the left side of the page. The links in the column are created dynamically from the indexed folder and page assets that are created within your site. The text for the links in the left navigation column comes from the text you enter into the Display Name field when you create a new Left Column page.

The Left Column – 1st level, Left Column – 2nd level and Left Column – 3rd level page types all look exactly the same. The only difference in the three is how the links are displayed in the left navigation column.

Left Column – 1st level: The left navigation displays all indexed assets that are in your site’s parent folder.

Left Column – 2nd level: The left navigation displays all indexed assets that are in folders within your site’s parent folder.

Left Column – 3rd level – The left navigation displays all indexed assets that are in folders within folders within your site’s parent folder.

Add inline PHP to your pages

Say you want the following code in the content area of your page:

id = 300;

echo $app-id;

for($i=1; $i<=10; $i++){
echo "$i
";
}
?>

However, after you submit, the WYSIWYG converts the code to this:

<?php
echo "this is just a test";

$app->id = 300;

echo $app-id;

for($i=1; $i<=10; $i++){
echo "$i
";
}

?>

To prevent this, we will add // at end.

<?php
// id = 300;

echo $app-id;

for($i=1; $i<=10; $i++){
echo "$i
";
}
// -->
?>

This is very similar to the old way of tags, but the current version of the wysiwyg editor doesnt always support it correctly.

Name an asset in Cascade

Each asset must be assigned a unique System Name in order to be saved into Cascade. Think of the System Name like you think of the file names when you go to Save (or Save As) a Word document. The System Name is what Cascade displays in the asset tree. It also becomes part of the url and is factored into search engine optimization.

Important things to remember when naming an asset:

  • The System Name is applied by choosing the System tab when creating an asset.
  • The System Name should be Web friendly. A Web friendly System Name is one that:
    • is all lower case
    • is one word or more than one word separated by a hyphen –
    • has no spaces
    • contains no special characters (!@!#$%^&*)

Every folder containing pages that will be included in the left navigation must have a page named index. The index page is, by default, the home page.

Change an ordered list from numeric to alpha

When you create an ordered list on your Web page, the default style is numeric like this:

  1. list item 1
  2. list item 2
  3. list item 3

Sometimes however you want your list to be ordered alphabetically instead of numerically. Apply an alpha style to your ordered list like this:

< ol style=”list-style: lower-alpha;” >

a. list item a

b. list item b

c. list item c

</ol>

For more information, see Style Guide/Lists.