The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Tables on navigation pages

Plus d'informations
il y a 12 ans 8 mois #1012 par 0kee
Réponse de 0kee sur le sujet Tables on navigation pages
Hi John,
Sorry for the delay replying, got sidetracked with something else. That was the issue alright, thanks for the advice. So you don't recommend inputting HTML into the text fields? Is there any chance someone might make an accessible table template :)
Thanks again for your help.
Thanks to you too Eric!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 12 ans 7 mois #1013 par JohnSmith
Réponse de JohnSmith sur le sujet Tables on navigation pages
Hi Eric,

I'm not saying that you shouldn't put HTML in those fields, just mindful that they were not initially designed to take HTML, other than the most basic markup. Since newline characters in HTML are interpreted as whitespace and treated collectively as a single space, text is processed internally to replace newlines with <br>.

Perhaps the code that does this is not fully mature yet and needs to be more considerate of the surrounding content when doing this. either that or we introduce a <code> tag which wraps html to protect it from unnecessary post processing...

Will have a think about it...

John

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 12 ans 7 mois #1016 par 0kee
Réponse de 0kee sur le sujet Tables on navigation pages
Thanks John. I have a pretty long list and deleting all the spaces is going to take a while. When I delete them in my code editor and paste back into xerte they are added back. I was going to edit the data.xml directly but I'm unfamiliar whit that code. Would this be a good way of going about it? If so could you suggest an edit?
Thanks
Karl

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 12 ans 7 mois #1017 par JohnSmith
Réponse de JohnSmith sur le sujet Tables on navigation pages
Hi,

You could use something like TextPad and then do a regular expression search on >\s< and replace with nothing. That should then strip out any whitespace that is between html tags...

Bit risky though so should probably step through and you can the backtrack and skip anything that is wrong...

John

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.127 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo