Page 1 of 1

ID/style in variable doesn't work

Posted: Thu Jul 18, 2019 6:05 pm
by Tata
I used it before in templates and it worked perfectly. Today I am not able to make the same again.
template.htm

Code: Select all

<body id="body" class="<?php echo $body;?>" <?php echo onload();?>>
stylesheet.css

Code: Select all

#body{ /* general setting for body tag */
	width: 100vw;
	height: 100vh;
	display: table-cell;
	vertical-align: middle;
}
.intro{ /*setting for intro page only */
  	background: url(images/background.jpg) no-repeat center center fixed; 
  	background-size: cover;	
}
.page{ /* setting for all other pages */
	width: 100vw;
	height: 100vh;
	display: table-cell;
	vertical-align: middle;
  	background: none; 
}
content

Code: Select all

<h1>intro</h1>
<div>#cmsimple $body='intro';#</div>
...
<h1>Page 11</h1>
#cmsimple $body='page';#
There is no background loaded on the intro page nor on another pages. What am I missing?

Re: ID/style in variable doesn't work

Posted: Fri Jul 19, 2019 10:37 am
by lck
Tata wrote:
Thu Jul 18, 2019 6:05 pm
There is no background loaded on the intro page nor on another pages. What am I missing?
Possibly because of this change in XH 1.7 (?). See viewtopic.php?t=13728#p66362.

Re: ID/style in variable doesn't work

Posted: Fri Jul 19, 2019 10:59 am
by Tata
Exactly. I have found it last night too. With morepagedata is it very comfortable and even more flexible.