Publish with relations and pagination

Pagination with session variable