Jump to content

Recommended Posts

Posted

No matter what page I view, $page->id is returning the root id. Strangely enough though it returns the proper page $page->title, $page->name, $page->parent_id. If I echo $page->rootParent;, it returns the same id.

Im baffled?

Posted

@interrobang. I retract my previous statement. You are correct as I was missing an =. Thank you for that  because I would have probably just started everything all over since its a new site. I wont mention how long I have been trying to figure it out.

I can now declare defeat by the = and take the idiot of the day award :-[.

I am taking this as a sign to take a break. :)

Posted

Good thinking! Diogo teached me to turn them around. This way you notice the error more quickly.

if(1 == $page->id)
{
  // Do stuff
}
  • Like 3
Posted

Thanks for the tip Arjen, I will have to keep that in mind. Thanks again Interrobang your my hero of the day. I would have never caught that.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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