Jump to content
thomas

Create PageArray with delimiter string?

Recommended Posts

Hello,

I feel like I read somewhere that you can create a PageArray with a delimiter string ie "313|34|23|978" ... like the opposite of (string)PageArray ... I can't find it though ... maybe it was just a dream and I have to iterate ...

Can anyone help?

Thanks,

thomas

Share this post


Link to post
Share on other sites

Hi,

$pageArray = $pages->getById("313|34|23|978");

Cheers  :)

  • Like 4

Share this post


Link to post
Share on other sites
$pageArray = $pages->find("id=3922|2394|2341");

Should've reloaded before posting, but both ways work :D

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...