#410 – Tokens are not replaced

Posted in ‘J4Schema’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 17 November 2014 17:37 CET
serguei_kp
 Hi, can you help me please,

the token value is not displayed in html output of the page, the html looks like this:
<div class="item-page" {article_wrapper}="">
<div {article_body}="">

The itemtype and itemprop are working well but itemscope quotes are not removed in the html output : <span itemscope="" itemtype="https://schema.org/ProductModel">Заказать трансфер</span>

You can look at screen shots attached.

Regards.
Custom Fields
Joomla! Version
 
Extension version (x.y.z)
5.2.0_pro
Tuesday, 18 November 2014 11:03 CET
tampe125
Hello,

at the moment tokens are case sensitive, so you have to use ARTICLE_WRAPPER instead of article_wrapper.
Moreover you don't have to add the ="" part, J4Schema will do the same automatically.
So your element should be something like this:

<div class="item-page" {ARTICLE_WRAPPER}>

Speaking of quotes, you don't have to worry about the empty value of the attribute itemscope, Schema.org will parse it correctly, so there's no need to remove ="".
signature.png
Tuesday, 18 November 2014 12:05 CET
serguei_kp
Hello, I didn't modify nothing in Edit Token menu, I just installed both template overrides.

In Edit tokens menu Tokens are all in upper case and I did not add ="", you can see the screen shot of token edit and list of tokens by default as they are after installation of the component.

A question: may be I didn't anderstand how token must look on html page ? Must <div> be displayed as <div {ARTICLE_WRAPPER}> and then replaced by value dinamically or like <div class="item-page" itemscope itemtype="https://schema.org/WebPage"> ?

May be it is php configuration issue, and I must modify something in php.ini ? Because I really didn't modify nothing, I just installed the compoent and template overrides and looked how it is rendered on the html page!

Best regards.
Tuesday, 18 November 2014 17:19 CET
tampe125
Is J4Schema system plugin enabled?
signature.png
Tuesday, 18 November 2014 17:22 CET
serguei_kp
Hi, I've activated it and now it works!

Thank you for help.

Regards.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

SUPPORT IS PROVIDED IN ENGLISH OR ITALIAN ONLY.
Please make sure that your question is not answered in the documentation before submitting a ticket.
It will save you time!

SUPPORT IS PROVIDED TO SUBSCRIBERS ONLY.
You can review all public tickets, but if you want to open a new ticket you must have a valid subscription.
You can purchase it here