By uartur1 on Friday, 02 November 2018
Replies 16
Likes 0
Views 1.2K
Votes 0
Hi,
What is the correct date code for schema.org in the Latest Events Module.
I try, for example: <span itemprop="startDate" content="{{Start Date Date:STARTDATE;%d-%m-%Y}}">${startDate(%d-%m-%Y)}</span> and it does not work properly.

Artur
Joomla 3.8.13, Jevents 3.4.48 Stable
In the latest events module you need to set:

Disable default CSS Date Field Style

To Yes

Many thanks
Tony
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Please see:

https://schema.org/startDate

So you can use something like:

<span itemprop="startDate" content="{{Start Date Date:STARTDATE;%Y-%m-%dT%l:%M}}">${startDate(%d-%m-%Y)}</span>
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you but unfortunately the problem is elsewhere...

Every think is ok in main component, when I have to write code, without $:
<span itemprop="startDate" content="{{Start Date:STARTDATE;%Y-%m-%d}}">{{Start Date:STARTDATE;%A, %d %B %Y}}</span>

This is print screen:
schema-error.jpg
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Where are you included this tag?
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
In JEvents - Latest Events Module.Custom code. This tag:
<span itemprop="startDate" content="{{Start Date Date:STARTDATE;%Y-%m-%dT%l:%M}}">${startDate(%d-%m-%Y)}</span>
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
So that would never work there, the above is for the event details.

See: https://www.jevents.net/frequently-asked-questions/custom-format-strings

for the custom format string.

Many thanks
Tony
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I know it.
I am asking about itemprop. I don't know what I have to write in <span itemprop="startDate" content="xxxxxxxxxxxx">.
I tried many things... :-(
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

This document as point to before clearly states what ItemProp needs: https://schema.org/startDate

And I provided the solution for the event details tag for it. You now want it in the latest events module for which I provided the link with some reading can show how to convert it.

It would be along the lines of:
<span itemprop="startDate" content="${Start Date Date:STARTDATE;%Y-%m-%dT%l:%M}">${startDate(%d-%m-%Y)}</span>
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Helo Tony.
I think, schema.org 'doesn't see' value of content. Look at this, please:
https://search.google.com/structured-data/testing-tool?hl=pl#url=https%3A%2F%2Fwww.konferencjemedyczne.info%2F
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You are still using:
{{Start Date:STARTDATE}}

I've shown you above what to use yet you haven't updated the code with it? Noting this is a customisation you are trying to do which isn't a native part of JEvents.

Many thanks
Tony
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I try different possibilities. I also tried the code above (now it's typed) but it also does not work. Please check yourself (Education Events, first position: https://search.google.com/structured-data/testing-tool?hl=pl#url=https%3A%2F%2Fwww.konferencjemedyczne.info%2F)

You can see in the source code: <span itemprop="startDate" content="{{Start Date Date:STARTDATE;%Y-%m-%dT%l:%M}}"><span class="mod_events_latest_date">17-11-2018</span></span>

The code entered:<span itemprop="startDate" content="{{Start Date Date:STARTDATE;%Y-%m-%dT%l:%M}}">${startDate(%d-%m-%Y)}</span>
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

Why are you not using what I have provided???


<span itemprop="startDate" content="${Start Date Date:STARTDATE;%Y-%m-%dT%l:%M}">${startDate(%d-%m-%Y)}</span>
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I used this code. That's exactly what it is. :-)
I copied and pasted into the module. But schema.org does not see the value of content ...

My code in module:
<span itemprop="startDate" content="${Start Date Date:STARTDATE;%Y-%m-%dT%l:%M}">${startDate(%d-%m-%Y)}</span>


Source code in schema.org:
<span itemprop="startDate" content=""><span class="mod_events_latest_date">09-11-2018</span></span>


Look at the attachment, please.
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect so that now shows a typo in my code it should be:


<span itemprop="startDate" content="${startDate(%Y-%m-%dT%l:%M)}">${startDate(%d-%m-%Y)}</span>


Should work.
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Now I have an error when the date on the page is displayed:
2018-11-09T 8:00">09-11-2018 do 10-11-2018

And error in schema.org:
<span class= (Nie można odczytać wartości <span class= jako daty/godziny. Dowiedz się więcej na temat formatów daty/godziny.)

(The value <span class = as date / time can not be read. Learn more about date / time formats.
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you...
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post