Jump to content

Several page templates? viewDoc.tpl


Guest loobiac

Recommended Posts

Guest loobiac

Im creating a custom page, it will be a "document page". But Id like to keep the current viewDoc.tpl intact, and then have a second viewDoc.tpl (ie viewDoc2.tpl) that is loaded for the custom page. Is this possible?

(I hope my English makes sense =) )

Link to comment
Share on other sites

The easy hack for this is to duplicate some files. You would copy viewDoc.inc.php as veiwDoc2.inc.php, then you would assign its output in the root index.php, just as tviwDoc.inc.php is assigned there.

In your "new" viewDoc2.inc.php you would set the XTemplate as viewDoc2.tpl

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...