SSAB Merox AB
Paddex
61380 Oxelösund

Logga in

Om cookies

Webmasterns hörna

Hjälp: Style Macros

These macros are mainly useful in maintaining styles in WebGUI.

^AdminBar;
Places the administrative tool bar on the page. This is a required element in the "body" segment of the Style Manager.

^c; - Company Name
The name of your company specified in the settings by your Administrator.

^e; - Company Email Address
The email address for your company specified in the settings by your Administrator.

^Extras;
Returns the path to the WebGUI "extras" folder, which contains things like WebGUI icons.

^LastModified; or ^LastModified();
Displays the date that the current page was last modified based upon the wobjects on the page. The date is defaultly displayed based upon the user's date preferences. Optionally, it can take two parameters. The first is text to display before the date. The second is a date format string (see the D (date) macro for details.

Example: ^LastModified("Updated: ","%c %D, %y");

^PageTitle;
Displays the title of the current page.

NOTE: If you begin using admin functions or the indepth functions of any wobject, the page title will become a link that will quickly bring you back to the page.

^r; or ^r(); - Make Page Printable
Creates a link to remove the style from a page to make it printable. In addition, you can change the link text by creating a macro like this ^r("Print Me!");.

By default, when this link is clicked, the current page's style is replaced with the "Make Page Printable" style in the Style Manager. However, that can be overridden by specifying the name of another style as the second parameter, like this: ^r("Print!","WebGUI");

NOTES: You can also use the special case ^r(linkonly); to return only the URL to the make printable page and nothing more. Also, the .makePrintableLink style sheet class is tied to this macro.

^RootTitle;
Returns the title of the root of the current page. For instance, the main root in WebGUI is the "Home" page. Many advanced sites have many roots and thus need a way to display to the user which root they are in.

^u; - Company URL
The URL for your company specified in the settings by your Administrator.

^?; - Search
Add a search box to the page. The search box is tied to WebGUI's built-in search engine.

NOTE: The .searchBox style sheet class is tied to this macro.

^Spacer();
Create a spacer in your layout. Great for creating blocks of color with divs and tables. It takes two parameters, width and height.

Example: ^Spacer("100","50");

^-;
This is known as the separator macro. It must appear exactly once in every style. Wherever it appears is where the content for any given page will be put.

Se vidare:

Ändrad: 2 december 2008

Hyttsten