Microdata to Menu module Topic is solved

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
StefaNovak
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Jun 14, 2019 11:24 am

Microdata to Menu module

Post by StefaNovak » Thu Jul 29, 2021 11:58 am

Hi there,

I want to add schema microdata to each menu link.
I am rewriting mod_module, especially default.php, default_url.php.
Corrections in default.php are OK.
But if I want to work with URL, than I have some issues:

I cannot do this:
$linktype = '<span itemprop='"name">'. $item->title . '</span>';
On the frontend is it without itemprop.
But when I change word "itemprop" to "itomprop" it is there :(

The same issue I have with the link attribute:
$attributes['itemprop'] = 'url';

Would you be so kind and help me please.
What I do wrong?

Thanks in advance, Stefan

StefaNovak
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Jun 14, 2019 11:24 am

Re: Microdata to Menu module

Post by StefaNovak » Thu Jul 29, 2021 4:05 pm

I found the issue with Tassos Google Structured Data extension.
If this is disabled all works well.


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”