Highlighted

variable content in a table

New Here ,
Oct 03, 2019

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)

 

 

 

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

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.

 

 

 

 

TOPICS
How to

Views

78

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

variable content in a table

New Here ,
Oct 03, 2019

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)

 

 

 

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

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.

 

 

 

 

TOPICS
How to

Views

79

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 03, 2019 0
LEGEND ,
Oct 03, 2019

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 03, 2019 1
New Here ,
Oct 03, 2019

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?

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 03, 2019 0
LEGEND ,
Oct 03, 2019

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 03, 2019 0
Adobe Community Professional ,
Oct 03, 2019

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.

 

 

 

 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 03, 2019 1