Jump to content

Assigning custom page title to a clientarea page


Blu_

Recommended Posts

Alright so basically from my understanding, every other page that starts with clientarea.php 's $pagetitle is "Client Area". This is a problem for me. I need this page "clientarea.php?action=details" and some other ones to have their very own unique pagetitle so my {if} statments can work...

Link to comment
Share on other sites

Alright so basically from my understanding, every other page that starts with clientarea.php 's $pagetitle is "Client Area". This is a problem for me. I need this page "clientarea.php?action=details" and some other ones to have their very own unique pagetitle so my {if} statments can work...

 

You can use an IF statement like this - no need to change page titles:

 

{if $clientareaaction eq 'details'}

 

{elseif $clientareaaction eq 'changepw'}

 

{elseif $clientareaaction eq 'invoices'}

 

{/if}

Link to comment
Share on other sites

You can use an IF statement like this - no need to change page titles:

 

{if $clientareaaction eq 'details'}

 

{elseif $clientareaaction eq 'changepw'}

 

{elseif $clientareaaction eq 'invoices'}

 

{/if}

 

Very nice code, I've never seen this way of detecting specific client area pages. I would always use the pagetitle string. This is a better way of doing it.

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