How to get the Field values inside the content item to the listing block in Volto?

Hi,

I have a situation in Volto listing block i need the values inside the content items, any can help me on that please,

import React from 'react';
import { Card, Image, Icon, Rating } from 'semantic-ui-react';

const CardsTemplate = ({ items, linkTitle, linkHref, isEditMode }) => {
return items.map((item) => (
<>
<Card.Group>


<Card.Content>
<Card.Header>{item.title}</Card.Header>
<Card.Meta>Meta</Card.Meta>

    <Card.Description>Description</Card.Description>
  </Card.Content>
  <Card.Content extra>
    <Rating icon="star" defaultRating={3} maxRating={4} />
    <Card.Content className="right aligned ">
      <Icon disabled name="users" />
      Sample
    </Card.Content>
  </Card.Content>
</Card>

</Card.Group>

</>
));
};

export default CardsTemplate;

in this Template i need to add the values from the content.

Thanks

You can access the content state from redux.

1 Like