| Author |
Message |
spica
Joined: 28 Sep 2006 Posts: 3
|
Posted: 28 Sep 2006 - 8:59 pm Post subject:
Hiding content when empty
Subject description: If there is no data on the rigth dont show the block |
|
|
Hi, I've try 2 days to do this with no success....
I've a template with a rigth div, so when there is no rigth content it display and empty border.
I want to hide the border when there is no content.
I am new at these and cant find any on the web.
this is the html in the template
| Line: |
Code: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| |
<!-- ###SIDE_BAR### Start -->
<div id="sidebar">
<div class="featurebox">
<!-- ###INHALT_RECHTS### Start -->
<h2>INHALT RECHTS</h2>
<!-- ###INHALT_RECHTS### Start -->
</div>
</div>
<!-- ###SIDE_BAR### Start -->
|
|
Show complete code
|
this is the setup code
| Line: |
Code: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| |
page.1 = TEMPLATE
#page.1.marks.PAGE_UID = TEXT
#page.1.marks.PAGE_UID.field = uid
page.1 {
template = FILE
template.file = fileadmin/templates/wr/index.html
workOnSubpart = DOKUMENT
subparts.INHALT < styles.content.get
subparts.MENU_OBEN < temp.MenuOben
subparts.MENU_LINKS < temp.MenuLinks
#subparts.MENU_UNTEN < styles.content.get
subparts.BREADCRUMP < tmp.breadcrump
subparts.LINKS < styles.content.getLeft
#subparts.LINKS.select.pidInList = 2
#this is the line I want to become optional
# if "styles.content.getRight" is empty do not print the SIDE_BAR div
subparts.INHALT_RECHTS < styles.content.getRight
subparts.SITENAME = TEXT
subparts.SITENAME < temp.seitenTitel
subparts.SUCHE < temp.suche
#subparts.CONTENT_BORDER < styles.content.getBorder
#subparts.COUNTER = TEXT
#subparts.COUNTER < plugin.tx_cscounter_pi1
#subparts.LAST_UPDATE < styles.content.lastUpdate
}
|
|
Show complete code
|
PLEASE any ideas? |
|
|
Back to top
|
|
|
DanyV
Joined: 13 Jun 2007 Posts: 1
|
Posted: 13 Jun 2007 - 9:42 am Post subject:
|
|
|
I have the exact same problem !
I need to hide certain content if the right column is empty.
Found somewhere on the internet that this would be simple:
| Line: |
Code: |
1 2 3 4 5 6 7
| |
[styles.content.getRight = '']
(typo code if empty)
[else]
(typo code if not empty)
[global]
|
|
Show complete code
|
But this doesn't seem to work at all.
Anybody has any ideas ?
Thanks a lot!
Dany |
|
|
Back to top
|
|
|
mediatech

Joined: 21 Nov 2006 Posts: 17 Location: Del Mar, California
|
|
|
Back to top
|
|
|
|