Comments (8)
As I can see you receive the same data as you put to the cms block, so it is working correctly. What do you want to receive on the mobile app end?
from magento-react-native.
I want the response that you are getting for home data
{ "slider": [ { "title": "New Luma Yoga Collection", "image": "wysiwyg/home/home-main.jpg" }, { "title": "Even more ways to mix and match", "image": "wysiwyg/home/home-t-shirts.png" }, { "title": "Find conscientious, comfy clothing in our eco-friendly collection", "image": "wysiwyg/home/home-eco.jpg" } ], "featuredCategories": { "30": { "title": "Woman Sale"}, "31": { "title": "Man Sale"} } }
I want like this so that I can easily extract values and display sliders and list
from magento-react-native.
To get such result, you have to put it to the cms block content.
from magento-react-native.
So you mean you manually typed in this format in the editor????
Second question(If yes): how did you provide the image link, how do you know where to put image and get there link?
from magento-react-native.
from magento-react-native.
if you want to generate it automatically, you have to create Magento module which will have admin interface, will generate this output from your selection, and create custom API endpoint to get this information.
from magento-react-native.
Ok thanks for clarification, and how did you know image url, "wysiwg/home/home-t-shirts.png", ??
from magento-react-native.
on magento side it was added from wysiwg editor
on mobile app side
getMediaUrl() {
return this.storeConfig.base_media_url;
}
from magento-react-native.
Related Issues (20)
- Error messages HOT 9
- Products HOT 11
- Cupon problem HOT 8
- Product filter HOT 11
- Signup Loading Forever HOT 2
- Problems when adding an address HOT 2
- AppRegistry HOT 2
- Getting issue after the app has started HOT 14
- i cant see description of product , but only name and price HOT 2
- Cart ID HOT 10
- issue faced HOT 1
- BUILD FAILED in 30s
- #<WeakSet> could not be cloned. HOT 8
- I found new issue on react native 17.0.1 HOT 1
- After register firstname returns error HOT 11
- Empty values for Country and Region on address page and checkou HOT 2
- Issues on running app HOT 4
- Issue on running ios app
- npm install not working fine HOT 1
- Unable to install app on android devices HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento-react-native.