tl;dr – I just want the script: press2id-latest.zip.
Connect Adobe InDesign to a WordPress Blog
Detailed infos are found at publishing.blog [DE] and publishing.blog ACF [DE] by @haemeulrich
press2id is successfully used with the following publications. If you also use it and want to be added to this list, just send a message!
Scripts Panel
to your InDesign Scripts Panel. If you never installed a script, help is here:
The script places WordPress posts in the active Document. See details in the [german how to](#Wie geht das?)
press2id_PlaceGun.idml
from the examples
folder.https://www.indesignblog.com/
If you want to add several Posts in document you can try the Fill Masterspread mode.
W-Wordpress
you can use the file press2id_Masterspread.idml
from the examples
folder.wordrepss_basic.idml
and a XSL-Transformation wordrepss_basic.xsl
from the folder templates
for basic styling. HTML element names are mapped to InDesign styles by element names. Change any style definition here.h1
...h6
, p
, quote
and some moreul
and ol
b
, i
, em
, strong
, span
figure
, img
and caption
a
press2id.jsx
. Bevor du loslegen kannst, brauchst du ein geöffnetes Dokument. Das kann ganz leer sein. Wichtig ist nur, dass es gespeichert ist. Der Speicherort ist notwendig, da press2id die Bider im Ordner Links neben dem Dokument speichert. Alternativ kannst du auch das CC 2020 Dokument press2id_PlaceGun.idml
(CC 2020) aus dem Ordner Example Files
verwenden. Hier sind dann alle Schriften aus dem danebenliegenden Ordner Document Fonts
aktiviert.
Starte jetzt das Skript mit einem Doppelklick auf press2id.jsx
. Das Fenster mit den Einstellungen erscheint.
Du kannst deinen eigenen WordPress-Blog eintragen oder erstmal einen Artikel von meinem Blog verwenden z.B. den Beitrag
XML suchen und Text hinzufügen
.
Mit dem Datumsfilter kannst du die Auswahl der Beiträge eingrenzen. Wenn du ihn unverändert lässt, werden alle Beiträge des Blogs angezeigt.
Wähle einen Beitrag aus der Liste aus und drücke auf Platzieren.
press2id lädt nun den Inhalt und die Bilder herunter und lädt Sie in die PlaceGun des Mauszeigers. Die benötigten Formate werden automatisch erstellt. Nach dem Platzieren sieht das Ergebnis so aus:
Für die Formatierung der Texte werden Absatz- und Zeichenformate entsprechend den Namen der HTML-Elemente verwendet. Ein ganz normaler Absatz <p>
wird entsprechend in InDesign mit dem Absatzformat p
ausgezeichnet. Die Bilder <img>
werden wiederum mit dem Objektformat img
ausgezeichnet.
Wenn du mehr als einen Beitrag platzieren willst, benötigst du eine Musterseite mit dem Namen W-WordPress.
Auf der Musterseite W-WordPress müssen benannte Rahmen für den Inhalt und das Beitragsbild (Featured Image) erstellt werden. Namen für Rahmen können im Bedienfeld Ebenen zugewiesen werden. Für den Beitragsinhalt erstelle einen Textrahmen mit dem Namen content für das Beitragsbild einen Rechteckrahmen mit dem Namen featured-image
Im Dokument press2id_example.indd
ist das schon erledigt!
Wähle nun die gewünschten Beiträg aus der Liste aus und drücke auf Platzieren.
Das Skript setze jeden Beitrag auf eine Seite und befüllt die benannten Rahmen mit dem Inhalt. Wenn er länger als eine Seite ist, löst es den Textüberlauf auf. Für die Formatierung gelten die gleichen Regeln wie für einzelne Beiträge.
wordrepss_basic.idml
, die im Ordner templates
neben dem Skript liegt. Diese kannst du natürlich auch anpassen oder austauschen. Allerdings musst du dann bei einem Update aufpassen, dass deine Datei nicht überschrieben wird. Wenn du ein neues Template für dein individuelles Layout anlegen möchtest, kann es jedoch sinnvoll sein die Formate aus dieser Datei zu laden.