May 09, 2026 Leave a message

Demo: structured news editor

This article is a demonstration of the new structured news editor in the sz-hdx admin backend.

What's new for content editors

You no longer need to edit raw HTML to publish a news post. The new form gives you:

  • A standard title input with auto-derived URL slug
  • A date picker for publication date
  • A drag-and-drop cover image uploader
  • A WYSIWYG body editor (TinyMCE) where images can be pasted/dragged in directly
  • An SEO description field (defaults to the title if you leave it blank)

How the rendering works

Behind the scenes, the form fields are passed into a Jinja2 template (news.html.j2) that recreates the full chrome of the existing news section: header, breadcrumbs, sidebar with latest news and products, and footer. The output is written as a static .html file under /news/, just like the legacy articles.

The template also writes a .meta.json sidecar so you can come back later and re-edit the same fields in the same form.

Try it yourself

Visit https://www.sz-hdx.net/admin/news/new and create your own article. The "+ 新建新闻" button on the dashboard takes you here.

Send Inquiry

whatsapp

skype

E-mail

Inquiry