Sometimes the kind of thing you're trying to do is better accomplished
by using an engine page with many "subpages" actually driven by
Symfony routes, and using creatively named slots where the slot names
contain dynamic information like IDs in a table.
See my next message for a response I sent to another user that you
might find interesting.
> --
>
> You received this message because you are subscribed to the Google Groups
> "pkcontextcms" group.
> To post to this group, send email to pkcont...@googlegroups.com.
> To unsubscribe from this group, send email to
> pkcontextcms...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pkcontextcms?hl=en.
>
--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com
That is probably the best way to do precisely as you described.
Sometimes the kind of thing you're trying to do is better accomplished
by using an engine page with many "subpages" actually driven by
Symfony routes, and using creatively named slots where the slot names
contain dynamic information like IDs in a table.
See my next message for a response I sent to another user that you
might find interesting.
--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com
--
You received this message because you are subscribed to the Google Groups "pkcontextcms" group.
To post to this group, send email to pkcont...@googlegroups.com.
To unsubscribe from this group, send email to pkcontextcms...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pkcontextcms?hl=en.
You need to use pkContextCMSPageTable::retrieveById,
pkContextCMSPageTable::retrieveBySlug, or the query-building methods
they rely on (probably that last choice since it will allow you to
write a query that pulls more than one page and yet still gets the
proper areas).
$area->AreaVersions[0] gets the first version that is part of what the
query returned, not the first version that exists. But if your query
never specified versions, you do get them all - not desirable in
practice.