Hi everybody

Documentation says: Cards

... can be displayed in Layouts or Views ...

... they are designed to be displayed as part of some other page.

My question: How? I haven't found a way to add a card to a page.

Thanks in advance

Conni

Accepted answer

To display a card in a block:

1. Create a Card. Take note of its node ID. To get the node ID, hover over the Edit tab - you'll see the real path, as in node/12  (12 is the node ID)

2. Go to admin/structure/layouts and edit the Layout where you want to place the card. For example, in the Default Layout

3. Click "Add block" in any of the Regions

4. Type "Existing content" to select the correct type of block. Click on the "Existing content" block

5. Type either the title of the Card, or the node ID you got above. Select the display mode

6. Click "Add block" and then Save for the Layout. Visit any content page that use the Standard layout to see your card in the block

That's it!

Most helpful answers

Hi Conni..., There's lots of ways... and it depends on what you are trying to achieve...  Using "Views" is a good way to display cards, but you can also use blocks, If it's for just the front page, promote to front page... If you can explain a little more of what you wish to achieve, i'm sure we'll be able to get the best solution for you.

Comments

Hi Conni..., There's lots of ways... and it depends on what you are trying to achieve...  Using "Views" is a good way to display cards, but you can also use blocks, If it's for just the front page, promote to front page... If you can explain a little more of what you wish to achieve, i'm sure we'll be able to get the best solution for you.

Thank you DrAlbany

> and it depends on what you are trying to achieve...

Nothing special, I'm trying to find out, what I can do with Backdrop - and how.

admin/structure/types says: "Add a card for use on an existing page. Display as a block or in a view."

How? I have a custom Block and a new card. How can I display this card in my Block? Is creating a views-block the only way?

Regards

Conni

 

If you want to group or filter certain cards, then Views is the way... The three cards on the initial install of Backdrop uses Views...  Again, Cards are just a standard content type, added to show an example of dynamic data. With Views and a few modules, you can create such a varied type of site, without know more specifics its difficult to give examples... Have a look at some of the demo sites on backdrop to get a feel for what can be done. https://backdropcms.org/showcase Happy to help with more focused help if you want to expand on your requirements.

admin/structure/types says: "Add a card for use on an existing page. Display as a block or in a view."

Hmm... That could do with being changed... I can see how that is a little ambiguous.   It's the last part where you need Blocks and/or Views.

It was this description which made me confused.

So I understand that I have to use a view when I want to display a card somewhere else on a webpage? Is that correct?

(I have used Drupal for many years and try to recreate websites and/or functionality ... with Backdrop.)

Regards Conni

 

Yes, although you could change the content type of Cards to allow cards to have the ability to create a menu link, again, it's so flexible, there's not a great deal you can't do with it. For example, I'm recreating a site this is using Wix... http://new.rotherhambeekeepers.org.uk/ where I'm using a custom content type called "Events and Meetings" to display the newest six events on the homepage... By using the Viewfield module I can attach a View to standard page content... and then display that in the block... But, I could also create a Views Block and then add that to the page. On another site I'm working on, I'm using Blocks to replicate what a lot of WordPress sites are doing... and then in the Services page, using the "Cards" type view to show the services... https://newbd.brytone.com/ Again, it's really flexible... and the only limiting things is your understanding of how it works...  Hope this helps.

... and the only limiting things is your understanding of how it works... 

You are absolutely right. Thank you for your time and regards

Conni

To display a card in a block:

1. Create a Card. Take note of its node ID. To get the node ID, hover over the Edit tab - you'll see the real path, as in node/12  (12 is the node ID)

2. Go to admin/structure/layouts and edit the Layout where you want to place the card. For example, in the Default Layout

3. Click "Add block" in any of the Regions

4. Type "Existing content" to select the correct type of block. Click on the "Existing content" block

5. Type either the title of the Card, or the node ID you got above. Select the display mode

6. Click "Add block" and then Save for the Layout. Visit any content page that use the Standard layout to see your card in the block

That's it!

Thank you argepiano for your instructions.

This was just what I needed and it is working like a charm.

Regards Conni