Text Only • 
    Home  •  Admin_Page_Builder_Form  •  Document
Syntax for Links and Special Formatting
 Print

Links to Other Key Pages

Links in this Page:


RWD Links Syntax examples for use when linking to Content From the Page Body


Object to display
Desired Effect on Page
Link Syntax
(italic text is object path and name)
Set to Open in New Window?
Comments
RWD Page or file (relative link)
Display Object
path/object name

(Eg.  Anyfolder/anysubfolder/homework)
Either- recommend same window
This is the most common method of linking to other pages in a user's site
RWD Page or file (qualified link)
Display Object
/path from root of site/object name

(Eg.  school_graphics/animals/cute/bunny.gif)
Either - recommend same window
the first / character (the slash) indicates to FirstClass to start at the root of the site (the site container itself).  The path will be longer than in a relative link but this syntax is very useful when resources (such as graphics) are stored centrally on a site. Usually, the / is used in the RWDE Administrator form as most objects referenced in that form need to work in all pages and links must be fully qualified.
RWD Page or file (qualified link)
Display Object
http://RWDsiteURL/path/object name

(Eg. http//www.mysite.com/teachersitefolder/Anysubfolder/events)
Copy and paste the address from the browser address bar right into the RWD Page Builder form
WWW web site
Display Object
http://WWWsiteURL(/path/page name  if a specific page)

(Eg. http//www.cnn.com)
Either - recommend new window
Copy and paste the address from the browser address bar right into the RWD Page Builder form
Calendar - stand-alone
Display Object as a Full Page
path/Calendar name?templates=rwd&FormID=158

(Eg. events/jjohnson_Calendar?templates=rwd&FormID=158
Either
Probably the simplest link for a teacher to use to open a class calendar.
Use FormID = 158 for Monthly view, FormID =159 for Weekly view, FormID = 167 for Daily view
Calendar Event
Display Object as a Full Page
path/Calendar name/event name?templates=rwd&formid=161

(Eg.  /School_Root/School Calendar/school dance?templates=rwd&formid=161

Note that the above link is fully qualified but it need not be.
New Window - you can use same window but the user will have to click the browser's back button
For calendar events, you have to view the calendar in the FirstClass Client in list view, find the event, and rename the event itself to a name you choose.  If you go back and edit the event, the name of the event will revert back to the name of the user who created the event and your link won't work!
Calendar - in a frame (instead of page body)
Display Object in RWD Frame
?object=path/Calendar name&infobar=no&templates=rwd&Calendar=1

(Eg. ?object=events/my_Calendar&infobar=no&templates=rwd&Calendar=1)
Same window Only, NOT New
If you open this in a new window, a complete copy of the entire page will open and you may confuse or lose the web visitor.
Use Calendar=1 for Monthly, =2, for Weekly, and =3 for Daily views respectively
A container – (a Folder or Conference) in a frame
Display Object in RWD Frame
?object=path/containername&infobar=no&templates=RWD&ConfPosition=2

(Eg. ?object=/school_root/policies&infobar=no&templates=RWD)

Again, a fully qualified link is used in this example but relative links will work.
Same window Only, NOT New
If you open this in a new window, a complete copy of the entire page will open and you may confuse or lose the web visitor.   Note that no end document or file name is used as the link is meant to open a container with multiple files in it.
Use ConfPosition = 1 to put sub containers to the left of content in the web frame.
The last web page visited in the current web browser window
To go back to the previous page
javascript:history.back(-1);
Same window ONLY, NOT New - this link will NOT work if you open it in a new window
This link, if typed exactly, will move the view in the browser window to the last visited page.
Note that FirstClass page Body links default to open in a new window - you must change this in order for the link to work.
Create email message
open web user's default mail client
mailto: target email address

NA
There are other elements to the syntax that can be added to set subject, etc however this is the basic syntax


RWD Special Tags Syntax examples for use when creating special formatting options

Category of Function
Syntax
Effect / Comments
Limits
Images
[img=path/filename]

Places an image at whatever point the syntax is inserted.  You may have text on either side of the syntax or both.
You must include the square brackets.

Scrolling Message (one in each message), Information Sidebar, Title, Body, Link fields, Page Footer (RWDe Admin Form Only)
Link format
[color=var][hover=var][bullet=var]

var represents a valid variable for the control:
colors can be recognized words such as red or blue, or they can be actual color codes like #ffffff
Bullet variables are simply the path and filename of the bullet.

This overrides the settings in the Modify Colors and Fonts SubTab of the Navigation Sidebar for the link in which the syntax is used.  All other links will appear as the settings in the form dictate.  
You must include the square brackets.
You may use one or two or all of the parameters and colors may be in simple form (words) or code.
1). The parameters are color=, hover= and bullet=.
color= refers to the link text color, hover= refers to the color the link will become when a mouse-over occurs and bullet= refers to an image that will appear in front of the link text.
2). Don't use double quotes ". Single quotes ' like [color='red'] or no quote like [color=red] are acceptable.
3). The order doesn't matter.  

All of the examples below are valid:
[color='red'][hover=#123456][bullet=dot_pink.gif]
[hover=#123456][color='red'][bullet=dot_pink.gif]
[hover='#123456'][bullet=siteimages/dot_pink.gif]
[hover=#123456]
[bullet=dot_pink.gif][hover=#123456]

This feature works on links in the Navigation Sidebar Only.

Note, when using paths to images in the RWDe Administrator form (.sitepref), make sure that paths are absolute and referenced from the root of the site.  Adding the / at the beginning of the path will signify that the path starts from the root.
Iframes
[iframe src='var' height='var' width='var']

var represents a valid variable for the control:
src requires a valid URL for the source of the frame while height and width variables are in pixels.

Square brackets and single quotes must be used.
Iframes can be used to contain any number of objects - from simple HTML, Firstclass documents, web pages, Flash, etc.  It is important however that the content's original size be the same as the Iframe height and width or only a portion of the content will be visible.
[iframe src='http://url.com']
[iframe width=234pt src='http://url.com' height=80]
[iframe height='80' src='http://url.com']
[iframe height=80 width='234pt' src=http://url.com]
These tags can be used to generate frames in both the Navigation Sidebar and the Information Sidebar.

You may also use Iframes in the Page body itself (using the Literal HTML style option) and then you are free to use the full Iframe syntax.
The following code would be used to display a Flash object we created in the Information Sidebar or Navigation Sidebar (we don't on our website but we could if we wanted to):

[iframe src='/flash/RWD_Flash.html?FCItemID=S000478C9&DF0=0' height='200' width='175']

The following code represents the code actually used in the FirstClass Depot Home Page to display the same flash in the Page Body of the form - note, all text is formatted as Literal HTML and the iframe syntax is NOT the same as the RWD special syntax.

<table><tr><td><iframe marginheight="0" marginwidth="0" name="wxButtonFrame" id="wxButtonFrame" height="200" src="/flash/RWD_Flash.html?FCItemID=S000478C9&DF0=0" align="top" frameborder="0" width="175" scrolling="no"></iframe>
</td></tr></table>

Mashup Container Scroll Speed
container path and name?speed=200
Causes the speed of the listing in a scrolling mashup panel to be adjusted up or down from the default speed.  The higher the number, the slower the scroll speed.













Last Modified: Sep 16, 2009
 

Copyright (c) 2009, FirstClass Depot