2017-11-14 5 views
0

schema.org属性でテンプレートを展開しようとしていますが、次の質問があります。どのプロパティでタイプEducationalOrganizationの営業時間を指定できますか?残念ながら、openingHoursプロパティはここでは使用できません。また、EducationalOrganizationのようなタイプはありません。ここで構造化データ(schema.org) - 教育組織向けオープニングリソース

は、私のコードの現在の状態です:

これが不可能な場合、私は にitemprop =「openingHours」プロパティを使用するには、この場合に使用するか、または別のworkarountがあることができますどのような種類の
<div itemscope itemtype="http://schema.org/EducationalOrganization" class="ce_text address block"> 
    <div class="text_container"> 
     <p> 
      <span> 
       <strong itemprop="name"><?php echo $this->field('company')->value(); ?></strong><br> 
      </span> 
     <p itemscope itemtype="http://schema.org/PostalAddress" itemprop="address"> 
      <span itemprop="streetAddress"> 
       <?php echo $this->field('street')->value(); ?><br> 
      </span> 
      <span itemprop="postalCode"> 
       <?php echo $this->field('zipcode')->value(); ?> 
      </span> 
      <span itemprop="addressLocality"> 
       <?php echo $this->field('place')->value(); ?> 
      </span> 
     </p> 
     <p> 
      Aus dem Ausland: <span itemprop="telephone"><?php echo $this->field('phone_foreign')->value(); ?></span><br> 
      Fax: <span itemprop="telephone"><?php echo $this->field('fax')->value(); ?></span> 
     </p> 
     <p itemscope itemtype="??????"> <!-- What type can I use here? --> 
      <strong>Öffnungszeiten:</strong><br> 
      Montag bis Donnerstag: <meta itemprop="openingHours" content="Mo-Th 08:00-18:00"><?php echo $this->field('mothu')->value(); ?><br> 
      Freitag: <meta itemprop="openingHours" content="Fr 08:00-15:00"><?php echo $this->field('fri')->value(); ?> 
     </p> <!-- Öffnungszeiten Ende --> 
    </div> 
</div> 


UPDATE:

私はその間に、このソリューションを選択しました。それはGoogleによってきれいに読み出され、私達の会社の場合にはより意味があります。

<div itemscope itemtype="http://schema.org/Service"> 
     <strong>Öffnungszeiten:</strong><br> 
     Montag bis Donnerstag: <?php echo $this->field('mothu')->value(); ?><br> 
     Freitag: <?php echo $this->field('fri')->value(); ?> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Monday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Tuesday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Wednesday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Thursday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Friday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="15:00:00"></time> 
     </div> 
    </div> 
+0

開封時間は正確に何ですか?オフィスに行くには?電話の場合は? – unor

+0

@unor営業時間は、電話サービスと、受講者が来て頂く機会がある営業時間です。 – Codehan25

+0

@ Codehan25 EducationalOrganizationプロパティが組織に適用されることに注意してください。しかし、プロパティhttp://schema.org/Serviceは、組織が提供するサービスに使用されます。これらは、適用するさまざまな方法です。 – nikant25

答えて

0

似たような作成:

<main itemscope itemtype="http://schema.org/EducationalOrganization"> 
 
<h1 itemprop="name">Name of Organization</h1> 
 
<section itemprop=contactPoint itemscope itemtype=http://schema.org/ContactPoint> 
 
    <h2>Opening hours</h2> 
 
    <meta itemprop="hoursAvailable" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00"> 
 
    <p>Normally open daily <time datetime="09:00">9am</time>-<time datetime="14:00">2pm</time></p> 
 
</section> 
 
</main>

this Google tool上の構造化されたデータを確認し、必要なデータを設定します。お役に立てれば。

+0

あなたのヒントをありがとう。それは非常によく働く。しかし、その間に私は別の解決策を決めました。私は上記の私のポストを更新し、私のソリューションを追加しました。 – Codehan25

+1

@ Codehan25:質問欄に解決策を追加する代わりに、それを編集して回答を作成してください:) – unor

0

CivicStructureまたはGovernmentOfficeをお試しください。
学校、大学などの教育機関では、営業時間の範囲を指定する必要はありません。あなたの組織は教育的ではないかもしれないし、組織のために別のスコープを使用することもできます。

+0

当社は、スポーツ業界(パーソナルトレーナー、フィットネストレーナーなど)でさまざまな遠隔学習プログラムを提供する遠隔教育機関です。そういうわけで私は「EducationalOrganization」のタイプを選んだのです。あなたの意見では、別のタイプの方が良いでしょうか? – Codehan25

+1

このアクティビティから利益を得ているので、私はあなたに最も適していると思いますitemtype LocalBusiness –

+0

@ Codehan25トレーニングがコースの場合、http://schema.org/hasCourseInstance要素をプロパティhttp:// schemaに適用できます.org/CourseInstanceまたはhttp://schema.org/Course – nikant25

0

UPDATE/SOLUTION:

私はその間に、このソリューションを選択しました。それはGoogleによってきれいに読み出され、私達の会社の場合にはより意味があります。

<div itemscope itemtype="http://schema.org/Service"> 
     <strong>Öffnungszeiten:</strong><br> 
     Montag bis Donnerstag: <?php echo $this->field('mothu')->value(); ?><br> 
     Freitag: <?php echo $this->field('fri')->value(); ?> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Monday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Tuesday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Wednesday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Thursday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="18:00:00"></time> 
     </div> 
     <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> 
      <link itemprop="dayOfWeek" href="http://schema.org/Friday" /> 
      <time itemprop="opens" content="08:00:00"></time> 
      <time itemprop="closes" content="15:00:00"></time> 
     </div> 
    </div> 
関連する問題