Universal HTML Importer is a Joomla component designed to simplify content migration from existing websites to Joomla. It extracts article titles, text, dates, images, categories and custom field values from website HTML, using configurable CSS selectors or XPath expressions.
It is particularly useful for migrating older Joomla websites, content from third-party extensions or articles from other content management systems. Content can be imported directly into Joomla without an additional extension, or exported as a CSV file for import through RO CSVI.
Key Features
- Import from multiple listing pages or individual article URLs.
- Direct Joomla article import and UTF-8 CSV export for RO CSVI.
- Preview extracted content before importing.
- Save, load and delete reusable configuration profiles.
- Fixed destination categories and flexible source category mapping.
- Dynamic custom field mapping, including YouTube URL conversion.
- Flexible introtext and fulltext extraction, image downloading and source ordering.
- Duplicate URL detection and options to skip or update existing articles.
- Article-by-article import report with links to saved articles.
- Bootstrap 5 administrator interface, Joomla access checks, CSRF and outbound request protection.
How It Works
The component extracts and maps content from the source website. After reviewing the preview, choose one of the two migration methods shown below.
|
Source Website
Joomla 3, 4, 5, 6 or another CMS |
|
|
Universal HTML Importer
Extraction · Mapping · Preview · Duplicate checks |
|
|
CSV Export
Download CSV Import with RO CSVI |
Direct Joomla Import
Joomla Article Model No RO CSVI required |
|
Joomla Articles
Content · Images · Custom Fields |
|
Requirements
- Joomla 5 or 6 and a PHP version supported by your Joomla installation.
- PHP DOM/XML and cURL extensions, outbound HTTP(S) and DNS access.
- Super User access to the destination Joomla website.
- Write access to the selected folder under
images/when downloading images. - RO CSVI with Joomla Content import support only if using CSV export.
Installation and Getting Started
- Back up your destination website and database.
- Install the component ZIP from System → Install → Extensions.
- Open Components → Universal HTML Importer as a Super User.
- Inspect the source website with your browser's developer tools and configure the selectors.
- Choose an existing destination category and create any required Joomla Custom Fields.
- Click Preview first 5 articles and review the extracted values.
- Save a configuration profile if you intend to repeat the migration.
- Choose Export CSV or Direct Joomla Import. Start with a small batch on a test site.
The component can run on a local Joomla installation or a live website. No separate PHP file or password is required. Use HTTPS on live installations. Source URLs must point to public websites; private network and localhost sources are blocked.
Configuration Settings
Configuration profiles
Profiles store extraction settings, destination options and custom field mappings in the Joomla database, separately for each administrator account.
| Setting / Action | Description |
|---|---|
| Profile name | Enter a name for the current configuration. |
| Saved profiles | Select an existing profile. |
| Save profile | Save the current settings or replace a profile with the same name. |
| Load profile | Restore the selected profile and its custom field mappings. |
| Delete profile | Remove the selected profile. |
Source pages
| Setting | Description |
|---|---|
| Mode | Listing pages discovers article links on category or other listing pages. Article detail pages uses the supplied URLs as individual articles. |
| Start URLs | Enter complete HTTP(S) URLs, one per line. Include additional pagination URLs manually when necessary. |
| Listing container selector | Optional selector for the section containing the article list, e.g. .com-content-category-blog. |
| Article link selector | Identifies article links, e.g. .blog-item .page-header h2 a. Listing mode requires this selector or an article URL include filter. |
| Article URL include filter | Optional text that must appear in an article URL, e.g. /news/. This is a substring, not a regular expression. |
| Maximum articles | Limit the number of unique articles extracted per request (1–100). Blank or 0 uses the safety limit of 100; split larger migrations into distinct batches. |
| Keep source ordering | Yes adds ordering values to the CSV. Direct import appends new articles in source order, while preserving the ordering of existing articles. |
Article extraction
| Setting | Description |
|---|---|
| Title selector | Required. Identifies the article title, e.g. h1 or .page-header h1. |
| Content selector | Identifies the article body, e.g. .com-content-article__body or .itemFullText. Leave blank to omit the body for new articles; direct updates preserve the existing body. |
| Date selector | Identifies a source date, e.g. time or meta[property="article:published_time"]. A recognised date populates both created and publish_up. Blank leaves the date unmapped. |
| Introtext mode | Controls how extracted content is split between introtext and fulltext. Required when a content selector is supplied. |
| Image selector | Identifies the main image, e.g. .item-image img or meta[property="og:image"]. Leave blank to omit image columns. |
| Image handling | Choose whether to retain a remote URL, download the selected image or write a local image path. |
| Image folder | Relative destination directory under Joomla's images/, e.g. images/imported. Required for download or local path modes. |
| Intro image | Same as full image copies the selected image to the intro image. Empty explicitly clears it. Leaving the option unselected omits the intro image column. |
Introtext mode options
- First paragraph (remove from fulltext): moves the first paragraph into introtext; if no paragraph exists, introtext remains empty.
- Empty introtext: keeps the whole body in fulltext.
- All content in introtext only: stores the whole body in introtext and leaves fulltext empty.
- Same as fulltext (duplicates content): stores the same content in both fields.
Image handling options
- Keep remote URL: retains the original image's absolute URL.
- Download to local folder: downloads the selected main image and generates a local path with a content-hash filename.
- Write local path only: generates the path without downloading; use when the image files have already been copied.
Image downloading applies to the selected main image, not all images embedded inside the article body. Preview may fetch image data to calculate filenames, but does not write image files.
Joomla destination
| Setting | Description |
|---|---|
| Fixed destination category | Select an existing Joomla category for all articles. Overrides the source category selector, parent, fallback and mapping settings. Choose Use source category settings to enable those settings instead. |
| Source category selector | Optional selector for the source category name, e.g. .category-name. |
| Parent category | Optional destination parent path for extracted category names, e.g. News/International. |
| Fallback category path | Destination category used when no category can be extracted and no mapping rule matches. |
| Category mapping | One source keyword=destination path rule per line. Matches a URL substring or exact source category text. The first matching rule takes priority. |
| State | Published, Unpublished or Archived. Blank omits the CSV state column; new direct imports are unpublished and existing articles retain their state. |
| Language | Optional Joomla content language tag, e.g. en-GB, el-GR or * for All. Use a valid destination content language. |
| Access | Optional numeric Joomla viewing access level ID, e.g. 1. Direct imports use the existing article or category access level when blank. |
| CSV separator | Semicolon (;), Comma (,), Pipe (|) or Tilde (~). Required for CSV export only. |
| Existing articles (direct import) | Skip existing articles (default) or Update existing articles. Matches articles by Joomla-normalised alias and destination category. |
For a single destination category, simply use Fixed destination category. For multiple categories, create the destination categories first and use their full paths, separated by /.
Example category mapping:
announcements=News/Announcements
recipes=Recipes
desserts=Recipes/Desserts
Custom fields
Click Add custom field to create a mapping, or Remove field to delete it from the configuration. The field name input offers suggestions from published Joomla article fields. For direct import, the field must already exist and apply to the destination category and language.
| Setting | Description |
|---|---|
| Joomla field name / CSV column | The actual Joomla field name (not its display title), or the exact RO CSVI column name for CSV export. Use unique names without spaces. |
| Source selector | The CSS selector or XPath identifying the source value. |
| Extraction type | Text: plain text. Inner HTML: cleaned HTML content. HTML attribute: the value of a specified attribute. Attribute as absolute URL: the attribute value converted to an absolute URL. YouTube URL: a supported YouTube video URL converted to a standard watch URL. |
| Attribute name | Required for HTML attribute, Attribute as absolute URL and YouTube URL extraction, e.g. src or href. Otherwise leave blank. |
Direct import supports single-value text, textarea, editor, HTTP(S) URL, email, integer, list, radio, calendar, color and SQL fields. List and radio values must match the stored option values rather than the displayed labels. The System - Fields plugin must be enabled. Complex fields and multi-value fields are not supported by direct import in this version; CSV export can be used where supported by RO CSVI.
Example: Importing YouTube videos from JoomlaWorks AllVideos
Suppose the source website uses the following HTML:
<span class="itemVideo">
<iframe src="https://www.youtube-nocookie.com/embed/NZjYyL24NxM?rel=0&fs=1&wmode=transparent"></iframe>
</span>
Create a destination Custom Field, for example a Text or Textarea field named video-text-url, and configure the following mapping:
| Setting | Value |
|---|---|
| Joomla field name / CSV column | video-text-url |
| Source selector | .itemVideo iframe |
| Extraction type | YouTube URL |
| Attribute name | src |
Embed, YouTube-nocookie, youtu.be, Shorts and live video URLs are converted to standard YouTube watch URLs. Missing or invalid video URLs produce an empty value.
CSS selector examples
Use your browser's Inspect tool to identify the appropriate selectors. Selectors for listing pages and individual article pages serve different purposes.
| Selector | Matches |
|---|---|
.item-title a |
Links inside elements with the item-title class. |
.item-image img |
Images inside elements with the item-image class. |
#main-content |
An element with the specified ID. |
a[href*="youtube.com"] |
Links whose href contains youtube.com. |
iframe[src^="https://"] |
Iframe sources beginning with https://. |
img[src$=".jpg"] |
Image sources ending in .jpg. |
xpath://a[contains(@href,'youtube.com')] |
An advanced XPath expression for links containing youtube.com. |
The component supports a subset of CSS selectors, including attribute matching, descendant and direct-child selectors. Use the xpath: prefix for more advanced selection.
Run Migration
Preview
Click Preview first 5 articles to inspect extracted rows, aliases, category paths, custom fields and duplicate counts. No articles or images are saved during preview. A subsequent export or import extracts the source content again.
Direct Joomla Import
Choose how to handle existing articles, select the confirmation checkbox authorising the creation or update of Joomla articles, and click Direct Joomla Import. The component uses Joomla's article model rather than inserting articles directly into database tables.
The report displays each article's ID, title, alias, status and any error message. Statuses are Created, Updated, Skipped and Failed. Updates change the mapped values; unmapped body, date and image settings are retained. Empty mapped custom fields are cleared, although Joomla may display a field default.
Export CSV for RO CSVI
Choose a CSV separator and click Export CSV. Create or edit a Joomla Content import template in RO CSVI with the following settings:
| Setting | Value |
|---|---|
| Operation | Import |
| Component | Joomla Content |
| Use file for configuration | Yes |
| Field Separator | Same as the component's CSV separator. |
| Text Enclosure | " (double quote) |
| Overwrite existing data | No, to skip matching existing articles. |
| Skip new items | No, to allow new articles. |
In RO CSVI 9.12.1, open the template's File tab and click Advanced in the top toolbar to display the additional duplicate-handling options. Use Update Available Fields if custom field columns are not recognised. The destination categories and custom fields should already exist.
Duplicate Article Detection
During extraction, repeated article URLs, redirects and valid same-site canonical URLs are checked to reduce duplicates within the current batch. URL-based aliases preserve numeric article IDs where present; alias collisions within the batch are resolved automatically.
For direct import, existing articles are matched by normalised alias and destination category. For CSV import, existing-record handling is performed by RO CSVI. Keep aliases and categories consistent between migrations. Different source articles with the same alias and category across separate batches may require manual review; the component does not maintain a permanent source URL registry.
Important Notes
- The component extracts server-rendered HTML, not content rendered exclusively by JavaScript. Only migrate content you are authorised to use.
- Version 1.0.1 processes up to 100 unique articles per request. Use smaller, distinct batches to avoid host execution and memory limits. If the automatic limit is exceeded, explicitly limit or split the request.
- Extraction errors stop CSV export or direct import before articles are written. During direct saving, a failed article does not undo previously saved articles. Downloaded images may remain after an error.
- Direct import requires Joomla's standard publishing workflow. Complex custom fields and custom publishing workflows are not supported in this initial version.
- Use a backup and test imported content before publishing. Joomla content plugins may interpret source markup.
- Uninstalling the component removes saved configuration profiles, not imported articles or images.
License and Compatibility
Developed by Istopan and distributed under the GNU General Public License version 2 or later. Designed for Joomla 5 and 6.
This is an independent migration component and is not an official
RO CSVI extension. Version 1.0.1 supports the Joomla Update System. Future releases can be installed from System → Update → Extensions. Verify installation and migration on your Joomla version before production use.