How can I modify the dedecms homepage? Solution

Source: Internet
Author: User
How can I modify the dedecms homepage? I personally don't like dedecms's default homepage layout. I can see a good template on the Internet, but I don't know how to replace it. In addition, replace the link in the new template with what I need. If you know something, give it a thought. The more detailed, the better. thank you !, I will discuss my personal dislike of dedecms's default homepage layout. I can see a good template on the Internet, but I don't know how to replace it. And how can I modify the dedecms homepage?
I personally don't like dedecms's default homepage layout. I can see a good template on the Internet, but I don't know how to replace it. In addition, replace the link in the new template with what I need. If you know something, give it a thought. The more detailed, the better. thank you!

------ Solution --------------------
Discussion
I personally don't like dedecms's default homepage layout. I can see a good template on the Internet, but I don't know how to replace it. In addition, replace the link in the new template with what I need. If you know something, give it a thought. The more detailed, the better. thank you!

------ Solution --------------------
Zhimeng dedeCMS modify the number of entries displayed in the list» Zhimeng dedeCMS tips and methods for modifying homepage headlines


1. add a background image to the homepage headlines
In \ templets \ style \ page.css, find:

. Index. bignews. onenews {
Padding: 8px 12px;
Border-bottom: 1px solid # EBEBEB;

To:
. Index. bignews. onenews {
Padding: 8px 12px;
Background: url (../images/bignews_bg.gif) top center no-repeat; // This is where the background image is added. you can slightly tune the padding according to the appearance.
Border-bottom: 1px solid # EBEBEB;


2. center headers on the homepage:
In \ templets \ default \ index.html
Find [field: title/]
Change to [field: title/] to center


3. Title length of the homepage headlines:
Open index.htm
Find the following content:


{Dede: arclist flag = 'h' limit = '0, 1 '}
[Field: title/]

[Field: description/]... [View Full Text]


{/Dede: arclist}



Find this line: {dede: arclist flag = 'h' limit = '0, 1 '}
Add titlelen = 'expected number'. if you want to display 20 Chinese characters, add titlelen = '40'
That is: {dede: arclist titlelen = '40' flag = 'h' limit = '0, 1 '}
Each 2 characters is equal to one Chinese character!


4. advertisement 420X60 on the top of the homepage headlines:
Find this code in the index.htm template,




Insert the advertisement code here. you can use the div for easy positioning.
------ Solution --------------------
In \ dedecms \ templets \ default, this is the default template file of Zhimeng.

After logging on to the background, click "system" on the left"

System> Site Settings> default template style
The specific modification of the dream template tag is not clear in a few words. go to the official website to find the help documentation.

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.