Jump to content

Showing database content as a table / list


Akademika

Recommended Posts

Posted

Hi!
I've created a database, and added it to a page. 

The problem is that I want to show each record as a seperate line in a table - is this possible?

Atm it looks like this: 
image.thumb.png.8ad38f3d269adb1290026dbff5bc83ab.png

But I want it more like a traditional table-format. Like this (ignore colors): 
image.thumb.png.64acb3d5ccb920202e348a40c1d044f0.png

 

Posted

Well, the “separate lines” are used by default. At the moment, you just have one record, so there are no lines yet. 

Showing the fields as rows is not possible by default. That would require customizations. Older versions of Pages used a table layout, but that wasn’t responsive. If you just use a HTML table your layout can easily brake on a phone for example. 

Posted

I'm not too worried about the responsivness, as this is used on standardised hardware :)

So if I'm understanding this correctly, I will have to customize one of the templates to display the records as a table. Which template though, In the template-menu i can't find databases as a seperate category. So I am a bit lost :)

Alternativly, can I call each record / attribute from the database manually ? So if I add a page and build it with HTML- can i control how each record is listed ?

Posted

You would have to create a new Database Record Listing template under ACP → Pages → Templates and assign it to your database. Inside this custom template set you then add your table. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...