1
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 ranking. The 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 ranking. Google 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 titles. It 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 this, now 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 download. Very simple? It 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 cases, there is no harm in implementing custom keywords. In
case that you want to implement custom keywords for your pages, the 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 metakeywords. What 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.