• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Define the path in the library using jsfl

Contributor ,
Feb 08, 2023 Feb 08, 2023

Copy link to clipboard

Copied

I have a dedicated object. How do I get its path and name in the library if the selected object is located in several folders in the library? I searched in the documentation but didn't find anything, maybe I just didn't notice the desired object

123.PNG

I was thinking something like this:

	fl.trace(fl.getDocumentDOM().selection[0].pathInLibrary) /*The output should be: 'LOGO/qwerTTT/asd'*/

 

TOPICS
Code , Exchange extensions

Views

270

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 09, 2023 Feb 09, 2023

Hi.

 

Try this:

fl.trace(fl.getDocumentDOM().selection[0].libraryItem.name);

 

Regards,

JC

Votes

Translate

Translate
Community Expert ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

Hi.

 

Try this:

fl.trace(fl.getDocumentDOM().selection[0].libraryItem.name);

 

Regards,

JC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

Thank You

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

LATEST

You're welcome.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines