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
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