mbjepsen
Forum Replies Created
-
Peter, once again this solved the problem. Works in both Modal and collapsed.
Thanks again Peter. Changing status to Resolved.
- This reply was modified 5 years, 9 months ago by mbjepsen.
Peter, that solved the vertical alignment issue. But i am still missing the wrapping of the fields. Some of the texts are very long
If you search for this record: 1B. 214 (don’t forget the space in the middle). This is a good example.
The link works fine here, but I had not published the page. Maybe one need to be admin before it is posted.
Now I have posted it and the new link is:
Peter, I am back with my next problem which is also related to formatting.
The discussion above is related to a very simple database with only 3 columns and nothing collapsed.
No I have gone on to something more advanced:
The page is here:
https://test.arma-dania.dk/?page_id=484
A good example is on page 4. Stempel: 1B. 214, Line number 32110
When you expand this record, it appears that my CSS is not affecting anything of what was collapsed. I have tried to affect the vertical alignment with
table.dataTable.nowrap th, table.dataTable.nowrap td { vertical-align: top; }But is is not affecting the collapsed part of the record.
Also, the column stempel_paa is not wrapped. I tried both
#View_avd_stempel7.dataTable.nowrap td.stempel_paa { white-space: normal; }and
.dataTable.nowrap td.stempel_paa { max-width: 300px !important; white-space: normal;But with no result as you see from the table.
Is there a simple solution to this?
I hope so because I have 9 databases which contains hundreds of articles with lots of text and photos. The database here is still quite simple compared with the rest of the stuff.
Here is an example of a typical record:
http://www.arma-dania.dk/public/timeline/_AD_blankvaben_view.php?editid1=26- This reply was modified 5 years, 9 months ago by mbjepsen.
Now that was much better.
Thanks Peter. This topic is resolved.
Hi, sorry for not providing this in the first instance
https://test.arma-dania.dk/tyske-fremstillerkoder/
Se page 2 of the table
By the way:
One of the consequences of inserting HTML via a view is that the “Test Publication” function no longer works.
Peter, thanks for reply.
I have created a view with the necessary information and it works.
However, vertical alignment is set to Bottom for all the columns and it looks rather bad. Is there a way to set vertical alignment to Top as default for all tables created by WP Data Access?
I see that you are using Top in your example tables, but I could not see where you set that option.
I have been doing this in PHPRunner in the past. I am exploring if it is possible for me to use WP Data Access instead.
I fixt this with a View using MYSQL Workbench
Thanks Peter, topic resolved.
Peter
This worked also. I think my initial problems are solved. I think you can close this one.
And once again, thanks for the help. I am sure that I will be back with more questions.
Best regards
MortenPeter
Thanks for this advice. It solved the problem. There is hope after all.But I have a question:
I inserted the css code in the additional css. This means that it affects all the tables generated in WP Data access.
My project involves over 40 databases that I want to make accessible on this WP site. Some of these databases have more than 50.000 records and many of the databases have the same column names. The way I understand it, the CSS I gave now inserted will do the same to any column called “Dorklaring” regardless of which database it originates from. But I do not necessarily want to format all these different databases the same way.
Is there a way of making the formatting you suggested applicable for only a specific database presented on a specific WP page?
Funny that you are on vacation in Denmark. I am a Danish national resident in Norway for the last 30 years. I quess that you are somewhere on the west cost of Jutland. Hope you enjoy.
Best regards
MortenThanks for the advice, but as I said earlier, I am not a programmer, I am a editor. I come from a PHPRunner environment where you specify what you want by ticking boxes in the setup. No programming.
If it is so complicated to get WP Data access to show my simplest table within my screen widths, it may not be se solution to my problems. It is a shame because I would really like to switch to wordpress and WP Data Access looked like a solution to by problem.
Thanks for reply Jack
In inserted this into the additional CSS:
.container {
max-width: 100% !important;
/* max-width: fit-content;*/
}Unfortunately it had no effect on anything.
Can it have something to do with the theme I am using? I am using “Twenty Ten”