Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update system/cms/modules/pages/plugin.php #1108

Merged
merged 1 commit into from Feb 6, 2012

Conversation

bossninja
Copy link

Fixed the display method to properly return the $pages data array as an index within another array. This is important to make the following example code work...

{{ pages:children id="1" limit="2" }}
    <h2>{{ title }}</h2>
    {{ body }}
{{ /pages:children }}

Otherwise you're looping through the pages data and not results.

philsturgeon pushed a commit that referenced this pull request Feb 6, 2012
Update system/cms/modules/pages/plugin.php
@philsturgeon philsturgeon merged commit 69e0f31 into pyrocms:2.0/develop Feb 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants