x00Don't PM about development, I'm not currently taking on clientsMVP
Sorry can you be more specific? I assumed you have already achieved this.
You have the page request argument. Have you tried logic (if statements and switches, etc). ? Or simply a lookup using an associative array or simply using page request argument capitalised. These are general programming questions.
Don't PM about development, I'm not currently taking on clients.
u know how we create pages in plugins/CustomPages/pages and put the content in there? eg. for a 404 page i have 404.php in above directory with following content : <?php if (!defined('APPLICATION')) exit(); ?> <div style="margin:15px"> <h1>We are sorry but we could not find the page you are requesting.</h1> <h5>Please Try one of the pages below:</h5> </div>
that is the whole code in my 404.php i was wondering of there is method i can specify <title> </title> in this file itself or use $Sender->Head->Title('Page Not Found'); in my 404.php so that the title is displayed on the top of CustomPages i create. The main thing is i have a number of pages and i want to be able to specify different title for each page.
Theme Charcha for great desktop and mobile experience! - drop me a message :)
Answers
You have the page request argument. Have you tried logic (if statements and switches, etc). ? Or simply a lookup using an associative array or simply using page request argument capitalised. These are general programming questions.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •eg. for a 404 page i have 404.php in above directory with following content :
<?php if (!defined('APPLICATION')) exit(); ?>
<div style="margin:15px">
<h1>We are sorry but we could not find the page you are requesting.</h1>
<h5>Please Try one of the pages below:</h5>
</div>
that is the whole code in my 404.php
i was wondering of there is method i can specify
<title> </title>in this file itself or use$Sender->Head->Title('Page Not Found');in my 404.php so that the title is displayed on the top of CustomPages i create.The main thing is i have a number of pages and i want to be able to specify different title for each page.
Theme Charcha for great desktop and mobile experience! - drop me a message :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •$this works perfect fine as i wanted
Thanks
Theme Charcha for great desktop and mobile experience! - drop me a message :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Pardon the noob-ness @x00:
Where do I make this edit?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •In your custom pages php file
/plugins/CustomPages/pages/YourFile.php.Search first.
React to insightful, awesome, funny, and off-topic posts.
Check out the Wiki for lots of information about common stumbling blocks.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •