[Translation] orchard-Modify the homepage Layout

Source: Internet
Author: User
Preface

The default topic of orchard in your site is "theme machine ". this topic includes a CSS style and a layout framework. orchard allows you to select or exclude the layout displayed on each page of your site. by default, the highlighted blue area is displayed on the home page.

NavigationContains a menu. The new site has only one home tag.Tripelfirst, triplesecondAndTriplethirdIt is displayed at the bottom of the page.

Each page has a central area (in this example, "Welcome to Orchard" to "Thank you for using Orchard ").Body.

Although theme machine has defined many areas, the home page will display only when widgets is added to that area (navigation, tripelfirst, the content of tripelsecond and tripelthird is displayed on the home page because they contain widgets)

Modify default Layout

1) select from the dashboardWidgets

By default, the 'default' layout is displayed on the widgets Management page. The enabled areas of the layout are displayed on all pages. in the figure, navigation is enabled. In the figure, the main menu widget is marked as green, indicating that it has been added to the defaut layout. Therefore, we can see it on all the pages.Main MenuWidget.

2) SelectHomepageLayout to see which areas are enabled on the home page.

All widgets added to the area are marked green (firstleaderaside, secondleaderaside, and thirdleaderaside). The widgets that have been added to other layout areas are marked as gray (main menu ).

3) RemoveThird Leader asideWidget.

After being removed, tripelthird will not be displayed on the homepage.

4)Add a widget in tripelthird

5)SelectHTML widgetWidget category

6)Set widget title and content

7) SaveNew widget.

8)Refresh your site to see the following results

Create a layout

You can add a layout to set certain page usage. For example, you have createdDownloadsPage. Then you can place some widgets, but they are only displayed inDownloads page.

1)Go to the dashboard and selectWidgets. Then clickAdd a new layerAdd a new page.

2)Enter the name, description, and rule for the new layout.URL "~ /Download"Indicates the download page (you can set the page address permalink when creating the page). This indicates orchard. If you access the download page, the page displays the new layout.

3)Add a widget to your new layout.Asidefirst.

4)SelectHTML widget.

5)Compile the title and content

6)Save and refresh the page. Select the Downloads page to view the effect.

Original article: http://docs.orchardproject.net/Documentation/Getting-Started

(Only the homepage layout modified is translated)

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.