Jump to content

Some suggestions about using 2 or more template inside a site.


vit320

Recommended Posts

"Where are topics about..."

 

I think you are asking for a Software Developer's Kit.

 

Unfortunately, there is no SDK for Cubecart.

 

There is this: http://www.cubecartforums.org/docs/ but it is very sparse.

 

We should be able to figure out how to do what you want.

 

CubeCart has a main template which gives the theme its overall structure and layout, then within that are {PLACEHOLDERS} for all the various boxes.

 

We can start by looking at /controllers/controller.index.inc.php. A statement at line 7 and again at line 90 (redundant, we can ignore this) sets the filename of the main template.

 

If what you are wanting is a different overall structure for when index.php?_a=document, we can test for that.

 

Just before the last line offline(); add:

 

if ($_GET['_a'] == 'document') $global_template_file = 'doc_main.php';

 

Then, build your doc_main.php template file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...