Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users
Is there a better way to get a single element?
 

Index | Next | Previous | View Flat


adam at RFXTechnologies

Sep 5, 2011, 1:37 PM


Views: 649
Permalink
Is there a better way to get a single element?

I have a story with exactly 4 sections in it.
Each section gets called individually.

I currently use this approach to get at each of the 4 sections.
my @homepageSections = $element->get_elements("section");
$burner->display_element( $homepageSections[0] );
$burner->display_element( $homepageSections[1] );
$burner->display_element( $homepageSections[2] );
$burner->display_element( $homepageSections[3] );


Is there a better way to access each section? Perhaps something like:
$burner->display_element( $element->get_element("section")[0] );

I don't see get_element in the docs, so I don't think that is possible, but it would be nice if there were a way to reference a specific element in the story instead of iterating through to find it.

Thanks for the consideration,
Adam

Subject User Time
Is there a better way to get a single element? adam at RFXTechnologies Sep 5, 2011, 1:37 PM
    Re: Is there a better way to get a single element? adeola at creativeadea Sep 5, 2011, 6:09 PM
    Re: Is there a better way to get a single element? adeola at creativeadea Sep 5, 2011, 6:13 PM
    RE: Is there a better way to get a single element? adam at RFXTechnologies Sep 5, 2011, 6:49 PM
    Re: Is there a better way to get a single element? adeola at creativeadea Sep 5, 2011, 11:38 PM
    Re: Is there a better way to get a single element? david at kineticode Sep 6, 2011, 10:39 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.