how to set the title of a non-WP page

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Re: how to set the title of a non-WP page

Postby Connie » 29 Apr 2010, 14:36

Great, now I can try to collect my puzzled brain and recover!

I had just a funny remembrance: CMSMADESIMPLE has an addon, which uses the page-layout for non-system-pages, to integrate an online-shop. It is called something like "shopskin helper", www.cmsmadesimple.org

They do like that:

you have to set 2 defined comment-lines in the template, 1 before the contnent and the 2nd after the content before the footer

than you run a script, this copies the parts above and under content, writes top.php and bottom.php

and in the non-system-pagetempate you include those

if you run that script by cron-job, it is always uptodate

that could have been a solution for you as well, but my grey cells were to slow..

Cheers, Connie
User avatar
Connie
 
Posts: 1163
Joined: 10 Nov 2009, 04:53

Re: how to set the title of a non-WP page

Postby marcnyc » 29 Apr 2010, 16:44

Actually I am doing something similar in concept but much simpler and involves no cron job... I basically created two files (header.php and footer.php) which have the wp-load include as a require_once (include_once would work too, but it needs to be a once type include/require) and then the get_header() and get_footer() functions respectively.
After that instead of including the file (which gives me the errors I posted), I use file_get_contents and then print those contents... The result is the same, the header and the footer are always up to date without a cron job, and I can now wrap ANY content inside a WP page...
I'll show you what I did when I'm done.
marcnyc
 
Posts: 171
Joined: 08 Nov 2009, 16:04

Re: how to set the title of a non-WP page

Postby Connie » 29 Apr 2010, 23:09

I'll show you what I did when I'm done.

Great!
User avatar
Connie
 
Posts: 1163
Joined: 10 Nov 2009, 04:53

Previous

Return to Support Requests

Who is online

Users browsing this forum: Google [Bot], mfuywtol, Nuateauthow and 4 guests