mhaack / helix-importer

Foundation tools for importing website content into that can be consumed in an Helix project.
Apache License 2.0
0 stars 3 forks source link

[JCR importer] Add support for links without a text in the UE model #38

Open mhaack opened 2 weeks ago

mhaack commented 2 weeks ago

Links are valid without a text and only href. Today we require always a linkText definition.

Failing aka. nothing in JCR:

{
        "component": "aem-content",
        "valueType": "string",
        "name": "content_link",
        "label": "Link"
      }

Working:

{
        "component": "aem-content",
        "valueType": "string",
        "name": "content_link",
        "label": "Link"
      },
      {
        "component": "text",
        "name": "content_linkText",
        "label": "Link Text"
      }
mhaack commented 2 weeks ago

Sample Markdown:

+---------------------------------------------------------------------------------------+
| tiles                                                                                 |
+=====================================+=================================================+
| ![Automobile][image5]               | ### Automotive                                  |
|                                     |                                                 |
|                                     | [Automotive](/topics/automotive)                |
+-------------------------------------+-------------------------------------------------+
| ![Shopping basket][image6]          | ### Consumer Products                           |
|                                     |                                                 |
|                                     | [Consumer Products](/topics/consumer-goods-cpg) |
+-------------------------------------+-------------------------------------------------+