Thanks, Jan.

I did it like this:

- Built a model like the
info.magnolia.module.templatingkit.search.SearchResultModel with all
the pagination info

- .. which is used in the
/templating-kit/paragraphs/macros/pagination.ftl which i include in my
own article template

- .. which i built using the stk templates which are used rendering an
article. Where the content is rendered using contentNodeIterator, i
pass "begin = model.currentPage" (which is the passed page parameter)
and end=0 (end is not the end index, but after how many contents
iteration stops, docu is misleading btw)

Looks like this:
----------------------------------------------8<-----------------------------------------------
        [#assign current=model.currentPage-1/]
        [#if mgnl.editMode]
                [[email protected] contentNodeCollectionName="main"]
                    [[email protected] /]
                [/@cms.contentNodeIterator]
        [#else]
                [[email protected] begin=current end=0
contentNodeCollectionName="main"]
                    [[email protected] /]
                [/@cms.contentNodeIterator]
        [/#if]
---------------------------------------------->8-----------------------------------------------
- copied the stkArticle template def in adminCentral and changed the
modelClass to my model and my template

Hope that helps the next one stumbling upon this issue.

/Anton

On Thu, May 27, 2010 at 4:33 PM, Jan Haderka
<[email protected]> wrote:
>
>
> On May 27, 2010, at 4:02 PM, Anton Matheis wrote:
>
>>
>> Hi Richard,
>>
>> thanks for your reply! I also thought about using something like the
>> paged teaser for articles, but we just had a meeting where we
>> unfortunately found out that it will not be feasible to do it that way
>> (too much content in one page). So that is out =(
>>
>> Thought there might be some hidden dialog configuration i have not
>> seen yet, but it doesn't seem like it.
>
> You wish :) There is no such hidden dialog.
> Still it should not be so difficult. Use custom model for the page to give it 
> the collection of paragraphs and use selectors to specify which "subpage" you 
> want.
>
> Jan
>
>>
>> Greetings,
>> Anton
>>
>> On Thu, May 27, 2010 at 3:21 PM, Unger, Richard <[email protected]> 
>> wrote:
>>>
>>> Hi!
>>>
>>> As a quick solution, these days I would implement that on the client-side. 
>>> Have magnolia deliver one page with all the content, packed in DIVs behind 
>>> each other. Use JavaScript to allow the user to switch between the DIVs.
>>>
>>> Regards from Vienna,
>>>
>>> Richard
>>> ________________________________________
>>> Von: [email protected] [[email protected]] im 
>>> Auftrag von Anton Matheis [[email protected]]
>>> Gesendet: Donnerstag, 27. Mai 2010 13:34
>>> An: [email protected]
>>> Betreff: [magnolia-user]  Paging Articles
>>>
>>> Hi all,
>>>
>>> is there any straight forward way to have larger articles paged? Like
>>> in the search where you don't have all hits displayed on one page but
>>> in multiple result pages which can be stepped through by clicking
>>> "next" or "previous" or a page number?
>>>
>>> Thanks,
>>> Anton
>>>
>>> ----------------------------------------------------------------
>>> For list details see
>>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>>> To unsubscribe, E-mail to: <[email protected]>
>>> ----------------------------------------------------------------
>>>
>>>
>>>
>>>
>>> ----------------------------------------------------------------
>>> For list details see
>>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>>> To unsubscribe, E-mail to: <[email protected]>
>>> ----------------------------------------------------------------
>>>
>>>
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>
> -
> Best regards,
>
> Jan Haderka, PhD.
> Magnolia International Ltd.
>
> http://www.magnolia-cms.com
> http://twitter.com/magnolia_cms
>
> You should join us on Facebook:
> http://facebook.com/Magnolia
>
> --------------------------------------
>
> Magnolia®  - Simple Open-Source Content Management
>
>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to