Forums

How to introduce spaces between reported fields?

gemlog 06 Feb, 2015
Hi again,

In the old versions, I created a field for each ski trail and a check box. I then just formatted the output with spaces. In this latest version, I have to define fields thus:

Atna=Atna
Beaver=Beaver
Clearwater=Clearwater
Devils_Elbow=Devils_Elbow
Eagle_Way=Eagle_Way
Foxtrot=Foxtrot
Lone_Wolf_C=Lone_Wolf_C
Grizzly=Grizzly
Hard_Scrabble=Hard_Scrabble
Icy_Pass=Icy_Pass
Juniper=Juniper
Onion=Onion
Jackrabbit=Jackrabbit


And display them in connectivity so:
<tr><td><b>Grooming: </b></td><td>{groomingreport1.insideareas} {groomingreport1.outsideareas} {groomingreport1.stadiumareas}</td></tr>


At first I didn't notice the lack of spaces and I changed the left column to 25% to fix it. Now we are getting more snow and they are grooming more trails it's extreme, so I noticed the problem:

http://snowvalleynordics.com/images/chronoengineSpacesProblem.png

http://snowvalleynordics.com

I saved the screenshot, because we had another 100+ cm of snow overnight and the grooming report is bound to change very soon.
paul
GreyHead 07 Feb, 2015
Hi Paul,

I can see that you are doing this in CC - but it does look more like a CF application (but I may be missing something).

I'm not completely familiar with CCV5 - where are you putting this list and what exactly is the problem with spaces?

Bob
gemlog 07 Feb, 2015
Hi Bob,
Well, the groomers log in and check off which trails they groomed using chronoforms, then the info is presented to the public using CC. Without spaces between the fields normal wordwrapping doesn't happen and the text overflows into the menus and off the page
http://snowvalleynordics.com/
gemlog 07 Feb, 2015
OK, perhaps this image better illustrates the problem with having no spaces between the fields:

http://snowvalleynordics.com/images/chronoengineSpacesProblem1.png
Max_admin 09 Feb, 2015
Instead of a space you can try to use this:
 
which will force a space displayed.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gemlog 09 Feb, 2015
Ok, so can I put that in the definition of the form? like:

Atna= Atna
Max_admin 09 Feb, 2015
No, I thought you need the spaces between the fields here:
<tr><td><b>Grooming: </b></td><td>{groomingreport1.insideareas} {groomingreport1.outsideareas} {groomingreport1.stadiumareas}</td></tr>
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gemlog 09 Feb, 2015
Yes indeed! That's where I used to put them, in the output, how to do it now?
GreyHead 09 Feb, 2015
Hi Paul,

I can see what is happening in the final result but that doesn't help diagnose the problem - but you didn't answer my question. Where - in CC - are you putting this list and what exactly is the problem with spaces?"

It still looks to me like a CF application, not a CC one.

Bob
Max_admin 10 Feb, 2015
So, if I'm correct, the problem is that the text goes over the right side column ? if yes then your CSS may need to have the "white space" property fixed to allow for word wrapping!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gemlog 11 Feb, 2015
I'm not trying to exasperate you two -- honest!

OK, in CF the input form is defined as shown above in a previous post as:

Atna=Atna
Beaver=Beaver
Clearwater=Clearwater
Devils_Elbow=Devils_Elbow

etc.

This is done using your Designer in CF in a checkbox group according to the examples I found. Here is how it looks in the gui:
http://snowvalleynordics.com/images/CF_arrays-in-gui-backend.png

Now, back in the front-end, using CC, you can see that I can control the spaces between the arrays, but not between fields withing the arrays:
http://snowvalleynordics.com/images/CF_arrays-in-gui-backend1.png

So demarcations between check box groups have the space I use in CC, but demarcations between the fields within check box groups have a comma I didn't put there (but like/want!) and no spaces, so my question is how to introduce a space after the comma between check box group fields, so the css logic can work to word-wrap?

Can I change how they are displayed in CC, OR can I somehow store spaces within the array fields using CF?

So, if you have a look back at my earlier pic, you can see that if the trails the groomers check off are from the same check box group, there is no space between fields. The css has zero clue where to break the line and the browser ends up doing it much later.

Yes, between check box groups I can introduce whatever formatting I please, but not within checkbox groups. I don't even care if the result has a trailing space+comma pair after a check box group. It's an extra test, I know, and just a nice-to-have.
gemlog 12 Feb, 2015
Umm? OK, at the weekend I will grep the code to find where you parse the checkbox groups from the db and put in the commas, so I can add a space along with the comma. I can't think of anything else, sorry.
paul
GreyHead 12 Feb, 2015
Hi gemlog,

Maybe this will do it. If you have a Handle Arrays action in the ChronoForm change the separator from just comma to comma+space i.e ',' to ', ' but without the quotes.

Bob
gemlog 13 Feb, 2015
Dear Bob,

Aha! This sounds very good. I've located that action under setup and added a space. I have a Good Feeling that it will be just the ticket. I did try to 'buy you a beer', but pp required creating a pp account this time, sorry. I am more than paid up for licenses though.
paul
This topic is locked and no more replies can be posted.