yesjoar Posted December 12, 2012 Share Posted December 12, 2012 Hi there. An other question today. I have a really big repeater-field. So now I add a new repeater-element and all my fields are displayed. Thats ok. But I need an option to hide the repeater-element. So, when I create 3 repeater-elements my page is too long. I want a click on my repeater-element and then the fields are displayed. (And now, I don't wanna hide the repeater himselfs at first.) Any ideas, how I can handle this? y. Link to comment Share on other sites More sharing options...
diogo Posted December 12, 2012 Share Posted December 12, 2012 Wouldn't it be better to make it with normal pages instead? I don't think repeaters are the ideal for lots of info. 1 Link to comment Share on other sites More sharing options...
Soma Posted December 12, 2012 Share Posted December 12, 2012 I have no idea what you're talking about. Maybe screenshots will help. You can collapse fields by default, or when they're empty or filled in the field settings. Is that what you're looking for. Do you mean to collapse the repeater fieldset by default, like the one for fields? Link to comment Share on other sites More sharing options...
yesjoar Posted December 12, 2012 Author Share Posted December 12, 2012 @Soma I want collapse both text-area-elements. (Textarea #1 and Textarea #2) And they should be always collapsed. First when i click on an element I see the the fields in there. 1 Link to comment Share on other sites More sharing options...
onjegolders Posted December 12, 2012 Share Posted December 12, 2012 I also think, the repeaters can often be a bit clunky, not sure if there is a way to have them closed by default (can't see it in the field settings?). Link to comment Share on other sites More sharing options...
diogo Posted December 12, 2012 Share Posted December 12, 2012 You have to go to those fields settings, and in the tab INPUT, set their visibility to "Always collapsed, requiring a click to open". You can also do it only in the context of the repeater by clicking on the field name on the reapeater DETAILS area. edit: hm... that was for the fields, not the repeater itself. Ignore it. 1 Link to comment Share on other sites More sharing options...
Soma Posted December 12, 2012 Share Posted December 12, 2012 There's currently no option for that as far as I know. But I think it would be possible to implement. For now you could add something like this to your inputfields.js of the admin theme, "teasers" being the field name of the repeater. $('#wrap_Inputfield_teasers ul.Inputfields.ui-sortable > li').addClass("InputfieldStateCollapsed"); 1 Link to comment Share on other sites More sharing options...
diogo Posted December 12, 2012 Share Posted December 12, 2012 Ya, that's an easy one, but I agree that it would make sense to have this option on the repeaters settings. Link to comment Share on other sites More sharing options...
doolak Posted April 26, 2015 Share Posted April 26, 2015 Hi there, tried to add the code in the inputfields.js - but in my case (maybe this was changed in PW 2.5+ ?) PW is using the inputfields.min.js - so I had to add it there. BTW: +1 vote for such an option in the settings (Show repeater items collapsed/open) ! And what else would be really great - im my opinion: 1. A possibilty to add an alternative singular version of the Label (e.g. Repeater Label = "Slides" / Element Label ="Slide") 2. The possibility to set a limit of elements in a repeater Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now