Author Topic: Using {if page_cities}something{endif page_cities} (Additional page: cities.php)  (Read 3642 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Hi,

I want to use on my gallery the following tag:
Code: [Select]
{if page_cities}something{endif page_cities}. Like
Code: [Select]
{if page_details}something{endif page_details}
page_cities means cities.php. It is an additional page.
That means if I am on the page cities.php, it will show something, otherwise nothing.

I added this on the page_header, but without success:
Code: [Select]
"page_cities"   => false,
"cities"   => false,

Any help will be appreciated.

Thanks in advance,
« Last Edit: January 07, 2012, 12:31:43 PM by cruxy »

Rembrandt

  • Guest
Re: Using {if page_cities}something{endif page_cities} (Additional pages)
« Reply #1 on: January 07, 2012, 11:26:55 AM »
in page_header:
"page_cities" => false,

in details.html:
Code: [Select]
{if page_cities}something{endif page_cities}
works

mfg Andi
« Last Edit: January 07, 2012, 12:08:06 PM by Rembrandt »

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Hi Andy,

Thanks for the support.

NB: You mean: (details.html) :wink:


I think you didn't understand my question. I am talking here about the aditional tags like:
Code: [Select]
Added more conditional tags (categories, details,index, member, postcards, register, search, top) for using {if index}...{if index} for homepage, {if details}...{endif details} for details.php page, etc.


That means if I am on the page cities.php, it will show something, otherwise nothing.

I believe I know the problem:
When I am on the page cities.php and I use: {if page_cities}something{endif page_cities} is shows nothing, but when I use {ifnot page_cities}something{endifnot page_cities} is shows the work something.

The program does not recognize the page cities.php. So we have to declare this page or all additonal pages in I think global.php. But I am not sure.


Solved:
I solved by adding this line in cities.php:
define('MAIN_SCRIPT'__FILE__);


Thanks anyway for trying to help :wink:
« Last Edit: December 03, 2014, 10:37:02 PM by Sun Zaza »