GithubHelp home page GithubHelp logo

Comments (8)

dimaportenko avatar dimaportenko commented on June 19, 2024

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.

sanjeevyadavIT avatar sanjeevyadavIT commented on June 19, 2024

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.

dimaportenko avatar dimaportenko commented on June 19, 2024

To get such result, you have to put it to the cms block content.
Screen Shot 2019-04-18 at 10 52 03 AM

from magento-react-native.

sanjeevyadavIT avatar sanjeevyadavIT commented on June 19, 2024

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.

dimaportenko avatar dimaportenko commented on June 19, 2024

from magento-react-native.

dimaportenko avatar dimaportenko commented on June 19, 2024

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.

sanjeevyadavIT avatar sanjeevyadavIT commented on June 19, 2024

Ok thanks for clarification, and how did you know image url, "wysiwg/home/home-t-shirts.png", ??

from magento-react-native.

dimaportenko avatar dimaportenko commented on June 19, 2024

on magento side it was added from wysiwg editor
Screen Shot 2019-04-18 at 7 41 52 PM

on mobile app side

getMediaUrl() {
    return this.storeConfig.base_media_url;
  }

from magento-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.