Eric Sjöström Jennerstrand

Litium E-commerce, C#, .NET MAUI, Javascript, React, Azure, Git. .NET, Node and more!
Litium Logo

Litium Text Option importer/export panel

Litium Text Option Importer
Litium Text Option Importer

Link to source code: https://github.com/ericsj11/Litium-TextOption-Importer

Steps to Install and Use (Steps for the Litium Accelerator)

Litium Text Option importer/export is made for the litium accelerator, but should work without the accelerator. But you need to add the files to your specific locations.

  1. Download ExcelDataReader And EPPlus(Version:4.5.3.3) with NUGET into the project you place TextOptionImportController.cs (Most likley Litium.Accelerator.Mvc)
  2. Copy all files in the Repo into the project.i. Change namespaces if you need to add them to extension projects.
  3. Add this key to your appSettings in web.config <add key="TextOptionExportPath" value="C:\Project\Files\TextOptionExport\" />
  4. Build the project.
  5. Create a page in the CMS with the url “Panels/TextOptionImport”. And add describing texts if needed.i. Or change to prefered URL here: https://github.com/ericsj11/Litium-TextOption-Importer/blob/master/Litium.Accelerator.Mvc/Panels/TextOptionImport.cs#L12.
  6. Check if the new panel is added in the PIM.i. The panel can be placed under different Areas by changing “ProductArea” here: https://github.com/ericsj11/Litium-TextOption-Importer/blob/master/Litium.Accelerator.Mvc/Panels/TextOptionImport.cs#L8.
  7. You can now use the panel. The files can’t be to large! (Around 2mb, but it should not be a problem for Text Options, and only 2 columns in the Excel.)
    1. Value is the translation and will be put into the cultures en-US and sv-SE. Dynamic support for language will come.
    2. Important: The Key and Value has to be on the first row of the Excel and starts with Uppercase!
    3. Important: The content of the excel file has to look like one of these 2 (Multiple of the same is OK, multiples will be ignored):
KeyValue
OriginalOriginal
ThirdPartyThird Party
OriginalOriginal
FrayedWell worn
Keyen-USsv-SE
OriginalOriginalOrginal
ThirdPartyThird PartyTredjepart
OriginalOriginalOrginal
FrayedWell wornAnvänd

Checkout the Example Excel for all Languages or the Example Excel for Specific Languages

Link to source code: https://github.com/ericsj11/Litium-TextOption-Importer

2 thoughts on “Litium Text Option importer/export panel

  • Nice blog
    2022-02-28 at 12:29

    Hi i am kavin, its my first occasion to commenting anywhere, when i read this article i thought i could also make comment
    due to this brilliant article.

  • Impressed here
    2022-05-30 at 17:46

    Admiring the persistence you put into your site and in depth information you offer.

    It’s nice to come across a blog every once in a while that isn’t the same old
    rehashed information. Fantastic read! I’ve
    bookmarked your site and I’m including your RSS feeds to my Google account.

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>