Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]Turv[/eluser]
I see what you mean now.

What would need to be done is get all the URI Segments into an Array, Pass this Array to the getBySlug function, and then have a recursive loop to check the parent id's of the previous segments.

Using your method, how would it work, Would you get the URI as a string such as /parent/child/ and then compare the URI String to the slug stored in the database which assumingly would also be /parent/child/ ?


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 08-24-2009, 06:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB