ID/style in variable doesn't work

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
Tata
Posts: 3038
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

ID/style in variable doesn't work

Post by Tata » Thu Jul 18, 2019 6:05 pm

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?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

lck
Posts: 1790
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: ID/style in variable doesn't work

Post by lck » Fri Jul 19, 2019 10:37 am

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.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Tata
Posts: 3038
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: ID/style in variable doesn't work

Post by Tata » Fri Jul 19, 2019 10:59 am

Exactly. I have found it last night too. With morepagedata is it very comfortable and even more flexible.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply