1
Skype-Fr
Suggetions for xmNews & xSitemap
  • 10/10 13:19

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


I hesitated for a long time between choosing WordPress and Xoops to create an information site, essentially a news site (specialized content), similar to a journalistic site (no forum, no download library, or other diverse features). I was ready to go with WP, which is stronger in terms of SEO (its main advantage over Xoops), but ultimately, WP's block-based editor never convinced me and tipped the balance towards Xoops, a platform I know well.

For reasons that are a bit complicated to explain here, I should mention that my hosting environment is limited to PHP 7.33 and MySQL 8, which led me to choose Xoops 2.5.10, equipped with the xmNews and xSitemap modules.

Once the site was nearly finished, with about a dozen articles written, I faced a total de-indexation (all URLs returned 404 errors) due to a bug in the 'preloads' folder... It took me four days and nights to finally understand why and how it happened! I didn’t see any warning either during the installation of 2.5.10 or in the modules affected by this bug. However, it might be my own fault for not reading the documentation carefully enough, as I'm quite accustomed to setting up Xoops sites in earlier versions. I won’t dwell further on this, as it’s not the main focus of my topic.

I simply wanted to offer some suggestions about the xmNews and xSitemap modules in terms of SEO. This is important because even the most beautiful website in the world is useless if it doesn’t have any visitors!

1/ xmNews

It's important that every article complies with Google and Bing's recommendations.

xmNews offers a list of specific keywords for each article, but that doesn’t matter! It’s been a long time since the two main search engines stopped taking the “keywords” tag into account.

What really matters is the meta Title and Description. As for the Title, xmNews uses the article's title, which is great... but why mix it with the "sitename"? That’s counterproductive, the article title alone is sufficient. The sitename appears everywhere else, and search engines don’t like over-optimization!

Regarding the meta Description, it’s the same for every page, which is a real shame :(
I suggest generating the meta Description with the first 250 characters of the article’s summary (or scoop).

In the meantime, I will likely write some PHP code to modify the Article page and create a new Smarty variable with these 250 characters. However, I wonder if it's possible to achieve this directly in the article's template, since we already have the {$news} variable. I'm not skilled enough in Smarty coding to know if we can extract the first 250 characters from {$news} directly within the template... This would have the advantage of preserving the modification during a module update through template overrides.

Moreover, xmNews would be even better for SEO if there was a "canonical" tag. For now, I’ve added this "canonical" tag myself with a modification to the template that looks like this:


    <{if 
$xoops_requesturi == '/modules/xmnews/index.php' or $xoops_requesturi == '/modules/xmnews/index.php' or $xoops_requesturi == '/modules/xmnews/'}>
    <
link rel="canonical" href="<{$xoops_url}>/" /> 
    <{else}>
    <
link rel="canonical" href="<{$xoops_url}><{$xoops_requesturi}>" />
    <{/if}>


Finally, the 'must-have' would be specific OpenGraph tags for each article (and even for the whole site)

2/ xSitemap

The very existence of a sitemap is SEO, right? So why not do the job completely!
xSitemap should reference the URL of each article! Why does it limit itself to referencing categories? Google and Bing love when we point out the specific URLs we want them to index. Otherwise, they wouldn’t have invented sitemaps!

Of course, these are just personal suggestions, but I believe they could really improve the traffic for a site built with these modules...

Regards / Gerard

2
Skype-Fr
Re: Suggetions for xmNews & xSitemap
  • 10/10 15:11

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


correction : if, like me, you have ‘xmNews’ on your home page :

<{if $xoops_requesturi == '/modules/xmnews/index.php' or $xoops_requesturi == '/modules/xmnews/'}>
    <
link rel="canonical" href="<{$xoops_url}>/" /> 
    <{else}>
    <
link rel="canonical" href="<{$xoops_url}><{$xoops_requesturi}>" />
    <{/if}>

3
Skype-Fr
Re: Suggetions for xmNews & xSitemap
  • 10/11 9:01

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


Hi all,

Sorry, my mistake, with a recent theme xmNews offers a specific Meta Description of the article with 80 characters ... Finally xmNews is doing the right job!

4
Mamba
Re: Suggetions for xmNews & xSitemap

Thank you very much for providing all the feedback and suggestions.

So is everything working now correctly? Or is there anything to be fixed? If yes, what and how?

Since this is Open Source, we always appreciate helping us with fixing bugs and improving functionality.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

188 user(s) are online (32 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

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

Latest GitHub Commits