Mojoportal learning-Article translation-mojoportal skin Template

Source: Internet
Author: User

Sorry for the poor translation.

 

It is very easy to create a mojoportal template. Find an existing template, copy it, and modify it.

You don't know much about it. You will find it easy to use artisteer to create a template.

Storage location of template files

The template file is stored in the/data/sites/[siteid]/skins folder. In this way, skin templates can be independent for multiple sites.

When a new website is created, the template file is copied from the/data/skins folder to the/data/sites/[new site id]/skins folder.

You need to know:

1: When you modify the CSS file, you cannot see the changes when refreshing the browser. This is because the CSS is cached on the server and

Browser, so when you modify the template, You need to disable CSS cache by adding the following code in the user. config file:

<Add key = "cachecssonserver" value = "false"/>
<Add key = "cachecssinbrowser" value = "false"/>

After that, place a space in the web. config file to let the Order know that things have changed.

After the design is complete, the cache is started, so that a good performance can be achieved.

Design Process:
Firefoxbrowser should be used first. This is a comparison standard browser. Later, if the display is abnormal in IE, you can use iespecific.css
Ie7specific.css. Do not design it directly in IE, which may cause problems when using other browsers.

CSS troubleshooting

By default, mojoportal Note: The s processor combines all CSS files in the style. config file. Directly accessing the CSS file makes it difficult to see what happened on the CSS file.

You can perform the following operations before debugging the CSS file:

<Add key = "minifycss" value = "true"/>
<Add key = "combinecss" value = "true"/>

Generally, you can disable minifycss.

Note:

When defining a background image in a CSS file, use single quotes as follows:

Url('someimage.png ');

Instead:

URL ("someimage.png ");

Template structure:

Currently, there are very few practical tables for layout, but sometimes practical tables are used when data is displayed.

Composition of mojoportal skin:

(1): folder named after Template Name
(2): layout. Master
(3): theme. Skin (not recommended)
(4); style. config (configuration file containing CSS file)
 
Do not contain spaces in the folder name or file name.
 
The design template is that most of the work is carried out around CSS files, and a small part is carried out in layout. master.
 
 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.