วิธีปรับแต่งการแสดงผล sitename และ article title ใน joomla

เรื่องราวและพัฒนาการของ iChiangRai บันทึกจากผู้ดูแลเว็บไซต์ ตลอดจนข้อเสนอแนะจากชุมชน | iChiangRai history, webmaster notes, community feedback and website updates.
Post Reply
Sam
Site Admin
Posts: 1806
Joined: Sun Mar 11, 2007 9:03 pm
Location: เชียงราย
Contact:

วิธีปรับแต่งการแสดงผล sitename และ article title ใน joomla

Post by Sam »

How to remove (-) hyphens from Joomla Website Page Titles

I have came across this problem a lot of times and atlast, have fixed it with a core hack. I know,many of you are having the same problem. I mean, you can have problems like seeing the site titles showing two times on the page browser title bar or showing extra (-) hyphens on the start of the page title.

Its very frustrating.

So, here is a good fix,

1. Open your template's index.php or any config php page,which is linking inside your index.php , from where the page title is defined. That code will be something like this,

Code: Select all

 $this->setTitle($mainframe->getCfg('sitename') . ' - ' . $this->getTitle());
Just replace it with,

Code: Select all

 $this->setTitle($this->getTitle());
Thats it. Its Done!
ที่มา: http://www.joomlahackers.net/joomla-tut ... itles.html" onclick="window.open(this.href);return false;

Return to “iChiangRai Story, Notes & Feedback : เรื่องราว บันทึก และข้อเสนอแนะ”