How to handle pages...

Permalink
Hello, this may be a newbie question, but here goes.
I have a site I'm trying to get to work in C5. I've got everything installed and the basic default.php working.
Then the trouble starts.
Basically, the site in question has a header, sidebars(left & right), w/ the center left open for content, and a footer.
I really need to make several different templates, but I'm not sure how to do that, or if it's even possible to have multiple templates. While they would all have the look of the default.php template, I need each on to have different editable areas in the main content area, so my client can create various pages, all of which have a different look in the main content area.
I already have the site created, so I thought I could just set-up the pages to have individual looks. But when I put in the C5 code and upload to my themes/THEME/pages folder, I have 2 problems:
1) the navigation that is linked to that page doesn't work, even though I have the $this=>GetThemePath() code in place
2) When I manually type in the full path to the page in question (ie.http://www.site.com/themes/THEME/pages/page.php),... I get the following error:
'Fatal error: Class 'Loader' not found in.......line 4'. Line 4 is exactly where I have the following code:
'<? Loader::element('header_required'); ?>'. Why is it not working?
Please help.
Also, sorry if this is a bit confusing, my wife had a baby very recently, + I'm working 80 hour weeks on this project, so needless to say, I need some sleep.
Someone please help so I can go to bed!
Thanks all
Huckleberry

Abs0lute
View Replies:
glockops replied on at Permalink Reply
glockops
I responded to the other thread you posted in, but to summarize - I believe you're getting an access denied error because the page link is located in the themes folder.

Think of the themes folder of Concrete as a system directory.

The page you want to link to, should be created with concrete - then you can link to the path you've specified when creating the C5 page.

So if you added a page in C5 called "this-is-the-page" under the Home "folder" in the C5 Sitemap, then your link to that page would be "http://www.yoursite.com/this-is-the-page"

I'll monitor this forum in case you have questions.

Good Luck! (Cool site design by the way)
Abs0lute replied on at Permalink Reply
Abs0lute
Thanks glockops,

I knew I was just doing something wrong, and my newness to Concrete was preventing me from figuring out what. The answers come w/ experience, as they say.
I'll try out what you suggest, and let you know if it works.
Thanks so much, and thanks for the compliment on the design. I'm a rare bird in the web world in that I come from a formal fine arts background, not IT, so all the complicated stuff like PHP I've pretty much had to learn on my own. But I really enjoy it!
Thanks again.
Huckleberry
Abs0lute replied on at Permalink Reply
Abs0lute
Hey glockops,

I tried what you suggested. Made a page, saved it as 'stewards' in the home folder. Then in my included navigation file, the link looks like this:
<li id="stewards">
<a href="http://www.this1farm.com/stewards.php" class="tooltip">
<span>Stewards</span></a></li>

Now when you click the link on the navigation in the top left titled 'Stewards' (3rd from left), the address it goes to is:http://www.this1farm.com/stewards.php....

However, I get a 404 Not Found
The requested URL /stewards.php does not exist.

What am I doing wrong?

thanks for your help
Huck
Abs0lute replied on at Permalink Reply
Abs0lute
okay, I realized I didn't have prettyURLs activated. Tried to, but the .htaccess code didn't work. I'll tackle that at a later date. I copied the filepath it gave me when editing the 'stewards' page,http://www.this1farm.com/index.php?cID=61,... and pasted that into my navigation.

And it works!

Now to create some pages, and then get the prettyURLs working.
I saw some posts on the prettyURLs not working, but haven't got a chance to review yet. Any leads on getting prettyURLs working?

Thanks again for your help!
Huck
glockops replied on at Permalink Reply
glockops
Your stewards page is located here:http://www.this1farm.com/index.php/stewards...

You need to enable Pretty URLs to be able to access it without the index.php part.
- Log into the C5 dashboard
-> Go to "Sitewide Settings"
-> Check "Enable Pretty URLs"
-> Copy the code that shows up
-> Browse to your .htaccess file that is in your webserver's root directory (you'll need to use an FTP program or a file manager that your webhost may provide - that might also be able to help you edit the .htacess file)
-> Paste the code into the .htaccess file and save.

Then the linkhttp://www.this1farm.com/stewards... will work
- You don't need to add the .php to the href tag. So just link to href="/stewards"
Abs0lute replied on at Permalink Reply
Abs0lute
Hey glockops,

I just noticed when I started testing that, while my links work, it causes IE to crash! I'm testing IE 7, and everytime I click the 'stewards' link (top left navigation buttons, 3rd from left) IE crashed. When it offers to diagnose the problem, it said Yahoo toolbar was old or corrupt or something, so I updated that, and it still crashes. It gave me the following error log:

Problem signature:
Problem Event Name: APPCRASH
Application Name: iexplore.exe
Application Version: 7.0.6001.18248
Application Timestamp: 49f1c24f
Fault Module Name: mshtml.dll
Fault Module Version: 7.0.6001.18248
Fault Module Timestamp: 49f1e323
Exception Code: c0000005
Exception Offset: 0004297f
OS Version: 6.0.6001.2.1.0.768.3
Locale ID: 1033
Additional Information 1: fd00
Additional Information 2: ea6f5fe8924aaa756324d57f87834160
Additional Information 3: fd00
Additional Information 4: ea6f5fe8924aaa756324d57f87834160

Any clues what might be causing this?