Jump to content

autobahn

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

1,291 profile views

autobahn's Achievements

Newbie

Newbie (2/6)

3

Reputation

  1. thank you a lot, wanze. i'am watching this community since february this year. its a pleasure for me to be part of such a lovely, decent and productive community - so i will do my part to it, too. also thank you for your help. you're right, my variable is the problem. i like such problems, because they are the base of my education. i'am autodidact - learning by doing, you know. for this time, you're my php-coach. thanks a lot. originally i'am lifeguard. since 2008 i run a little web&marketing-agency, because culture becomes canceled in germany more than more. till february, i worked with joomla as my working-base. php never was something i want to learn more than necessary. but in fact, i had to. joomla did the job, virtually. but its joomla, you know. now, since i found pw & its fantastic sources (also forums etc.), php & me still getting friends. I never thought that it could be so easy to be so flexible. :] for me, pw is not only cmf/cms. pw is an attitude. thanks to ryan & the pw-community! and thank you wanze. ;] best regards from the land of 'Plan B'. peace!
  2. 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.
×
×
  • Create New...