1
fredski
TinyD and Smarty Meta Tags
  • 2005/3/17 11:44

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Im using the tinyd content modules for quite a few pages of various content throughout my site. The problem I'm having is that although my static pages were ranked quite high in the search engines, now that they are wrapped into XOOPS they all have the title of the module as its meta title i.e ideal handling - tinycontent0 or ideal handling - tinycontent1. How can I use the smarty variables to take the title given to the article in tinycontent and use that for the page title? Custom keywords would be an advantage also, but that isn't as important as me getting the page titles back.

I've read smarty-xoops tips pdf file but as I'm not a coder just someone slightly above cut and paste I couldn't work out how to use the following with tinyd:

Page Title <{$xoops_pagetitle}>
Page title plays a very important role in searching engine rankingThe stock XOOPS distribution
by 
default assigns the module name as the page title for every pages of a particular module.
This definitely will not help you improve your rankingGoogle and other search engines rely
heavily on page titles in page ranking all other factors considered
A page from PR5 site may
rank well ahead of a similar page from a PR7 site due to the simple fact that the page from PR5
has a page title with all relevant “key words” 
while the PR7 page does not.
There are several hacks of implementing page titlesIt may sound a daunting task in assigning
your own page title
It is really not complicated if you understand the working of Smarty.
You can just simply overwrite the Smarty variable at display-time with your own page title.
For 
example, if we want to display an individual download name as the page title under
singlefile
.php.
We know from reading the file that $dtitle is assigned as the title of an individual download
name
Knowing thisnow we can assign it as page title.
Add
$xoopsTpl
->assign('xoops_pagetitle'$dtitle);
before
include XOOPS_ROOT_PATH.'/include/comment_view.php';
include 
XOOPS_ROOT_PATH.'/footer.php';
We now have a unique page title for every downloadVery simpleIt is and should be.
Meta keywords
The value of meta keywords in searching engine rankings is highly debatable
Google pays no
attention to meta keywords
Yahoo! and MSN may or may not assign weight to keywords.
Even they do, the weight may be much less than those of your page titles.
Although it may not help in most casesthere is no harm in implementing custom keywordsIn
case that you want to implement custom keywords for your pagesthe followings are steps that
you could accomplish the feature
.
It will require modifications to theme.html file and individual pages.
Let’s say we also want to include the download name in the metakeywordsWhat we want is
simply “add” the download name into the XOOPS metakeywords
We will assign a Smarty
variable 
for the download name and add as part of theme.html file.
Here are the steps:
Add (singlefile.php)
$xoopsTpl->assign('xoops_customkeywords'$dtitle);
before
include XOOPS_ROOT_PATH.'/include/comment_view.php';
include 
XOOPS_ROOT_PATH.'/footer.php';


Any help would be much appreciated, thanks.

2
fredski
Re: TinyD and Smarty Meta Tags
  • 2005/3/18 14:09

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Anyone?

Pretty Please

3
fredski
Re: TinyD and Smarty Meta Tags
  • 2005/3/21 12:07

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Cry

4
yeziha
Re: TinyD and Smarty Meta Tags
  • 2005/3/22 19:20

  • yeziha

  • Just popping in

  • Posts: 39

  • Since: 2005/2/22


I set titles on my site - it's quite simple
(myself is no coder )

When you load you page you open either index.php file
in the module folder or yourpage.php file, if you don't use a module.


instead of the
$xoopsTpl->assign('xoops_pagetitle', $dtitle);

put
$xoopsTpl->assign('xoops_pagetitle', "Your page title content");

before
include '../../footer.php';

That worked perfectly!
Hope that helps and it's not too late

5
fredski
Re: TinyD and Smarty Meta Tags
  • 2005/4/11 12:49

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


It's ok I went tohttp://www.peak.ne.jp/xoops/ and downloaded a newer version, now it displays XOOPS page titles bases on each individual content page :)

Login

Who's Online

264 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 264


more...

Donat-O-Meter

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

Latest GitHub Commits