Search found 16 matches

by nion
Wed Nov 15, 2017 1:08 pm
Forum: 2.x.x support
Topic: [SOLVED] Onepager Theme
Replies: 30
Views: 62806

Re: Onepager Theme

Thank you for your short script. My solution for a one pager theme: <?php if( wCMS::$loggedIn ) : ?> content for admin <?php else : ?> content for visiter <?php endif; ?> So here is the result: https://github.com/niondevelop/oner The code is very messy, but it works :roll:. greets
by nion
Fri Nov 10, 2017 1:13 pm
Forum: 2.x.x support
Topic: [SOLVED] Onepager Theme
Replies: 30
Views: 62806

Re: Onepager Theme

Your right it works for the current page entries (content and additonal_content).
But the second page entries doesn't save anithing.
If you change the site over the menu (wondercmd.com/page2) it save also in the first db entrie (page1)
I hope you understand my English

greets
by nion
Fri Nov 10, 2017 10:05 am
Forum: 2.x.x support
Topic: [SOLVED] Onepager Theme
Replies: 30
Views: 62806

Re: Onepager Theme

Hi Editing works only for the first entry. I've another idea, is it possible if you logged in to get a another theme Something like that: <?php if ( wCMS::$loggedIn ) { $theme = "admin"; } ?> greets edit: I find a Solution by myself <?php if( wCMS::$loggedIn ) : ?> content for admin <?php ...
by nion
Fri Nov 10, 2017 9:39 am
Forum: 2.x.x support
Topic: [SOLVED] Transparent background theme...
Replies: 14
Views: 27225

Re: Transparent background theme...

If you use the default Theme 1. Make a copy of the folder 2. Rename to blank or somthing like that 3. Delete the line background: #eee; and box-shadow: 0 0 100px rgba(0, 0, 0, 0.27) inset; in the /css/style.css Or copy this code snippet: html { min-height: 100%; position: relative; } body { color: #...
by nion
Thu Nov 09, 2017 8:40 am
Forum: 2.x.x support
Topic: [SOLVED] Onepager Theme
Replies: 30
Views: 62806

Re: Onepager Theme

Hi wiz

Thank you so much for the support!
Your code snippet work fine, the content will display correctly with the additional content.
In the admin it's editable but it don't save anything to db
by nion
Tue Nov 07, 2017 2:10 pm
Forum: 2.x.x support
Topic: [SOLVED] Onepager Theme
Replies: 30
Views: 62806

[SOLVED] Onepager Theme

Hello I'm trying to create an onepager theme. I like to display all db entries in the first page. I tried that with the following code (from the Blog Project): <?php $class = ""; if ( wCMS::$loggedIn ) { $class = "editText editable"; } ?> <?php foreach ( wCMS::db()->pages as $pag...