By edgarpe on
Hi Drupalers!
I would like to create a very awsome pager plugin for Views 3 (D7), but to achieve this somehow I have to separate in the view output that part that belongs to actual rows and anything else before and after the rows.
I load the view and get the output like this (copy-paste from views_embed_view() function):
$view = views_get_view($view_name);
if (!$view || !$view->access($display_id)) {
return;
}
$output = $view->preview($display_id, $args);
If the view is a HTML list than I need to separate all the
<li>...</li>
<li>...</li>
part, but not the <ul> part.
If its a HTML Table, than I need the
<tr>...</tr>
<tr>...</tr>
part, but not the <table> <thead> part.
How can I render the view programatically to get only the html of the rows?
Any help is appreciated.