Jump to content

Search the Community

Showing results for tags 'repeater fields'.

  • 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 2 results

  1. Is there a way to automatically remove repeater fields after a certain date? My homepage has a repeater field on which has several items which link to different pages on my site. Each page is for a different concert so after the concert has passed then those pages are automatically set to hidden. The issue is that the repeater field item on the homepage that links to each concert page is not automatically hidden when the concert passes so unless it is manually removed then you get a dead link from the homepage. That wouldn't be a problem but the site isn't looked at every day and so occasionally things get left on the homepage that have passed. Let me know if that isn't clear, I am not the best at explaining sometimes.
  2. I am having trouble working out the syntax for outputting relational data that is nested inside a repeater field. I only started using repeater fields a couple of days ago, and pagearray fields three weeks ago. The problem involves the following templates and fields: classlesson_plan_section (repeater field, containing the following)lesson_plan_time lesson_plan_subject lesson_plan_section_type (pagearray field) online_tools (pagearray field) lesson_plan_section_typetitle lesson_plan_section_description online_toolstitle url I have outputted the regular text areas of the repeater field fine, like this: *table beginning code snipped off* foreach($section as $item) { $lesson_list .= "<tr><td>" . $item->lesson_plan_time . "</td><td><p><strong>" . $item->lesson_plan_subject . "</strong><br> </td><td> </td></tr>"; } *table end code snipped off* I can get the repeater fields to output, and usually I can get pagearray fields to output, but I am having trouble now that the pagearray is inside a repeater field. Do I need to add the repeater field to my syntax? I mean like this: online_tools=$page->lesson_plan_section->online_tools I have been doing various, ridiculous things with my code to try to replace the '$nbsp;'s with the lesson_plan_section_description and online_tools pages selected in the repeater field, but without luck. I know I that before output, I have to find the pages like so: $section_type = $page->lesson_plan_section_type; $tools = $page->online_tools; $section_find = $pages->find("template=lesson_plan_section_type, lesson_plan_section_type=$page->lesson_plan_section_type"); $ot_find = $pages->find("template=online_tools, online_tools=$page->online_tools"); But this is as far as I got. Can someone provide me with a hint to get me a little further?
×
×
  • Create New...