Hi Rob,
thanks for your question.
I’m not really sure if I understand what you are trying to do, but you might want to look at the hide_columns and show_columns Shortcode parameters in the documentation at http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/documentation/
These parameters allow you to show different data from the same table, based on the parameters.
(Important note: Make sure to uncheck the “Cache Table Output” checkbox on the “Edit” screen of the table for this to work.)
Regards,
Tobias
Hi Tobias
I have found those codes, and they work well.
What I am trying to do present the data in different ways.
Some web pages I would like to show:
Customer Name, Full address, including email and phone all in one cell.
Then elsewhere I would like to show the customer name and just their phone number.
I could of course have the phone number in both its own cell, and also in the address cell but it is duplication of information, and maintenance.
So an example would be:
Columns: Name:(A)Address:(B)Email:(C)Phone:(D)Full
Rows: (1)Rob:home:[email protected]:[tablecell:A1] [tablecell:B1]
Rows: (2)John:home:[email protected]:[tablecell:A2] [tablecell:B2]
Rows: (3)Tom:home:[email protected]:[tablecell:A3] [tablecell:B3]
etc.
Thanks
Rob
Hi Rob,
ah, ok, thanks for the explanation and the example.
Unfortunately, I don’t really see an easy way (as in “automatic way”) for this. However, the syntax that you chose for the last example cell reminded me of a Shortcode that we came up with for someone here in the forums: http://ww.wp.xz.cn/support/topic/wp-table-reloaded-can-i-reference-another-cell
This would give you another Shortcode like [table_cell id=2 c=3 r=4 /] (so just a slightly different syntax to your example). With that, you could create another column “full” in your table, into which you enter these Shortcodes (just like in your example), and of course with an adjusted row number. With the hide_columns (on the main Shortcode) you could then decide whether this “full” column (or the other ones) are visible or not.
Regards,
Tobias
Hi Tobias
Sorry for delay, I’ve been away with work.
I tried the suggestion and used the code:
[table_cell id=1 c=3 r=4]
I tried putting the code in a table cell, and also directly to the wordpress page. Unfortunately the code was not interpreted and just showed up as typed.
I did use the code you indicated, and put it into the custom css field.
Any suggestions on what else I could check?
Thanks
Rob
Hi Rob,
the code I posted is not CSS code! It is PHP code that needs to either be installed as a “Plugin Extension” (see http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/extensions/) or be pasted into the theme’s “functions.php”, as mentioned in the link above.
Regards,
Tobias