How can i use Dynamic assets ?
Hi team, I have created and uploaded various types of files like png, and jpg and now I want to access them how can I use them in Yves or Zed? I have checked the documentation but didn't find a solution.
Best Answer
-
Now it´s clear with the picture!
You can create a Content Item of type file list and add some of the files you uploaded to the file list.
After that you can create a Slot with that content Item and use that slot in a page, such as a landing page.
From the code perspective, You can use the FileManager Facade to access those files and use them in templates or downloads.
For the File manage PBC you have the docs here
For using slots, blocks and cms pages, take a look at the course: Getting Started with SCCOS
0
Answers
-
We have several courses in Spryker's academy which teach precisely what you´re looking for: both for Yves and Zed. How to set up the frontend, the scripts to execute to generate your access and publish them to the public folder.
There is a learning path for everything related to Frontend development:
1 -
Thank you
0 -
@Hidran Arias i have checked and didn't find anything related to dynamic assets or how I can use file list files
0 -
Could you please add more specific needs?
If you want to use the same assets, an idea would be to create symbolic links as Zed and Yves would read their assets from different places.
Take also into consideration that Zed and Yves would be in different containers and wouldn´t share their public entry point folder.0 -
In simple words, I have uploaded files to the file tree in the Backoffice and now I want to use that files how and where can i use this thing
0 -
Now it´s clear with the picture!
You can create a Content Item of type file list and add some of the files you uploaded to the file list.
After that you can create a Slot with that content Item and use that slot in a page, such as a landing page.
From the code perspective, You can use the FileManager Facade to access those files and use them in templates or downloads.
For the File manage PBC you have the docs here
For using slots, blocks and cms pages, take a look at the course: Getting Started with SCCOS
0 -
Hi. I'm wondering exactly the same thing as you right now. Have you found a way how to use these files? I have a photo that I would like to use in a content item. What should be the correct Image Url?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 927 Developer Corner
- 785 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random