GetSimple Support Forum

Full Version: External Theme Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, Can I create an external file to theme page?

Simple:
Site: work on www.example.com
themes : http://www.example.com/theme/v1/page1.php
to
http://sub.example.com/page1.php

for page1.php, what I need to add the system files?
try that and tell us ;=)

I wonder why sometimes people ask before testing (in this case if you have this subdomain already configured, it would take you just 3 minutes)

but to answer your question takes us a lot of time ;=)
Connie Wrote:try that and tell us ;=)

I wonder why sometimes people ask before testing (in this case if you have this subdomain already configured, it would take you just 3 minutes)

but to answer your question takes us a lot of time ;=)

Haha! Connie! Smile

Screen:
Code:
Fatal error: Call to undefined function get_page_clean_title() in ...


I want to run theme-code(tags) in page.php
okay, what needs to include system files? or is this possible?
support :/ ?
maybe nobody has answer for you?

Well, I have none, sorry
I don't understand what you want to do.

Normal GetSimple pages get the data for title, content, etc. from the corresponding xml file.
Where would your page1.php get its data from?
Carlos Wrote:I don't understand what you want to do.

Normal GetSimple pages get the data for title, content, etc. from the corresponding xml file.
Where would your page1.php get its data from?

Hello Carlos,

My goal:
1/2:
[Image: carlos1ij.png]
2/2:
[Image: carlos2z.png]
if you have access to shell on your hosting account, why don't you create a symlinks to template directories ?
yojoe Wrote:if you have access to shell on your hosting account, why don't you create a symlinks to template directories ?

Sorry, I did not understand. Could you explain a little?
Johonwayni Wrote:Sorry, I did not understand. Could you explain a little?
look here: http://en.wikipedia.org/wiki/Symbolic_link
@Johonwayni

Haha, nice graphic examples. :-)

I've done some quick experiment.

Assuming both the GS site and the subdomain are in the same server, but different folders, this could be the code for your carlos.php (or johonwayni.php) file:

Code:
<?php
$gspath = '../gs31/'; // relative path to the actual GetSimple dir

include $gspath.'admin/inc/common.php';
include $gspath.'admin/inc/theme_functions.php';
include $gspath.'admin/inc/plugin_functions.php';
include $gspath.'admin/inc/caching_functions.php';
include $gspath.'theme/Innovation/functions.php'; // remove this if you don't have a functions.php in your theme

$title = 'The page title';
$content = 'Hello Johonwayni!'; // your script should assign all the content of the page to this variable

exec_action('index-pretemplate');
include $gspath.'theme/Innovation/template.php';
exec_action('index-posttemplate');
//end

In my test site, GS is in /htdocs/gs31/, and the subdomain is in /htdocs/sub/ (hence the "../gs31/" at the beginning). I've used Innovation theme, change the 2 lines where it appears to your theme's folder.

It more or less works. Don't know if there are potential problems (with plugins, etc.), as I say this is just a quickie.

edit:I've made some changes, now get_navigation() renders the menu.
Carlos!!Smile

[Image: Carlos-Awesome.png]