Web Services Blog

Align text around an image

Images can be placed either before or after your text has been added.

  1. Click inside the content region where the image will be placed. For example, if you would like the image to be in line with the top of the text, you will place your cursor before the first sentence.
  2. Choose the “Insert/Edit Image” icon  from the WYSIWYG editor.
  3. Choose the internal tab to insert an image from Cascade. You can also upload images to Cascade during the insert image process.
  4. Select the file icon to browse to the image folder.
  5. Select the image  and choose confirm.
  6. Add the alternate text for the image including “Clemson University, Clemson, SC” at the end of each entry.
  7. Do not enter anything in the width/height boxes since your image should already be sized correctly.
  8. Choose insert.

The image alignment styles are available from the WYSIWYG editor’s Styles drop down menu.

  1. Select the image you have placed on your page.
  2. Select the Styles drop down menu from they WYSIWYG editor’s top row.
  3. Select the left or right style.
  4. Submit the page.

The left and right styles automatically add the correct amount of vertical and horizontal spacing around the image so you don’t have to do anything extra to add that. The left and right styles do not however, add a border around the image. To add a border around your image you must edit the html.

  1. Take your page into edit mode
  2. Select the html button from the WYSIWYG toolbar to bring up the html editor
  3. Find the paragraph tag in front of the image tag – it should look like this: <p><img
  4. Edit the paragraph tag and insert the border information – it should look like this: <p><img
  5. Select the Update button to update the html
  6. Submit the page

 

Change page type

Page assets are associated with a set of configurations for each page type. The configuration set for the left navigation page type is different from the configuration set for the full page. To change the page type, the configuration set must be changed. Not all users in Cascade have a role that will allow them to change the configuration set of a page asset.

Contributors and Publishers:
Content managers who are in the Contributor or Publisher role do not have access to change the configuration set for the page assets they are building.

  • Copy the content from the current pageCreate a new page asset for the page type you desire
  • Paste the copied text into the content region of the new page asset
  • Enter the Display Name and Title
  • Enter a System Name
  • Submit
  • Delete the page asset you no longer need

Your site manager and the Office of Web Services can change the configuration set for you.

Managers:

  • Choose Edit and select the System tab
  • Choose the Configuration Set link
  • Navigate to the configuration set you are changing to and select it
  • Confirm that you have chosen the correct configuration set
  • Submit

Create a link to a specific area on a Web page

Anchor links are used to navigate from a specific area to another specific area within a single Web page, or from a specific area on one Web page to a specific area on a different Web page. They are a good way to provide easy navigation through pages that have multiple sections of content.

  1. To create an anchor, click in the specific area the link will point to. Choose the “anchor” button  in the WYSIWYG editor.
  2. In the pop-up window, name the anchor. The anchor becomes part of the URL so, like the System Name, it should be unique and Web friendly.
  3. Choose “insert” to set the anchor. Create as many anchors as you need.
  4. Make sure the page you are linking to has been submitted in Cascade.
  5. Select the text that will become the link.
  6. Choose the Insert/Edit link button on the WYSIWYG toolbar.
  7. Choose the Internal tab and select the page from Cascade that has the anchors in it. Type in the name of the anchor in the anchor field.
  8. Submit your page and publish.

Adjust spacing between paragraphs, sentences and headers

Paragraphs are double-spaced by default because that makes the text easier to read on a computer screen). Hitting the enter/return key between paragraphs will add a double-space, creating a new paragraph, but holding down the shift key when hitting enter/return will add a single space, creating a line break. Line breaks are often used to separate sentences that aren’t long enough to wrap, but are not ordered or unordered lists.

Ordered and unordered list items are single spaced by default so hitting the enter/return key after each list item is the correct way to format the list, as shown in this example.

  • orange
  • banana
  • lemon
  • strawberry

Hitting the shift key and the enter/return key in the list will indent the second line, but not give it a bullet.

  • orange
    banana
  • lemon
    strawberry

Headers are used to draw special attention to specific text by increasing or decreasing the default font size and, depending on the header style, make the text bold or italic. Headers are by default followed by a double space regardless of what type of text comes next. If you hold down the shift key and hit the enter/return key after a header, you will actually be adding a paragraph break AND a line break. You can however apply a style class named “title” to the header that will remove the paragraph break and add a line break. Applying the style does require a little editing of the html. Look for the header tags – in the example below the tags are <h4>and</h4>, and add to the opening tag – class=”title”.

Example:

<h4 class=”title>With the “title” class</h4>
Aenean ultricies Donec fames turpis eu tortor mi egestas. Mauris eleifend tristique et netus eget, Pellentesque senectus quam, tempor amet malesuada amet, leo. ante. quam Vestibulum habitant et morbi feugiat sit semper. ac sit est. vitae, ultricies placerat egestas vitae libero

Without the “title” class

Aenean ultricies Donec fames turpis eu tortor mi egestas. Mauris eleifend tristique et netus eget, Pellentesque senectus quam, tempor amet malesuada amet, leo. ante. quam Vestibulum habitant et morbi feugiat sit semper. ac sit est. vitae, ultricies placerat egestas vitae libero

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.