# Always Portrait in Export mode

**URL:** <https://community.silverfin.com/t/always-portrait-in-export-mode/519>\
**Category:** Templates\
**Tags:** styling, change\_orientation\
**Created:** [December 1, 2017, 12:53pm UTC](https://community.silverfin.com/t/always-portrait-in-export-mode/519 "2017-12-01T12:53:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thijs](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Thijs](https://community.silverfin.com/u/Thijs)\
**Post date:** [December 1, 2017, 12:53pm UTC](https://community.silverfin.com/t/always-portrait-in-export-mode/519/1 "2017-12-01T12:53:37Z")

</div>

Hi,

I want a certain reconciliation template always in portrait on export mode.

I tried `{% changeorientation reconciliation.leningen_-_PD %}` in detail text, but didn’t work.

> {% t= “Activa” fr:“Explication actif” %}  
> {% t= “Passiva” fr:“Explication passif” %}  
> {% t= “Kosten” fr:“Frais” %}  
> {% t= “Opbrengsten” fr:“Produits” %}  
> {% t= “Fiscale toelichting” fr:“Explication fiscale” %}
> 
> {% capture sf\_default\_detail\_template %}  
> {% raw %}  
> {% unless current\_account.details.count == 0 and current\_account.value == 0 %}  
> {% for detail in current\_account.details %}{% if forloop.first %}|-----|----14%-----:|-----14%------:+{% endif %}  
> | {{detail.title}}{% if detail.description != blank %}  
> {{detail.description | multiline\_table}}{% endif %}{% if detail.custom.document %}  
> {% input detail.custom.doc as:file %}{% endif %} |{% if current\_account.liability\_or\_income %}{{-1\*detail.value | currency}}{% else %}{{detail.value | currency}}{% endif %}| &nbsp; {% endfor %}  
> {% endunless %}  
> {% endraw %}  
> {% endcapture %}
> 
> {% for account\_or\_text in export.selected\_accounts\_and\_reconciliation\_texts.assets.include\_zeros\_with\_details %}
> 
> {% if account\_or\_text.is\_account %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Activa” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |------------|------15%------:+{{export.highlight\_alt\_bg\_color}}  
> | {{ account\_or\_text.number }} {{ account\_or\_text.name }} | {{ account\_or\_text.value | currency }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% else %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Activa” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> {% changeorientation reconciliation.leningen\_-\_PD %}
> 
> |--------+{{export.highlight\_alt\_bg\_color}}  
> |{{ account\_or\_text.name }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% endif %}
> 
> {% endfor %}
> 
> {% for account\_or\_text in export.selected\_accounts\_and\_reconciliation\_texts.liabilities.include\_zeros\_with\_details %}
> 
> {% if account\_or\_text.is\_account %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Passiva” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |------------|------15%------:+{{export.highlight\_alt\_bg\_color}}  
> | {{ account\_or\_text.number }} {{ account\_or\_text.name }} | {{ -1\*account\_or\_text.value | currency }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% else %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Passiva” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |--------+{{export.highlight\_alt\_bg\_color}}  
> |{{ account\_or\_text.name }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% endif %}
> 
> {% endfor %}
> 
> {% for account\_or\_text in export.selected\_accounts\_and\_reconciliation\_texts.revenues.include\_zeros\_with\_details.6 %}
> 
> {% if account\_or\_text.is\_account %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Kosten” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |------------|------15%------:+{{export.highlight\_alt\_bg\_color}}  
> | {{ account\_or\_text.number }} {{ account\_or\_text.name }} | {{ account\_or\_text.value | currency }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% else %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Kosten” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |--------+{{export.highlight\_alt\_bg\_color}}  
> |{{ account\_or\_text.name }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% endif %}
> 
> {% endfor %}
> 
> {% for account\_or\_text in export.selected\_accounts\_and\_reconciliation\_texts.revenues.include\_zeros\_with\_details.7 %}
> 
> {% if account\_or\_text.is\_account %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation’ %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Opbrengsten” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |------------|------15%------:+{{export.highlight\_alt\_bg\_color}}  
> | {{ account\_or\_text.number }} {{ account\_or\_text.name }} | {{ -1\*account\_or\_text.value | currency }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% else %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Opbrengsten” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |--------+{{export.highlight\_alt\_bg\_color}}  
> |{{ account\_or\_text.name }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% endif %}
> 
> {% endfor %}
> 
> {% for account\_or\_text in export.selected\_accounts\_and\_reconciliation\_texts.8 %}
> 
> {% if account\_or\_text.is\_account %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Fiscale toelichting” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |------------|------15%------:+{{export.highlight\_alt\_bg\_color}}  
> | {{ account\_or\_text.number }} {{ account\_or\_text.name }} | {{ account\_or\_text.value | currency }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% else %}
> 
> {% if forloop.first %}  
> {% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}
> 
> # {% t “Fiscale toelichting” %}
> 
> {% else %}  
> {% changeorientation account\_or\_text.preferred\_orientation %}  
> {::group}  
> {% endif %}
> 
> |--------+{{export.highlight\_alt\_bg\_color}}  
> |{{ account\_or\_text.name }}
> 
> {{ account\_or\_text.rendered\_template }}
> 
>   
> 
> {:/group}
> 
> {% endif %}
> 
> {% endfor %}

---

<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:** [December 4, 2017, 8:35am UTC](https://community.silverfin.com/t/always-portrait-in-export-mode/519/2 "2017-12-04T08:35:08Z")

</div>

Hello @Thijs,

What the `{% changeorientation %}`does, is going to landscape-mode when there’s a template with more than 7 columns.

So, your reconciliation template will probably have more than 7 columns? Could you check that?

For now, there’s no option to force a detail into portrait, when more than 7 columns.

---

<div class="post-metadata">

**Author:** ![Thijs](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Thijs](https://community.silverfin.com/u/Thijs)\
**Post date:** [December 4, 2017, 8:46am UTC](https://community.silverfin.com/t/always-portrait-in-export-mode/519/3 "2017-12-04T08:46:40Z")

</div>

@sven Ok, thanks for the answer!
