Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Each page have it's own title would be nice
by karuna on 2004/4/19 16:30:27

Hi i finaly got it works~~

le="color: #000000"><?php $xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsModule->name() . ' - ' . $article->title()));


i have to change htmlentities to htmlspecialchars because my site is in Chinese.

Thanks
Re: Each page have it's own title would be nice
by tl on 2004/4/17 4:21:19

If $xoops_pagetitle were to be assigned manually in the module, it would work, but only the first time.

If I were to refesh the same page, the assigned one would be replaced by the Xoops-assigned.

It would be great if the assigned pagetitle could stick.
Re: Each page have it's own title would be nice
by Koreus on 2004/3/31 22:16:20

I saw that too , I have cache enabled , sometimes it works (title is ok) and it does not.

I dont understand why but I havent search

Perhaps when the cache is enabled it doesnt fetch the title (article, download, links) in database but just read/show the cached html file.

I don't know how cache file is generated but perhaps it should be changed to include the title.

Re: Each page have it's own title would be nice
by kenogui on 2004/3/31 12:43:17

this hack works just fine, but the main pb is that it's not working anymore if you have cache enabled on your site !

any idea about that ? just try to see twice a news uncached/then cached and you will see ...
Re: Each page have it's own title would be nice
by Koreus on 2004/3/20 14:19:29

Thanks it works great !

It is same method for modules mydownloads and mylinks

For mydownloads the title variable is just $title
You can add the program version with variable $version

For mylinks title variable is $ltitle

Who's Online

198 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 198


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits