Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Content fragment import using CSV importer

Avatar

Avatar
Validate 1
Level 1
pankajj54334709
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
pankajj54334709
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
pankajj54334709
Level 1

10-10-2018

How we can import the content fragment using CSV importer in 6.3 versions ? Do we need to use content manager API for it ? If yes, then which method we can use for it.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

10-10-2018

Can you please point to the JavaDocs you are referring to when you say Content Manager API.

Can you please refer to the doc topic you are following to perform this use case.

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,255 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,255 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

11-10-2018

AFAIK, we do not have OOTB for creating CFs from CSVs.

Avatar

Avatar
Validate 1
Level 1
pankajj54334709
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
pankajj54334709
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
pankajj54334709
Level 1

11-10-2018

Hi smacdonald2008,

Thanks for replying. I am referring the below javadocs-

ContentFragmentManager ("The Adobe AEM Quickstart and Web Application.")

and below method for contentFragment

ContentFragment create(Resource parent,

   Resource template,

   String name,

   String title)

  throws ContentFragmentException

I want to migrate content fragments from other framework into AEM using CSV importer.

I am able to successfully import the normal asset with CSV importer using Asset Manager API: com.day.cq.dam.api.AssetManager  and with below method

Asset createAsset(String path,

   InputStream is,

  String mimeType,

  boolean doSave)

In the above method "path" act as a target (absTargetPath of CSV importer) where we to create or upload the asset inside Crx and inputStream act as the source path (relSrcPath of the CSV importer) from where we will upload the asset into AEM.

Same approach I am trying for contentFragment using ContentFragment API, but somehow I am not able achieve it.

Pankaj

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

12-10-2018

Using this API - you cannot pull in a content fragment from a non AEM system into AEM.