Using the stylesheet in RedDot Project

Knowledge Base: Academus, RedDot, Database, CSS
Submitted: January 31, 2007
How can I use the stylesheet in RedDot Project?

1. Using media element

 

You can use the media element for the stylesheet. You will have a style code like the following in your page.

 

http://www.reddot.com/scripts/stylesheet.css">

 

Now in the template replace the url path which points to your stylesheet with a media placeholder.

 

i.e.

 

Now on the properties of that media element preassing the file so when you create a page with that template the stylesheet will automatically be assigned to the page. Note that with this solution you will need to modify the stylesheet outside of RedDot and then upload the RedDot folder.

 

2. Using Anchor.

 

Using anchor is the second way of using stylesheet. Instead of a media element in the stylesheet reference put a anchor placeholder.

 

i.e.

 

In the properties of the anchor check the option "insert path and the filename only" .

 

- Now create a template called stylesheet and put the style code in the template.

- Now on your dummy project start page (First page of the project where you have dynamic link) create a link for the Reusable component.

- Now create a page using the style template.

- Now double click on the page that you just created which will copy that page in the clipboard.

- Now go to the template element "Stylesheet_Anchor" (using the treenode not opening the template code) and then reference the newly created page to that element.

 

This will connect to the style page automatically for the new pages. For the existing pages this  reference will not apply.

 

Note that you can also use your custom stylesheet for the text editor. For the information on how to use the stylesheet in text editor please refer to the solutions database.