You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to check each post for some photo gallery category or categories (for now you can just use an existing category like "Opinions" or "News" for testing purposes) and render ContentView (See ContentView.tsx) differently if a post belongs to a photo gallery category. We can check for the category in the post object's tsdCategories property (an array) and retrieve the post HTML in the post object's postContent property (a string).
We will pull from the content in that string and use it to fill a template for the new photo gallery layout.
Here's an example of how this might look in ContentView.tsx:
Notice how we have a different layout for Humor articles, and others have the second layout (most of which is cut off here).
We want to check each post for some photo gallery category or categories (for now you can just use an existing category like "Opinions" or "News" for testing purposes) and render ContentView (See ContentView.tsx) differently if a post belongs to a photo gallery category. We can check for the category in the post object's tsdCategories property (an array) and retrieve the post HTML in the post object's postContent property (a string).
We will pull from the content in that string and use it to fill a template for the new photo gallery layout.
Here's an example of how this might look in ContentView.tsx:
Notice how we have a different layout for Humor articles, and others have the second layout (most of which is cut off here).
Here's the guiding example we discussed: https://www.washingtonpost.com/graphics/world/2020/08/04/photos-show-aftermath-beirut-blasts/
The rest is pretty open-ended! We'll def want to consult with the photo/video staff after some initial development and experimentation.
The text was updated successfully, but these errors were encountered: