Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
-
Tata
- Posts: 3588
- Joined: Tue May 20, 2008 5:34 am
- Location: Slovakia
-
Contact:
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.htmCode: Select all
<body id="body" class="<?php echo $body;?>" <?php echo onload();?>>
stylesheet.cssCode: 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;
}
contentCode: 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: 2971
- Joined: Wed Mar 23, 2011 11:43 am
-
Contact:
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.
-
Tata
- Posts: 3588
- Joined: Tue May 20, 2008 5:34 am
- Location: Slovakia
-
Contact:
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.