Jump to content

Accessing custom client area templates


bushdoc

Recommended Posts

Hi folks

 

I'm trying to create some custom templates within the client area but am having problems accessing them.

 

If I create a tpl file clientareatest.tpl, how can I access this through the clientarea.php file?

 

For example, the change security question tpl file is clientareachangesq.tpl and accessed through clientarea.php?action=changesq. Using this method with a custom template I just get a blank clientarea.php page.

 

TIA

Link to comment
Share on other sites

I am not sure that the templating is done the way you are thinking it is. From your testing, it seems that action=whatever does not translate into using template whatever.tpl. You can kinda be sly about it and do something like change clientareachangesq.tpl (or any other) and go like:

{if isset($smarty.request.somevar)}

<!-- as BAJI26 said -->

{include file='template/$template/clientareatest.tpl'}

{else}

... the regular template

{/if}

 

and then access it through clientarea.php?action=changesq&somevar=1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated