# Layout - columns

**URL:** <https://community.silverfin.com/t/layout-columns/68>\
**Category:** Templates\
**Tags:** style, tables, markdown, tables\_markdown\
**Created:** [February 21, 2017, 3:03pm UTC](https://community.silverfin.com/t/layout-columns/68 "2017-02-21T15:03:27Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathalie](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathalie](https://community.silverfin.com/u/Nathalie)\
**Post date:** [February 21, 2017, 3:03pm UTC](https://community.silverfin.com/t/layout-columns/68/1 "2017-02-21T15:03:28Z")

</div>

Hello  
Can someone please help me with this issue ?  
The data below the line don’t result in equal columns with the description above the line.  
Thanks in advance

{% t= “Rek.nr.” fr:“Num. compte” en:“Account nr” %}  
{% t= “Rek. omschrijving” fr:“Description du compte” en:" Account description" %}  
{% t= “Totaal bedrag” fr:“Montant total” en:“Total amount” %}  
{% t= “Omschrijving” fr:“Description” en:“Description” %}  
{% t= “Totaal aantal” fr:“Nombre total” en:“Total amount” %}  
{% t= “Bedrag” fr:“Montant” en:“amount” %}  
{% t= “Totaal” fr:“Total” en:“Total” %}

|:-----10%-----|:-----------------------:|—15%—|–15%—|----15%—|----15%—|------+  
|{% t “Polisnummer” %}|{% t “Omschrijving” %}|{% t “Periode van” %}|{% t “Periode tot” %}|{% t “Totaal bedrag” %}|{% t “Pro rata” %}|{% t “Bedrag” %}|{% fori detail in current\_account.details %}  
|{% input detail.custom.polisnr %}|{% input detail.custom.omschrijving %}|{% assign account = period.accounts | range: detail.custom.rek\_nr %}{{account.name}}|{% input detail.custom.datum tot %}|{% input detail.custom.datum tot %}|{% input detail.custom.doc as:file %}| {% input detail.value as:currency %}|{% input detail.custom.transferred\_months as:integer%}/{% input detail.custom.total\_months as:integer%}|{% if forloop.last %}{%endif %}{%=$1+ detail.value\*detail.custom.transferredmonths/detail.custom.total\_months | currency %}{% if forloop.last %}\_{%endif %}|{% endfori %}  
||||||{% t “Totaal” %}| {{ $1 | currency }}{% unexplained current\_account.value-$1 %}|

---

<div class="post-metadata">

**Author:** ![michail](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michail/32/8_2.png) [@michail](https://community.silverfin.com/u/michail)\
**Post date:** [February 21, 2017, 3:17pm UTC](https://community.silverfin.com/t/layout-columns/68/2 "2017-02-21T15:17:59Z")

</div>

Hello @Nathalie,

Is it possible to post a screenshot of your output too? It will make it easier for me to understand the issue you encounter.

Regards,  
Mike

---

<div class="post-metadata">

**Author:** ![Nathalie](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathalie](https://community.silverfin.com/u/Nathalie)\
**Post date:** [February 21, 2017, 3:22pm UTC](https://community.silverfin.com/t/layout-columns/68/3 "2017-02-21T15:22:56Z")

</div>

![](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/483f3b1fb95bf02e2d983f6fb762eb5199bcad8c.jpg)

---

<div class="post-metadata">

**Author:** ![michail](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michail/32/8_2.png) [@michail](https://community.silverfin.com/u/michail)\
**Post date:** [February 21, 2017, 3:37pm UTC](https://community.silverfin.com/t/layout-columns/68/4 "2017-02-21T15:37:18Z")

</div>

I guess there is something wrong with your screenshot. That’s all I see

 ![](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/c650b51f851252b2a25437ef9d926355bb788292.png)

---

<div class="post-metadata">

**Author:** ![Nathalie](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathalie](https://community.silverfin.com/u/Nathalie)\
**Post date:** [February 21, 2017, 3:57pm UTC](https://community.silverfin.com/t/layout-columns/68/5 "2017-02-21T15:57:01Z")

</div>

Sorry, new attempt :

 ![](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/69606fed656fbeddca4624bee9b5a1c0e2fe6d98.jpg)

---

<div class="post-metadata">

**Author:** ![michail](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michail/32/8_2.png) [@michail](https://community.silverfin.com/u/michail)\
**Post date:** [February 21, 2017, 4:02pm UTC](https://community.silverfin.com/t/layout-columns/68/6 "2017-02-21T16:02:28Z")

</div>

No problem @Nathalie. Can you try this code and let me know if this works for you?

```auto
{% t= "Rek.nr." fr:"Num. compte" en:"Account nr" %}
{% t= "Rek. omschrijving" fr:"Description du compte" en:" Account description" %}
{% t= "Totaal bedrag" fr:"Montant total" en:"Total amount" %}
{% t= "Omschrijving" fr:"Description" en:"Description" %}
{% t= "Totaal aantal" fr:"Nombre total" en:"Total amount" %}
{% t= "Bedrag" fr:"Montant" en:"amount" %}
{% t= "Totaal" fr:"Total" en:"Total" %}

|:-----10%-----|:-----------------------:|---15%---|--15%---|----15%---|----15%---|------+
|{% t "Polisnummer" %}|{% t "Omschrijving" %}|{% t "Periode van" %}|{% t "Periode tot" %}|{% t "Totaal bedrag" %}|{% t "Pro rata" %}|{% t "Bedrag" %}|{% fori detail in current_account.details %}
|{% input detail.custom.polisnr %}|{% input detail.custom.omschrijving %}{% assign account = period.accounts | range: detail.custom.rek_nr %}{{account.name}}|{% input detail.custom.datum tot %}|{% input detail.custom.datum tot %}|{% input detail.custom.doc as:file %}| {% input detail.value as:currency %}|{% input detail.custom.transferred_months as:integer%}/{% input detail.custom.total_months as:integer%}|{% if forloop.last %}{%endif %}{%=$1+ detail.value*detail.custom.transferredmonths/detail.custom.total_months | currency %}{% if forloop.last %}_{%endif %}|{% endfori %}
||||||{% t "Totaal" %}| {{ $1 | currency }}{% unexplained current_account.value-$1 %}|

```

---

<div class="post-metadata">

**Author:** ![Nathalie](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathalie](https://community.silverfin.com/u/Nathalie)\
**Post date:** [February 21, 2017, 4:17pm UTC](https://community.silverfin.com/t/layout-columns/68/7 "2017-02-21T16:17:09Z")

</div>

not yet ok this way… Also totals have chaged

 ![](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/003936fbebef48b5e71b7be573947b5d8d125800.png)

---

<div class="post-metadata">

**Author:** ![michail](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michail/32/8_2.png) [@michail](https://community.silverfin.com/u/michail)\
**Post date:** [February 21, 2017, 4:27pm UTC](https://community.silverfin.com/t/layout-columns/68/8 "2017-02-21T16:27:59Z")

</div>

Hmm… Something like that then?

```auto
{% t= "Rek.nr." fr:"Num. compte" en:"Account nr" %}
{% t= "Rek. omschrijving" fr:"Description du compte" en:" Account description" %}
{% t= "Totaal bedrag" fr:"Montant total" en:"Total amount" %}
{% t= "Omschrijving" fr:"Description" en:"Description" %}
{% t= "Totaal aantal" fr:"Nombre total" en:"Total amount" %}
{% t= "Bedrag" fr:"Montant" en:"amount" %}
{% t= "Totaal" fr:"Total" en:"Total" %}

|:-----10%-----|:-----------------------:|---15%---|--15%---|----15%---|----15%---|------+
|{% t "Polisnummer" %}|{% t "Omschrijving" %}|{% t "Periode van" %}|{% t "Periode tot" %}|{% t "Totaal bedrag" %}|{% t "Pro rata" %}|{% t "Bedrag" %}|{% fori detail in current_account.details %}
|{% input detail.custom.polisnr %}|{% input detail.custom.omschrijving %}{% assign account = period.accounts | range: detail.custom.rek_nr %}{{account.name}}|{% input detail.custom.datum tot %}|{% input detail.custom.datum tot %}|{% input detail.custom.doc as:file %} {% input detail.value as:currency %}|{% input detail.custom.transferred_months as:integer%}/{% input detail.custom.total_months as:integer%}|{% if forloop.last %}{%endif %}{%=$1+ detail.value*detail.custom.transferredmonths/detail.custom.total_months | currency %}{% if forloop.last %}_{%endif %}|{% endfori %}
|||||{% t "Totaal" %}| {{ $1 | currency }}{% unexplained current_account.value-$1 %}|

```

Do you want the Total to be under the Total Amount and the result of the total under Pro rata?

---

<div class="post-metadata">

**Author:** ![Nathalie](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathalie](https://community.silverfin.com/u/Nathalie)\
**Post date:** [February 21, 2017, 4:40pm UTC](https://community.silverfin.com/t/layout-columns/68/9 "2017-02-21T16:40:37Z")

</div>

Michail  
Now is imput not possible. =\> big red X is popping up on the screen

Total amout should be : 1.000  
Pro rata : 8/12  
Amount : 666,67  
Total : 666,67 (this can appear on an additional line)

Thanks !

---

<div class="post-metadata">

**Author:** ![michail](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michail/32/8_2.png) [@michail](https://community.silverfin.com/u/michail)\
**Post date:** [February 21, 2017, 4:42pm UTC](https://community.silverfin.com/t/layout-columns/68/10 "2017-02-21T16:42:45Z")

</div>

The X was my mistake, sorry. I had an extra line at the beginning of my code. I edited my answer. Try it again please and let me know.

---

<div class="post-metadata">

**Author:** ![Nathalie](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathalie](https://community.silverfin.com/u/Nathalie)\
**Post date:** [February 21, 2017, 4:52pm UTC](https://community.silverfin.com/t/layout-columns/68/11 "2017-02-21T16:52:46Z")

</div>

Michail

Layout has improved !  
In my first version I’ve had some totals, but now it’s zero ?

 ![](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/c0e96eee2eefa5d0f72d44ef8b756c5a6935c4b9.png)

Additional question hereby =\> if I want to move the last total, how do I do that ?  
Next line by   
 ?

Thanks

---

<div class="post-metadata">

**Author:** ![michail](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michail/32/8_2.png) [@michail](https://community.silverfin.com/u/michail)\
**Post date:** [February 21, 2017, 5:07pm UTC](https://community.silverfin.com/t/layout-columns/68/12 "2017-02-21T17:07:33Z")

</div>

I didn’t change anything in your code. I just fixed the layout of it moving some pipes around. If you need to move the Total to the next right, just add one more | in front of `{% t "Totaal" %}`. If you want to move it to the left, just delete a | in front of it.Your total is 0 because your Bedrag is 0 too. You cannot change the value of bedrag?

---

<div class="post-metadata">

**Author:** ![Nathalie](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathalie](https://community.silverfin.com/u/Nathalie)\
**Post date:** [February 21, 2017, 5:20pm UTC](https://community.silverfin.com/t/layout-columns/68/13 "2017-02-21T17:20:06Z")

</div>

Thanks Michail. I’ll try to adjust. I just do not know what you mean by ‘moving some pipes around’.  
How can I solve this in the future myself ?

---

<div class="post-metadata">

**Author:** ![michail](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michail/32/8_2.png) [@michail](https://community.silverfin.com/u/michail)\
**Post date:** [February 21, 2017, 7:16pm UTC](https://community.silverfin.com/t/layout-columns/68/14 "2017-02-21T19:16:55Z")

</div>

Happy to help you @Nathalie. If you check your code and my final code side by side you will see that the only thing I did was to delete 3 pipes —\> |

Two pipes, create a column in markdown and silverfish uses markdown for styling. You can find more info about it in this link [https://github.com/GetSilverfin/sf-templates](https://github.com/GetSilverfin/sf-templates)

In order to explain your problem, I will show you what happened in a really simple way.

| P Number | Description | | Date from | Date to | Pro rata | Bedrag |

As you can see, there is an empty column between description and Date from. If you just delete one pipe, this empty column will be gone and all the values will move 1 position to the left.

I hope I helped you. If you need more help don’t hesitate to ask!

Regards,  
Michail

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [March 30, 2017, 1:28pm UTC](https://community.silverfin.com/t/layout-columns/68/15 "2017-03-30T13:28:52Z")

</div>


