Jump to content


Photo

repeater inside itself


  • Please log in to reply
40 replies to this topic

#1 diogo

diogo

    Hero Member

  • Moderators
  • 1,998 posts
  • 1076

  • LocationPorto, Portugal

Posted 30 May 2012 - 06:32 AM

Ok, i did it :) I put a repeater inside itself just to see what would happen, and the result is not pretty. As soon as you create a page with it, it creates a big number of repeater pages and breaks the system. It would be better if PW would just disallow this.

#2 teppo

teppo

    Sr. Member

  • Members
  • PipPipPipPip
  • 388 posts
  • 385

  • LocationFinland

Posted 30 May 2012 - 11:05 AM

Oh well, it was pretty obvious that someone had to try this :D

#3 Soma

Soma

    Hero Member

  • Moderators
  • 3,191 posts
  • 1745

  • LocationSH, Switzerland

Posted 30 May 2012 - 11:11 AM

I actually tried it the first I did when it came out, it seemed to work, though silly and not tested further.

@somartist | modules created | support me, flattr my work flattr.com


#4 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,526 posts
  • 854

  • LocationVihti, Finland

Posted 30 May 2012 - 11:54 AM

If I understood correctly this is a scenario where "repeater A" includes "repeater A"? I'm not in a position to test, but does it work if I have two different repeaters and other one is part of other? Like "repeater A" has "repeater B"..

#5 diogo

diogo

    Hero Member

  • Moderators
  • 1,998 posts
  • 1076

  • LocationPorto, Portugal

Posted 30 May 2012 - 12:20 PM

Antii, that scenario works perfectly. Only A inside A gives strange results... as expected :)

#6 Soma

Soma

    Hero Member

  • Moderators
  • 3,191 posts
  • 1745

  • LocationSH, Switzerland

Posted 30 May 2012 - 12:35 PM

Ahh i was talking about a in b. In itself doesnt make sense at all.

@somartist | modules created | support me, flattr my work flattr.com


#7 Pete

Pete

    Administrator

  • Administrators
  • 1,756 posts
  • 658

  • LocationChester, England

Posted 30 May 2012 - 01:17 PM

The joys of recursion :(

#8 diogo

diogo

    Hero Member

  • Moderators
  • 1,998 posts
  • 1076

  • LocationPorto, Portugal

Posted 30 May 2012 - 01:27 PM

Ahh i was talking about a in b. In itself doesnt make sense at all.


You don't have a scientific spirit :D

#9 Soma

Soma

    Hero Member

  • Moderators
  • 3,191 posts
  • 1745

  • LocationSH, Switzerland

Posted 30 May 2012 - 01:31 PM

You don't have a scientific spirit :D


Well, then I have something for your scientific spirit! :P

function turnPage(){
  turnPage();
}
turnPage();

@somartist | modules created | support me, flattr my work flattr.com


#10 diogo

diogo

    Hero Member

  • Moderators
  • 1,998 posts
  • 1076

  • LocationPorto, Portugal

Posted 31 May 2012 - 03:24 AM

That's scientific enough for me :)

#11 ryan

ryan

    Hero Member

  • Administrators
  • 5,773 posts
  • 3118

  • LocationAtlanta, GA

Posted 31 May 2012 - 11:43 AM

Repeaters should be okay with putting repeater B inside repeater A. But if you are putting repeater A inside repeater A… all bets are off. :) We'll have to add some extra checking for the folks that need the infinite recursive depth repeater features in their site. :)

#12 martind

martind

    Jr. Member

  • Members
  • PipPip
  • 25 posts
  • 0

  • LocationAustria

Posted 19 February 2013 - 09:18 AM

i`m on 2.2.13 and repeater fields aren`t listed in selectable reapeater-fields of repeater A. Is that normal?



#13 Martijn Geerts

Martijn Geerts

    Sr. Member

  • Members
  • PipPipPipPip
  • 373 posts
  • 168

Posted 19 February 2013 - 09:53 AM

LOL !



#14 martind

martind

    Jr. Member

  • Members
  • PipPip
  • 25 posts
  • 0

  • LocationAustria

Posted 19 February 2013 - 10:07 AM

LOL !

means what?



#15 Philipp

Philipp

    Distinguished Member

  • Members
  • PipPipPip
  • 56 posts
  • 52

  • LocationGermany, Heidenheim

Posted 19 February 2013 - 11:16 AM

@martind 

You have to install it first. PW comes bundled with the module, but you have to go to Modules - Repeater and click install. After that, you should find "Repeater" as a new field type.



#16 Martijn Geerts

Martijn Geerts

    Sr. Member

  • Members
  • PipPipPipPip
  • 373 posts
  • 168

Posted 19 February 2013 - 11:17 AM

just a reaction on "repeater inside itself".



#17 martind

martind

    Jr. Member

  • Members
  • PipPip
  • 25 posts
  • 0

  • LocationAustria

Posted 19 February 2013 - 11:45 AM

thanks philipp, i`m familiar with the repeater field and have used it a few times in nested context as discribed in this thread further up. now I have a setup with a newer pw-release and it seems, that it is no longer possible to nest repeater field A inside repeater field B.

 

@martijn ... if i interpret your, a bit cynic seeming, responses right, this is not a new question?



ah, ... i don`t mean a repeater in itself but a repeater field inside another repeater field



#18 diogo

diogo

    Hero Member

  • Moderators
  • 1,998 posts
  • 1076

  • LocationPorto, Portugal

Posted 19 February 2013 - 11:49 AM

Martind, he was laughing at me, not at you :)



#19 Martijn Geerts

Martijn Geerts

    Sr. Member

  • Members
  • PipPipPipPip
  • 373 posts
  • 168

Posted 19 February 2013 - 12:45 PM

@diogo, you funny man :-)



#20 martind

martind

    Jr. Member

  • Members
  • PipPip
  • 25 posts
  • 0

  • LocationAustria

Posted 19 February 2013 - 12:51 PM

yes, i see. was a bit confused.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users