Packaging random assets | Adobe Higher Education
Skip to main content
Level 3
October 27, 2017
Risolto

Packaging random assets

  • October 27, 2017
  • 3 risposte
  • 2054 visualizzazioni

Hi,

I have a scenario where we need to get all the assets referenced across all pages. This includes all assets including images, css, videos, etc. So have the following questions.

  1. AssetReferenceSearch API gives only the inline images and videos added in the page and not the referred assets within the rich text component. So is there any other way or API to get all the referenced assets.
  2. I also wanted to know the recommended and simple way or rather an automated way of creating CRX packages where we have a lot of paths to be included. This I wanted to avoid typing or copy-pasting the paths manually in the package manager while creating the package.
Questo argomento è stato chiuso alle risposte.
Migliore risposta di joerghoh

Regarding 1) From what I see, the AssetReferenceSearch also searches within properties (e.g. in the text property of a richtext component), so it should work.

Jörg

3 risposte

smacdonald2008
Level 10
October 27, 2017

"An automated way of creating CRX packages"

If you want to automate building packages - one option you have is to use the PackageManager API. See the PackageManager API here:

"The CQ5 Quickstart and Web Application."

Level 3
October 28, 2017

Thanks smacdonald2008​. This helps for automatic package building. Is there an API for getting all the assets from a page? (my 1st question)

joerghoh
Adobe Employee
joerghohAdobe EmployeeRisposta
Adobe Employee
October 29, 2017

Regarding 1) From what I see, the AssetReferenceSearch also searches within properties (e.g. in the text property of a richtext component), so it should work.

Jörg