Copy link to clipboard
Copied
Is it possible to create a table layout with variable content?
I want to use the same table layout different times on my website, each with another image and also with different content.
The easiest way is to copy/paste the layout and change the content, but isn't there another solution? (with less coding and more flexibility)
You have not really supplied enough information. How many pages do you require? If it's many pages then that is when you should consider keeping all of your content in a database and pullng it from that to feed into the table. Sounds a bit like you have some repetitive 'product' pages going on, which would be suitable for this kind of workflow. It's a steep learning curve though.
If its just a handful of pages then its probably just as easy to duplicate the page and change the content.
Tables are for tabular data, not layouts. Nowadays, we use CSS to style content and make it look presentable on all devices (aka responsive web design).
To build sites dynamically with content pulled from a database, first find out which programming languages and databases your hosting plan supports. Depending on what you need, commercial DW extensions are available for purchase from WebAssist or DMX Zone. See links below.
...Copy link to clipboard
Copied
You have not really supplied enough information. How many pages do you require? If it's many pages then that is when you should consider keeping all of your content in a database and pullng it from that to feed into the table. Sounds a bit like you have some repetitive 'product' pages going on, which would be suitable for this kind of workflow. It's a steep learning curve though.
If its just a handful of pages then its probably just as easy to duplicate the page and change the content.
Copy link to clipboard
Copied
Thanks for the quick response!
I expect around 20 tables, spread over 3 or 4 html pages.
The idea of putting the content is a database sounds good. Can you give me some more information? Or useful links?
Copy link to clipboard
Copied
First you need to set up a local server, something like XAMPP:
https://www.youtube.com/watch?v=-f8N4FEQWyY
Then you need to pull information from the database using sqli:
https://www.youtube.com/watch?v=0YLJ0uO6n8I
https://www.youtube.com/watch?v=zpTlJ6dtOxA
https://www.youtube.com/watch?v=WGuyxGJW9hs&t=208s
https://www.youtube.com/watch?v=3T8bp9DlypU&t=433s\
Not exactly something you can learn in a few minutes.
Copy link to clipboard
Copied
Tables are for tabular data, not layouts. Nowadays, we use CSS to style content and make it look presentable on all devices (aka responsive web design).
To build sites dynamically with content pulled from a database, first find out which programming languages and databases your hosting plan supports. Depending on what you need, commercial DW extensions are available for purchase from WebAssist or DMX Zone. See links below.