Jump to content

Search the Community

Showing results for tags 'Array'.

  • 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

  1. hey community! maybe i'm on the wrong way but here is what i'm trying to do: i have a page called "tickets" with a template "tickets_index" which only renders a list of the page's subpages. the subpages (aka "the tickets") uses the template "ticket" which outputs all the fields of a subpage (aka "a ticket"). one of the ticket-template-fields is a repeater-field called "timesheets". this repeater-field uses the fields: ts_title, ts_desc, ts_starttime, ts_endtime. Here is my code from template "ticket" which should output every set of data from the repeater-field of the ticket... foreach ($page->timesheets as $timesheet_item){ $timesheet_item_list = ' <li class="clr_fx"> <div class="clr"> <div class="col_5"> <p class="clr_fx item title"> <label>Titel</label><span>'. $timesheet_item->ts_title .'</span> </p> <p class="clr_fx item"> <label>Beginn</label>'. $timesheet_item->ts_begin .' </p> <p class="clr_fx item"> <label>Ende</label>'. $timesheet_item->ts_end .' </p> <hr class="alt2"> <p class="clr_fx item calc_diff"> <label>Gesamt</label> <span>'. get_time_difference($timesheet_item->ts_begin, $timesheet_item->ts_end) .'</span> </p> </div> <div class="col_6"> <p class="item desc"> <label>Beschreibung</label> <span>'. $timesheet_item->ts_desc .'</span> </p> </div> </div> </li> ';} $timesheet = '<ol class="list_ticket_timesheet">'. $timesheet_item_list .'</ol>'; $content .= $timesheet; ...but as you can see (check the pictures below, too), it outputs only one set of data from the repeater. i only see the repeater-dataset "test 1". but i wanna see "test 2", too. and maybe more. did i missunderstood the field repeaters logic? - i mean: the sets are visible in edit-mode, so they seem to be somewhere ankered with the page->timesheets (well, as page in admin/repeaters/..., i know). so, what do i have to change to make this working like it should? thanks for your attention and best regards from Saxony/DE.
  2. Hi guys, come a little unstuck. For a particular project on my new site, I'm creating a grid of images but inside that grid, I'd also like to include some extra text boxes (for which I'm using repeater fields). I think I can use $var->add($new_array) to add one array to another but as the two types of boxes will have different fields I'm a bit unsure of the output. I could also just loop through all the images, then all the boxes after within the same grid but then I wouldn't be able to mix the boxes up. Does anyone have any idea how this could be accomplished? Thanks guys.
×
×
  • Create New...