Integrated with the text type fields of CCK.
karlosgliberal - June 12, 2009 - 12:05
| Project: | Pagination (Node) |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello. First congratulate you for this module is very useful.
An interesting feature to this module would be integrated with the text type fields of CCK.
We are doing tests and it would have been easy to do, this is a small example
<?php
// $pg->paginate($node->content['body']['#value'], $paging);
// $node->content['body']['#value'] = $pg->getPage($page);
$texto_ventajas = $node->content['field_producto_ventajas']['field']['items'][0]['#item']['value'];
$pg->paginate($texto_ventajas, $paging);
$node->content['field_producto_ventajas']['field']['items'][0]['#item']['safe']= $pg->getPage($page);
$node->content['field_producto_ventajas']['field']['items'][0]['#item']['value']= $pg->getPage($page);
?>If you are interested we could do ourselves this functionality included in the settings and send a patch (use the drupal contact)
Thanks for your work ;)

#1
Hello,
Thanks for your efforts, could you clarify a bit more what you're trying to accomplish? Are you looking to throw the pagination into it's own CCK text field? Or is it more along the lines of allowing an arbitrary CCK text field to be paginated? I'd definitely be interested in looking at any code you have either way!
#2
Thank you for your work.
Forgive my English, it's just a little;)
We launched the proposal because we usually remove the body of our ccks as good practice, as Victor Kane says in his book leavering drupal http://awebfactory.com.ar
Could be done in many ways. what we offer in the post above is: allowing an arbitrary CCK text field to be paginated.
In the example code we have done with the "field_producto_ventajas.
Another possibility is to add a widget to the field of type text with properties paginated, but we believe this option a little more complex.
Gracias por todo un saludo
#3
Hi there,
I think this does belong more on the CCK side (ie, a paginated CCK text field). It's definitely an interesting idea, I'll put some effort into it next time I get a chunk of free time. If you do manage to come up with some code in that are before hand please do let me know!