First: this tutorial is similar for subsilver2.
- Which file have to be edited?
The file where the position and order of the blocks is defined, is the:
root\styles\prosilver\template\portal\portal_body.html - How do i know where the right, center and left column begins?
The begin of the columns is marked by following comments:Code: Select all
<!-- [+] left block area -->
Code: Select all
<!-- [+] center block area -->
Code: Select all
<!-- [+] right block area -->
- What code does belong to one block?
The code belonging to the blocks is seperated by empty lines (okay, not in every case, we have to clean up a bit). In every case at least one IF and ENDIF statement belongs to each block.
For example: This is how the codeblock for the poll block looks like:There could be more than one IF / ENDIF statement, e.g. like in the announcements:Code: Select all
<!-- IF S_DISPLAY_POLL --> <!-- INCLUDE portal/block/poll.html --> <!-- ENDIF -->
Code: Select all
<!-- IF S_DISPLAY_ANNOUNCEMENTS --> <!-- IF S_ANNOUNCE_COMPACT --> <!-- INCLUDE portal/block/announcements_compact.html --> <!-- ELSE --> <!-- INCLUDE portal/block/announcements.html --> <!-- ENDIF --> <!-- ENDIF -->
- How do i move a block?
You have to search for the belonging code, (including the IF and ENDIF statements!), cut & paste at the position you want the block to move to.
The block have to be pasted in every case after a <!-- ENDIF --> statement.
Tip: the number of IF and ENDIF statements have to be the same. Counting could help.
In the end save and upload the portal_body.html and purge the cache. Maybe recompile the template.
FAQ Table Of Contents / Inhaltsverzeichnis