WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Recipe structured data markup
  • Print
Pages: [1]   Go Down

Author Topic: Recipe structured data markup  (Read 8374 times)

Offline RonR

  • Posts: 59
Recipe structured data markup
« on: June 21, 2019, 10:49:26 AM »
Using 2.12.1 and add-on like SocialBaker among others.

Question is how to add recipe structured data markup to some pages, not all.
The socialBaker markup is working (perfectly!) for all pages.

How can I make a markup in the <head> section that can be written on a per-page-basis. Is there an add-on that does that?

Hope to learn from you!

Logged

Offline evaki

  • Posts: 2810
Re: Recipe structured data markup
« Reply #1 on: June 21, 2019, 03:49:50 PM »
1.)
Settings > Advanced Options > Server Settings > Section-Anchor text:
Sec none
2.)
info.php =
 $block[1]             = 'MainContent';
 $block[2]             = 'HeaderContent';
 3.)
 Template =
    <?php page_content(2); ?>
</head>

Wysiwyg or Code-Modul
Code =

Code: [Select]
?>
wat you want
  :-D

Reg./MfG. Evaki
ps. If you operate with Code you need Code-Modul with Patch
https://forum.WebsiteBaker.org/index.php/topic,31485.msg220249.html#msg220249
« Last Edit: June 21, 2019, 03:59:00 PM by evaki »
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8915
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Recipe structured data markup
« Reply #2 on: June 21, 2019, 04:29:31 PM »
Good way from evaki.
A other way could be:
- index.php of the template
- between <head> and </head> something like this

Code: [Select]
<?php if (PAGE_ID == 1) { ?>
     
    your HTML Code here ...
   
<?php } ?>

1 = the page id of your wished page. page id's are displayed on the right side in page overview in backend.
Logged
https://onkel-franky.de

Offline RonR

  • Posts: 59
Re: Recipe structured data markup
« Reply #3 on: June 21, 2019, 04:35:48 PM »
Ahh, got it. Thank you for your help.

Small question:
at 1. the section-anchor text now says:  wb_
I can delete that safely and leave it blank?

I will get the patched code module, thanks!

Ron
Logged

Offline RonR

  • Posts: 59
Re: Recipe structured data markup
« Reply #4 on: June 21, 2019, 04:40:23 PM »
@dbs: also possible, but for 25 recipes a bit of long code. But thanks for you input.

I prefer evaki's solution that can also be edited in the admin.

Logged

Offline evaki

  • Posts: 2810
Re: Recipe structured data markup
« Reply #5 on: June 21, 2019, 04:43:35 PM »
@dbs
Kann leider nur kurz, deshalb deutsch.
Explizit Text = none    - nicht leer/blanc
Es kann nun mit Code auf jeder Seite indiviuell xyz eingefügt werden, ist also seitenorientiert 
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8915
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Recipe structured data markup
« Reply #6 on: June 21, 2019, 04:48:20 PM »
What the artist try to say: you need really the word "none". Not nothing.  :)
Logged
https://onkel-franky.de

Offline evaki

  • Posts: 2810
Re: Recipe structured data markup
« Reply #7 on: June 21, 2019, 05:17:25 PM »
<internal>
Code ist in der aktuellen Version mit dem kleinen Patch für fast alles gut  :-D  8-)
Unter anderem auch um das an anderer Stelle erwähnte XML zu parsen.
Fehlt nur noch'n xml-Editor - da bin ich selbst "auf der Lauer".
Ich selbst hatte nämlich "früher" z.B. immer Probleme beim Erstellen von Playlists. Grauselig, das nicht im WB machen zu können. Aber so langsam geht's in die von uns  - und auch mir - gewünschte Richtung.
Eigentlich wollten wir des öfteren nur Schnittstellen zu anderen Anwendungen.
Mit php ab v5.xx und mittlerweile v7.xx läßt sich da 'ne Menge mehr machen, eben speziell mit diesem Code-Modul.
</internal>
MfG. Evaki
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8915
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Recipe structured data markup
« Reply #8 on: June 21, 2019, 05:38:02 PM »
@internal: not tested yet codeX.
But a suggestion for later versions. buttons:
- save
- save & back
Logged
https://onkel-franky.de

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Recipe structured data markup
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2