Questions about how to display browser labels as the title of an article

Source: Internet
Author: User
This post was last edited by lan12050972 from 2014-03-0415: 34: 12 in a news management system of the company, after the news is published, each page is displayed with a website name. I want to modify the title of each article after making a piece of news. This is also suitable for other tools. Thank you. This is the address 192.16 when the connection is opened. the browser label is displayed as the article title.

This post was last edited by lan12050972 at 15:34:12

A news management system of the company. after publishing news, each page is displayed as a website name. I want to modify the title of each article after making a piece of news. This is also suitable for other tools.
Thank you.
This is the connection address http: // 192.168.0.253: 8088/business/index. php? M = index & a = actionClass & actype = content & fid = 2 & cid = 2 it is determined by cid = X to open an article.

This is the template source code for displaying the article






<? Php echo $ SITETITLE;?>// Modify the title of the displayed article here














  • {$ Rs. title}




Company article management system










{$ Rs. title}

Edit {$ rs. aut}/{$ rs. time | date = "Y-m-d ",###}


{$ Rs. content}













This is what I did when I opened an article.

------ Solution --------------------
Then, in the php background, query the article title in the database through cid = 2 and assign a value to $ SITETITLE to upload it to the page.
------ Solution --------------------
Put this in {$ rs. title} Location
------ Solution --------------------
Reference:
Quote: reference:

Then, in the php background, query the article title in the database through cid = 2 and assign a value to $ SITETITLE to upload it to the page.


How can I query the cid number opened on the current webpage?

Didn't you open it through the link? Http: // 192.168.0.253: 8088/business/index. php? M = index & a = actionClass & actype = content & fid = 2 & cid = 2?
$ Cid = $ _ GET ['CID'];
------ Solution --------------------
Thinkphp I have never used it. you can see how you call other databases.
------ Solution --------------------
$ Rs. title is actually $ rs ['title']
So <? Php echo $ rs ['title'];?>
If not, your code does not follow the normal TP framework process ..
In fact, there is also a stupid way to respond to emergencies.
It is to use JQUERY to retrieve the title instead of the content in the title.
$ (Function (){
$ ('Title'). text ($ ('h3 '). text ());
})

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.