View more context

 

harvs1789uk

@customPhpDev where were you putting/calling my code sample?

  1. public function getLimitedImages() {
  2. return $this->getComponents('BottomImages')->limit(3);
  3. }

then

<% loop $getLimitedImages %>

should work?

harvs1789uk

Ah...did you copy and paste my syntax error of a closing ] instead of a closing )?

customPhpDev

I have revamped your code and then tested but it didn't work. But, I think your last code should work.

harvs1789uk

I really hope you are working on a 'pleasing' website and BottomImages has nothing to do with their position on the page.... 😛

Jerome Camacho

hola , may i know how to do a password protect a specific page ? is there any add-ons ? or some special variables to add ?

andante

if you want to add a basic auth type login for a page, thats best done server side

andante

if you want to only authorise certain people, then best to use a role or group

Jerome Camacho

what if i have "contact-us" page , then that contact-us page only has password protect , what if i have a users list from csv and even though they should not register on the cms user , they can view that page on browsing ? how can i do that ?