uartur1
  uartur1
Silver Member
  Friday, 02 November 2018
  16 Replies
  1.2K Visits
0
Votes
Undo
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
6 years ago
·
#207051
Accepted Answer
0
Votes
Undo
In the latest events module you need to set:

Disable default CSS Date Field Style

To Yes

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#206933
0
Votes
Undo
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>

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#206944
0
Votes
Undo
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
·
#206949
0
Votes
Undo
Where are you included this tag?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#206951
0
Votes
Undo
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
·
#206953
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#206955
0
Votes
Undo
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
·
#206966
0
Votes
Undo
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>

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#206971
0
Votes
Undo
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
·
#207012
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#207022
0
Votes
Undo
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
·
#207038
0
Votes
Undo
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>

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#207040
0
Votes
Undo
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
·
#207043
0
Votes
Undo
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.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#207046
0
Votes
Undo
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
·
#207051
Accepted Answer
0
Votes
Undo
In the latest events module you need to set:

Disable default CSS Date Field Style

To Yes

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

6 years ago
·
#207148
0
Votes
Undo
Thank you...
  • Page :
  • 1
There are no replies made for this post yet.