Jump to content

Search the Community

Showing results for tags 'page child render'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. I am having issues rendering child pages. I am trying to create an easy means of structuring pages for use with bootstrap 3. Adding field selectors for some common css constructs such as pad and column count and additional css classes. Then I am adding in common bootstrap 3 constructs as reusable templates. When things are simple I use a ckeditor body field to out put the final content. But for something more complex at the end I use Ace text editor body field. An example Section - template -- Container - template ----Row - template ------Column - template --------Sub Column - template with Ace Body text My issue is that after the first Ace Body text is rendered, that same body text is appearing everywhere I render page children. Please see attached image for issue markup. I have also included a subset of my template files for reference below /** * Column template */ <div class="row <?php if($page->pad_select!=none) echo 'pad' . $page->pad_select; ?> <?php if($page->additional_css_classes) echo $page->additional_css_classes; ?>"> <?php foreach($page->children as $child) echo $child->render(); ?> </div> /* * Row template */ <div class="row <?php if($page->pad_select!=none) echo 'pad' . $page->pad_select; ?> <?php if($page->additional_css_classes) echo $page->additional_css_classes; ?>"> <?php foreach($page->children as $child) echo $child->render(); ?> </div> /* * Sub column template (The one causing the issue - I think) */ <div class="<?php if ($page->col_select_sm!=none) echo 'col-sm-' . $page->col_select_sm; ?> <?php if ($page->col_select_md!=none) echo 'col-md-' . $page->col_select_md; ?> <?php if ($page->col_select_lg!=none) echo 'col-lg-' . $page->col_select_lg; ?> <?php if($page->pad_select!=none) echo 'pad' . $page->pad_select; ?> <?php if($page->additional_css_classes) echo $page->additional_css_classes; ?>"> <?php echo $page->body; ?> <?php echo $page->ace_body; ?> </div> Any ideas why the first ace_body is now getting repeated all over my page. By the way, this is for a single page layout. It may not be the best way to go about it. I am just experimenting for now as I learn.
×
×
  • Create New...