Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 03:11:14 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155555
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
Adding new pages manually
Pages: [
1
]
Go Down
Author
Topic: Adding new pages manually (Read 1104 times)
Pmaurer
Offline
Posts: 34
Adding new pages manually
«
on:
May 02, 2008, 07:02:50 PM »
I'd like to start adding more pages to my site such as "Band".....but i need to do it manually and not through the admin interface. Since i want the band page to be pretty similar to the home page, i tried to simply copy and rename the index.php file (for home) into a band.php file in the same directory and then copying and renaming the style.css sheet to styleband.css. then making sure to call that css sheet into the band.php file. But, it doesnt work. I'm getting error messages galore when i click on band. Am i doing something wrong?
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2298
Re: Adding new pages manually
«
Reply #1 on:
May 02, 2008, 10:54:52 PM »
It looks like you try to use templates as static webpages, thats not how it should work when you use WB.
You should create (using the backend) a page "band" with a wysiwyg section.
Your template is using fixed links (behind the images), so you would need to create a link to /wb/band.php in there.
The page "band" should use the same template as your "home" page.
The "page_content()" in your template is now filled with the new created page data.
The same thing goes for all other pages of your website.
If this is all new to you, I would suggest to go back to step one.
Set your template to "round" and create some pages in the backend. Then look at your site to see what happend.
Ruud
Logged
Professional WebsiteBaker Solutions
Pmaurer
Offline
Posts: 34
Re: Adding new pages manually
«
Reply #2 on:
May 04, 2008, 10:56:15 PM »
Okay, Update, I was able to add the Band page but I can't figure out how to edit the content of it, since it obviously won't change if i try to edit it in the WB CP. It's duplicating the main page.
Logged
marathoner
Offline
Posts: 495
Re: Adding new pages manually
«
Reply #3 on:
May 05, 2008, 03:12:54 AM »
Are you calling the page_content() in your template as RuudE indicated? That's what pulls the content into the template.
Logged
Pmaurer
Offline
Posts: 34
Re: Adding new pages manually
«
Reply #4 on:
May 05, 2008, 04:31:47 PM »
There is no such code line "Page_content ()" in my template.....how can I put it in? Please be specific!
Logged
doc
Guest
Re: Adding new pages manually
«
Reply #5 on:
May 05, 2008, 04:33:42 PM »
Hello,
the required steps for adding WB template functions to the index.php of your template are described on the WB Help site:
http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/adding-template-functions.php
Regards Christian
Logged
Pmaurer
Offline
Posts: 34
Re: Adding new pages manually
«
Reply #6 on:
May 06, 2008, 03:41:02 AM »
Ugh, I'm sorry i keep posting questions, but im very new to all this, and nothing seems to be working for me.
</div><!-- sidebar -->
<div id="main">
<?php echo page_content(1); ?>
I put that in, I dont know what page_content is doing, or even if it's in the right place.
What I ultimately want to be able to do is keep the main page layout for the Band page, but be able to change the sidebar and main body content. And I would like to be able to do this with all the other pages too....thanks guys, i appreciate it.
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: Adding new pages manually
«
Reply #7 on:
May 06, 2008, 10:55:57 AM »
Advice:
1) Download a template (no matter which one, just do it)
2) Open the index.php file
3) Study its source-code an at the same time study this one:
http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/adding-template-functions.php?searchresult=1&sstring=template
Regards,
Stefek
P.S.If you are using a WYSIWYG editor like for example "dreamwever" or "golive" or even "NVU", you may want to see something in the preview.
Just add this line into your <head> section:
<link href="screen.css" rel="stylesheet" type="text/css" media="screen" />
Thus you can better work with your template while creating it.
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pmaurer
Offline
Posts: 34
Re: Adding new pages manually
«
Reply #8 on:
May 07, 2008, 12:08:02 AM »
That didn't answer my previous post
.
Logged
marathoner
Offline
Posts: 495
Re: Adding new pages manually
«
Reply #9 on:
May 07, 2008, 12:22:42 AM »
Stefek gave you a very good answer your question. You don't appear to have read the documentation or taken a look at existing templates and really don't understand how it's supposed to work. If you simply take a look at a couple of the templates you'll see different ways to do things and where you could call page content into your template. You can easily create new pages in WB and have both the content and the menu dynamically updated each time the page is displayed.
«
Last Edit: May 07, 2008, 12:30:26 AM by marathoner
»
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...