Import: bring the content, not the old site's structure: leave out widgets, page templates and menu places

Aperta
#691 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php
Ambito
backend, content

Direzione di ricerca

The payload names no files, so begin by finding the import plan's steps for widgets, page templates and menu places, for both the live and file imports. Remove those questions and steps, and make saved choices for them be ignored rather than raise errors. Add the one-line "Not imported" note and the once-only menu message to the report. Done when a full and a file import show those changes and content, media, redirects and SEO fields behave as before.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/import type/enhancement when/soon

What

The import brings a WordPress site's content, and also parts of how its theme was put together:

  • the widgets step (full imports) brings sidebar and footer widgets;
  • the plan asks which Teme template each WordPress page template becomes;
  • the plan asks where each menu goes in the theme (menu places).

These belong to the new site's theme, which is set up in Teme, not copied from WordPress. Other systems' WordPress importers agree: none brings widgets (WordPress's own export file doesn't hold them), and all bring menus without placing them (the WordPress Importer leaves them for Appearance › Menus; Kaleta builds them as drafts).

Expected

For the live and the file import alike:

  • No widgets step: widgets aren't brought. The plan's "Not imported" says so in one line ("Widgets and theme settings: set up in Teme's theme").
  • No page-template question: imported pages use the active theme's default template.
  • No menu-places question: menus and their items still come across, unplaced, and the report says once: "{n} menus came across; place them under Content › Navigation."
  • Choices already saved for these on earlier imports are ignored, not errors.
  • Content, media, terms, people, comments, SEO fields, old addresses and redirects are unchanged.

🤖 Generated with Claude Code

Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 40m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.