Posted on: 10/07/09 03:39pm
By: Pushkar
Hi! Please help me is it possible to make that staticpage (Centerblock, top of page, all) will displayed not only on index.php but on index.php?page=2, index.php?page=3 ... too?
thanks
version 1.4.1
Re: Staticpage on the index.php?page=2
Posted on: 10/07/09 04:02pm
By: gtgillis
Just below where you checked centerblock there is a drop down that is set to homepage only. Change that to all.
EDIT: Upgrade to the latest version.
Re: Staticpage on the index.php?page=2
Posted on: 10/07/09 04:06pm
By: Pushkar
Quote by: gtgillisJust below where you checked centerblock there is a drop down that is set to homepage only. Change that to all.
EDIT: Upgrade to the latest version.
it's set to all
(Centerblock, top of page, all)
on the latest version it doesn't displaying too
Re: Staticpage on the index.php?page=2
Posted on: 10/07/09 04:46pm
By: gtgillis
on the latest version it doesn't displaying too
You are correct. Perhaps this is a bug?
Re: Staticpage on the index.php?page=2
Posted on: 10/07/09 05:28pm
By: Dirk
The "all" refers to "all topics", not "all pages". I'm afraid what you want is not possible without code changes.
bye, Dirk
Re: Staticpage on the index.php?page=2
Posted on: 10/07/09 05:56pm
By: ::Ben
Hello,
A quick hack in the function plugin_centerblock_staticpages (plugin/staticpages/functions.inc) could help you.
Remove or comment 3 lines (see below).
Text Formatted Code
function plugin_centerblock_staticpages ($where = 1, $page = 1, $topic ='')
{
global $_CONF, $_TABLES, $_SP_CONF, $LANG_STATIC, $_IMAGE_TYPE, $LANG01;
$retval = '';
// if ($page > 1) {
// return $retval; // we only support page 1 at the moment ...
// }
::Ben
Re: Staticpage on the index.php?page=2
Posted on: 10/08/09 01:54am
By: Pushkar
Thank you, Cordiste! It works! :banana:
Dirk, please tell me why it was set only to 1 page?
If I select more than 1 page, will it affects the security of the site or the server load?
and one more question: could it possible when i set "all" that static page displayed in articles too?
Thanks
Re: Staticpage on the index.php?page=2
Posted on: 10/08/09 02:11pm
By: Dirk
Quote by: PushkarDirk, please tell me why it was set only to 1 page?
If I select more than 1 page, will it affects the security of the site or the server load?
It's simply not something that anybody asked for yet.
Quote by: Pushkarand one more question: could it possible when i set "all" that static page displayed in articles too?
If you want something on pretty much any page anyway, could you not add it to the header.thtml? You can even use PHP in that file, so you could add your own code to show or hide it depending on the page you're on.
bye, Dirk