Foren

pagination search-container without table

thumbnail
Arno Broekhof, geändert vor 12 Jahren.

pagination search-container without table

Junior Member Beiträge: 42 Beitrittsdatum: 18.10.11 Neueste Beiträge
i have used the liferay search-container to create pagination, but the search-container creates a table and i don't need tables but i need div's.

my data looks like:

1. name
2. email
3.message

and i wan't it to look like

<div>
   <div>name</div>
   <div>email</div>
   <div>message</div>
</div>

instead of

<table>
  <tbody><tr>
      <td>
         name
         email
         message
     </td>
 </tr>
</tbody></table>


is there a way to achieve this with the search-container or must i implement my own pagination?
thumbnail
Mayur Patel, geändert vor 12 Jahren.

RE: pagination search-container without table

Expert Beiträge: 358 Beitrittsdatum: 17.11.10 Neueste Beiträge
Hi Arno,

For that you need to create search-container hook and you need to replace its table structure with div in jsp under following path,


\docroot\html\taglib\ui\search_iterator\page.jsp


I'm feeling this is not a proper way to replace whole structure this may create other issues,
This implementation may be complex one better to implement your own pagination. Any other ideas on this ???

If you can specify your requirement more clear why do you want this kind of change

Thanks,
Mayur
thumbnail
Arno Broekhof, geändert vor 12 Jahren.

RE: pagination search-container without table (Antwort)

Junior Member Beiträge: 42 Beitrittsdatum: 18.10.11 Neueste Beiträge
A hook for the search container is not the solution, i'm going to create my own implementation of pagination because i don't like to
create more then 1 line code in a table row, but Mayur thanks for you're answer!
thumbnail
Mayur Patel, geändert vor 12 Jahren.

RE: pagination search-container without table

Expert Beiträge: 358 Beitrittsdatum: 17.11.10 Neueste Beiträge
Thanks for the update Arno, you can provide steps in brief if you've already implemented the same, that will be great emoticon
thumbnail
Arno Broekhof, geändert vor 12 Jahren.

RE: pagination search-container without table

Junior Member Beiträge: 42 Beitrittsdatum: 18.10.11 Neueste Beiträge
No problem, i will make a blog post for it
thumbnail
vipin bardia, geändert vor 12 Jahren.

RE: pagination search-container without table

Regular Member Beiträge: 162 Beitrittsdatum: 28.02.11 Neueste Beiträge
Hi,

I have applied this kind of structure with search container with pagination.
Please have a look at this code(see the attachment),
may be this will help you.

Regards,
Vipin Bardia
thumbnail
Arno Broekhof, geändert vor 12 Jahren.

RE: pagination search-container without table

Junior Member Beiträge: 42 Beitrittsdatum: 18.10.11 Neueste Beiträge
Thanks for you're code, i have created it the same way now, but i don't find the html ( that it's using a table ) clear because 1 table row contains multiple lines.