Plugin PAGINATION (TEST)

Sezione per discutere di Moduli/Plugin sviluppati dalla comunità italiana
Locked
alby

Plugin PAGINATION (TEST)

Post by alby »

Da una idea di questo topic.
Utile per pagination di qualsiasi content. In pratica suddivide un pagina molto lunga in più parti (numero ed punto di interruzione definite da voi) con i link per la navigazione. Vedere qui per informazioni ed esempi
Sostituire il file allegato da .mpg a .zip
Seguire le indicazioni del file README.txt:


From a idea of this topic.
Useful for CONTENT pagination. Divide your long content in multi part (numbers and break points that you want) with navigation link. See this for info and examples.
Substitute the attach file from .mpg to .zip
From README.txt file:


1. Put file function.pagination.php in [cms_root]/plugins/


2. Put file block.page.php in [cms_root]/lib/smarty/plugins/


3. Put file virtualpaginate.js (in example: module_custom, change src in script tag if other) in [cms_root]/module_custom/


4. Add this code in your page template (between and ) or in metadata option of that page:

{literal}

/***********************************************
* Virtual Pagination script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/



/*CSS used for the Virtual Pagination. MODIFY as desired*/

.virtualpage{ /*hide the broken up pieces of contents until script is called. Remove if desired*/
display:none;
}
.paginationstyle{ /*Style for demo pagination divs*/
width:250px; text-align:center; padding:2px 0; margin:9px 0;
}
.paginationstyle select{ /*Style for demo pagination divs' select menu*/
border:1px solid navy; margin:0 15px;
}
.paginationstyle a{ /*Pagination links style*/
padding:0 5px; text-decoration:none; border:1px solid black; color:navy; background-color:white;
}
.paginationstyle a:hover, .paginationstyle a.selected{ color:#000; background-color:#FEE496; }
.paginationstyle a.imglinks{ /*Pagination Image links style (class="imglinks") */
border:0; padding:0;
}
.paginationstyle a.imglinks img{ vertical-align:bottom; border:0; }
.paginationstyle a.imglinks a:hover{ background:none; }
.paginationstyle .flatview a:hover, .paginationstyle .flatview a.selected{ /*Pagination div "flatview" links style*/
color:#000; background-color:yellow;
}

{/literal}


5. Insert block page tags {page}{/page} in your content textarea:
{page} 1 piece of content {/page}
{page} 2 piece of content {/page}
{page} 3 piece of content {/page}


6. Add AFTER all pieces the following tag: {pagination}
Alby
Attachments

[The extension mpg has been deactivated and can no longer be displayed.]

[The extension mpg has been deactivated and can no longer be displayed.]

Last edited by alby on Tue Jan 15, 2008 10:45 am, edited 1 time in total.
yule
New Member
New Member
Posts: 5
Joined: Mon Sep 24, 2007 1:33 pm

Re: Plugin PAGINATION (TEST)

Post by yule »

interessante! lo provo subito! ;)
alby

Re: Plugin PAGINATION (TEST)

Post by alby »

yule wrote: interessante! lo provo subito! ;)
Nessun report?
Eppure lo ritengo interessante per chi pubblica spaginate di testo ....


Nothing?
Strange, it's important for publish LONG pages ....

Alby
Last edited by alby on Sat Oct 20, 2007 7:15 am, edited 1 time in total.
heimat
New Member
New Member
Posts: 3
Joined: Tue Feb 06, 2007 1:55 pm

Re: Plugin PAGINATION (TEST)

Post by heimat »

Funziona benissimo, al primo colpo!

Grazie Alby
Kuuke
Forum Members
Forum Members
Posts: 10
Joined: Sun Oct 29, 2006 10:56 am

Re: Plugin PAGINATION (TEST)

Post by Kuuke »

Splendid !! Works like a charme :)
alby

Re: Plugin PAGINATION (TEST)

Post by alby »

Kuuke wrote: Splendid !! Works like a charme :)
;D
lordanthony
New Member
New Member
Posts: 4
Joined: Tue Jan 15, 2008 12:01 pm

Re: Plugin PAGINATION (TEST)

Post by lordanthony »

Brilliant - works perfectly for me.
Thanks very much for your excellent contribution.
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: Plugin PAGINATION (TEST)

Post by requish »

Its working nice for text in content. :)

BUT. How to install the pagination in ALBUM module? Ex. in template of module adding loop when if pictures = 10, then adding pagination...

Please help


OR

How to kick section Page 1/4 to TOP of content?
Last edited by requish on Mon Feb 16, 2009 7:56 pm, edited 1 time in total.
CMS Made Simple! Best CMS! :)
alby

Re: Plugin PAGINATION (TEST)

Post by alby »

requish wrote: Its working nice for text in content. :)

BUT. How to install the pagination in ALBUM module? Ex. in template of module adding loop when if pictures = 10, then adding pagination...
No, this is for pagination of content text only (content, global content, news content, ...) and not for logic

requish wrote: How to kick section Page 1/4 to TOP of content?
UNTESTED but try with (use {page} tag only in content):

{content assign="mycontent"}
{pagination}
{$mycontent}

Alby
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

Re: Plugin PAGINATION (TEST)

Post by requish »

thank you :)
CMS Made Simple! Best CMS! :)
leonoid
New Member
New Member
Posts: 6
Joined: Wed Jan 26, 2011 2:07 pm

Re: Plugin PAGINATION (TEST)

Post by leonoid »

How to download Attachments? The extension mpg has been deactivated and can no longer be displayed (
Marijus

Re: Plugin PAGINATION (TEST)

Post by Marijus »

Pagination files
pagination.zip
(7.1 KiB) Downloaded 747 times
Locked

Return to “Moduli/Plugins”