• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

variable content in a table

New Here ,
Oct 03, 2019 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)

 

 

 

TOPICS
How to

Views

237

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
community guidelines

correct answers 2 Correct answers

LEGEND , Oct 03, 2019 Oct 03, 2019

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.

Votes

Translate

Translate
Community Expert , Oct 03, 2019 Oct 03, 2019

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.

...

Votes

Translate

Translate
LEGEND ,
Oct 03, 2019 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.

Votes

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
community guidelines
New Here ,
Oct 03, 2019 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?

 

Votes

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
community guidelines
LEGEND ,
Oct 03, 2019 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.

Votes

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
community guidelines
Community Expert ,
Oct 03, 2019 Oct 03, 2019

Copy link to clipboard

Copied

LATEST

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— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

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
community guidelines