Manual:Extension/ImportOfficeFiles: Difference between revisions

(Created page with "{{DISPLAYTITLE:Word Import}} {{BSVersion|bsvFrom=4.2|bsvTo=|bsvFeature=Der Word-Import ist}} ==What is the Word import?== The extension '''ImportOfficeFiles''' allows importin...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Word Import}}
{{DISPLAYTITLE:Word Import}}
{{BSVersion|bsvFrom=4.2|bsvTo=|bsvFeature=Der Word-Import ist}}
{{BSVersion|bsvFrom=4.2|bsvTo=|bsvFeature=The Word import is}}
==What is the Word import?==
==What is the Word import?==
The extension '''ImportOfficeFiles''' allows importing a Word document which will be converted to wiki pages.
The extension '''ImportOfficeFiles''' allows importing a Word document which will be converted to wiki pages.


* The file can be converted to a single page or to a page with subpages.
*The file can be converted to a single page or to a page with subpages.
* Image files are also imported.
*Image files are also imported.
* Imported pages can be used as a page collection for creating a book.
*Imported pages can be used as a page collection for creating a book.


==Import a word document==
==Import a word document==
Line 14: Line 14:
#'''Click''' ''Select a file'' or drag the Word file in the drop zone.[[File:Manual:importword-upoad.png|alt=Upload dialog|center|thumb|Upload dialog]]
#'''Click''' ''Select a file'' or drag the Word file in the drop zone.[[File:Manual:importword-upoad.png|alt=Upload dialog|center|thumb|Upload dialog]]
#'''Click''' ''Next''.
#'''Click''' ''Next''.
##  [[File:Manual:import-word-fileupload.png|alt=Selected Word file|center|thumb|Selected Word file]]
#'''Choose''' the import settings you want.[[File:Manual:importword-settings.png|alt=Settings|center|thumb|Settings]]
#'''Choose''' the import settings you want.[[File:Manual:importword-settings.png|alt=Settings|center|thumb|Settings]]
##'''Title''' Der Titel der Wikiseite, die durch den Import generiert wird. Wenn die Inhaltstruktur aufgebrochen wird, werden die Kapitel entsprechend als Unterseiten zu dieser Hauptseite angelegt.
##'''Title:'''The title of the wiki page generated by the import. When the content structure is broken up, the chapters are created as sub-pages of this main page.
##'''Content structure:'''  Wenn der Auswahlkasten "Inhalt auf Seiten aufteilen" aktiviert ist, werden aus den Überschrifts-Ebenen des Word-Dokuments Unterseiten erstellt. Dies ist bis zu 3 Ebenen tief möglich.
##'''Content structure:'''  If the "Split content to pages" checkbox is activated, subpages are created from the heading levels of the Word document. This is possible up to 3 levels deep.
##'''Conflicts with page title''':
##'''Conflicts with page title''':
##*''Rename:'' Die importierte Seite wird als ''Seitenname (1)'' erstellt. Dies sollte jedoch gerade bei großen Word-Dateien, die auf weitere Ebenen aufgeteilt werden, vermieden werden. Am besten sollte hier alternativ ein neuer Seitentitel angegeben werden. Ein Namenskonflikt wird in der Vorschau angezeigt. Klicken Sie in diesem Fall gegebenenfalls auf abbrechen, um den Import mit einem neuen Titel zu starten. Oder wählen Sie als Konfliktlösung "Überschreiben".[[Datei:importword-vorschau.png|alternativtext=Vorschau|zentriert|mini|550x550px|Vorschau]]
##*''Rename:'' The imported page is created as <p''age name>'' (1). However, this should be avoided, especially with large Word files that are divided into additional levels. It is best to enter a new page title here as an alternativeA naming conflict is displayed in the preview. In this case, if necessary, click Cancel to start the import with a new title. Or select "Override" as a conflict resolution.
##*''Override'': Die existierende Seite wird mit einer neuen Version überschrieben.[[Datei:wordimport-überschreiben.png|alternativtext=Titel überschreiben|zentriert|mini|350x350px|Titel überschreiben]]
##*''Override'': The existing page(s) will be overwritten with a new version.
#'''Click''' ''Next''.  <br />Die Vorschau zeigt:  (1) die Namen der Seiten, die angelegt werden  (2) über das Pfeil-Symbol: die Dateien, die für die einzelnen Seiten importiert werden  (3) über das Auge-Symbol: den Inhalt der einzelnen Wikiseiten.
#'''Click''' ''Next''.  <br />The preview shows:  (1) the names of the pages that will be created    (2) via the arrow icon: the files that will be imported for the individual pages  (3) via the eye icon: the content of the individual wiki pages.
#'''Klicken''' Sie ''Importieren''. Nach Abschluss des Imports werden die erstellten Seiten als Seitensammlung im Wiki angezeigt. Sie können von dieser Seite die Seiten ansehen, indem Sie auf den Link klicken.[[Datei:wordimport-abgeschlossen.png|alternativtext=Import abgeschlossen|zentriert|mini|450x450px|Import abgeschlossen]]
#'''Click''' ''<u>I</u>mport.'' After the import is complete, the created pages are displayed as a page collection in the wiki. You can view the pages from this page by clicking on the link.
{{Messagebox|boxtype=note|icon=|Note text=In a wiki installed with "German" as the content language (contentlanguage), the path to the page starts with ''MediaWiki:Page collection''.|bgcolor=}}


==Buch erstellen==
==Create a book==
Aus den importierten Seiten können Sie leicht ein Buch erstellen:
It is easy to create a book from the imported pages:


#Gehen Sie im Menü Globale Aktionen zu Bücher.
#'''Click''' the plus button.
#Klicken Sie die Plus-Schaltfläche.
#'''Enter''' a book title and click Done.
#Geben Sie einen Buchtitel an und klicken Sie Fertig.
#'''Click''' the Bulk Add button.
#Klicken Sie auf die Schaltfläche Massenzufügen.
#'''Select''' Page Collection as the source.
#Wählen Sie als Quelle Seitensammlung.
#'''Select t'''he page name of the imported file.[[File:ImportOffice-pagecollection.png|alt=Select page collection|center|thumb|450x450px|Select page collection]]The pages have been added.[[File:ImportOffice-bookpages.png|alt=Add book pages and save chapter navigation|center|thumb|650x650px|Add book pages and save chapter navigation]]
#Wählen Sie den Seitennamen der importierten Datei aus.[[Datei:wordimport-seitensammlung.png|verweis=https://de.wiki.bluespice.com/wiki/Datei:wordimport-seitensammlung.png|alternativtext=Seitensammlung wählen|zentriert|mini|450x450px|Seitensammlung wählen]]
#'''Choose''' ''Save and add book navigation to each wiki page'' from the '''Save''' menu.
#Wählen Sie im Speichern-Menü ''Speichern und Kapitelnavigation erstellen.''[[Datei:wordimport-buchnav.png|alternativtext=Buchnavigation erstellen|zentriert|mini|650x650px|Buchnavigation erstellen]]
#'''Click''' ''OK'' in the dialog "Change wikipage" associations. This will add the chapter navigation to each book in the page.[[File:ImportOffice-bookshelf tag.png|alt=add bookshelf tag to book pages|center|thumb|250x250px|add bookshelf tag to book pages]]
#Klicken Sie im Menü "Seitenzuornungen ändern" auf Okay.[[Datei:wordimport-buch-bookshelftag.png|alternativtext=Buchnavigation bestätigen|zentriert|mini|200x200px|Buchnavigation bestätigen]]{{Box Links|Thema1=[[Referenz:ImportOfficeFiles]]}}
The book is now available on the Bookshelf page of your wiki.
#
 
#
=== Change the display title of your book chapters ===
#
Since the display titles of the book pages show the path of the imported subpages, it makes sense to edit the display titles afterwards. To do this, open the book page in source edit mode and remove the path with the trailing "/".
 
[[File:ImportOffice-booksource1.png|alt=Changing the chapter titles|center|thumb|650x650px|Changing the chapter titles]]
If the book has a lot of pages, you can copy the source code into an editor like Notepad++ and replace the following text:<div>
|Employee handbook/
</div>Replace the text and t'''ake care that the vertical pipe''' after the actual page name and before the page title '''is the replacement text'''.<div>
|
</div>Copy the source code back to the wiki and save the book page.
 
[[File:ImportOffice-updatedbooktitles.png|alt=Updated book titles|center|thumb|650x650px|Updated book titles]]
 
== Sources of error ==
 
=== Images are not imported ===
 
* Images have a background/shadow and only the background/shadow is imported: These images are not supported. Solution: Remove the background/shadow before the import.
* Images are embedded as .tmp files in the Word document for an unknown reason. Solution: Before importing, save the images from the Word document locally and then use them to replace the original image in the Word document.
{{Box Links-en|Topic1=[[Reference:ImportOfficeFiles]]|Topic2=[[Manual:Extension/BlueSpiceBookshelf|Books]]}}{{translation}}

Latest revision as of 16:38, 20 October 2023

The Word import is is available from BlueSpice 4.2.

What is the Word import?

The extension ImportOfficeFiles allows importing a Word document which will be converted to wiki pages.

  • The file can be converted to a single page or to a page with subpages.
  • Image files are also imported.
  • Imported pages can be used as a page collection for creating a book.

Import a word document

To import a Word document:

  1. Click New > Import Word file in the top menu.
    Import menu
    Import menu
  2. Click Select a file or drag the Word file in the drop zone.
    Upload dialog
    Upload dialog
  3. Click Next.
  4. Choose the import settings you want.
    Settings
    Settings
    1. Title:The title of the wiki page generated by the import. When the content structure is broken up, the chapters are created as sub-pages of this main page.
    2. Content structure: If the "Split content to pages" checkbox is activated, subpages are created from the heading levels of the Word document. This is possible up to 3 levels deep.
    3. Conflicts with page title:
      • Rename: The imported page is created as <page name> (1). However, this should be avoided, especially with large Word files that are divided into additional levels. It is best to enter a new page title here as an alternative. A naming conflict is displayed in the preview. In this case, if necessary, click Cancel to start the import with a new title. Or select "Override" as a conflict resolution.
      • Override: The existing page(s) will be overwritten with a new version.
  5. Click Next.
    The preview shows: (1) the names of the pages that will be created (2) via the arrow icon: the files that will be imported for the individual pages (3) via the eye icon: the content of the individual wiki pages.
  6. Click Import. After the import is complete, the created pages are displayed as a page collection in the wiki. You can view the pages from this page by clicking on the link.
Note:In a wiki installed with "German" as the content language (contentlanguage), the path to the page starts with MediaWiki:Page collection.


Create a book

It is easy to create a book from the imported pages:

  1. Click the plus button.
  2. Enter a book title and click Done.
  3. Click the Bulk Add button.
  4. Select Page Collection as the source.
  5. Select the page name of the imported file.
    Select page collection
    Select page collection
    The pages have been added.
    Add book pages and save chapter navigation
    Add book pages and save chapter navigation
  6. Choose Save and add book navigation to each wiki page from the Save menu.
  7. Click OK in the dialog "Change wikipage" associations. This will add the chapter navigation to each book in the page.
    add bookshelf tag to book pages
    add bookshelf tag to book pages

The book is now available on the Bookshelf page of your wiki.

Change the display title of your book chapters

Since the display titles of the book pages show the path of the imported subpages, it makes sense to edit the display titles afterwards. To do this, open the book page in source edit mode and remove the path with the trailing "/".

Changing the chapter titles
Changing the chapter titles

If the book has a lot of pages, you can copy the source code into an editor like Notepad++ and replace the following text:

|Employee handbook/

Replace the text and take care that the vertical pipe after the actual page name and before the page title is the replacement text.

|

Copy the source code back to the wiki and save the book page.

Updated book titles
Updated book titles

Sources of error

Images are not imported

  • Images have a background/shadow and only the background/shadow is imported: These images are not supported. Solution: Remove the background/shadow before the import.
  • Images are embedded as .tmp files in the Word document for an unknown reason. Solution: Before importing, save the images from the Word document locally and then use them to replace the original image in the Word document.

Related info



To submit feedback about this documentation, visit our community forum.

No categories assignedEdit

Discussions