Welcome, Guest. Please login or register.
Did you miss your activation email?
13 Mar 2010, 11:12

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: Plugin PAGINATION (TEST)  (Read 14155 times)
0 Members and 2 Guests are viewing this topic.
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 139
Offline Offline

Posts: 4687

Location: Ferrara, Italy


My kids


« on: 25 Sep 2007, 16:31 »

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:



Quote
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 <head> and </head>) or in metadata option of that page:

{literal}
<script type="text/javascript" src="module_custom/virtualpaginate.js">
/***********************************************
* 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
***********************************************/
</script>

<style type="text/css">
/*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;
}
</style>
{/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

* pagination.mpg (7.1 KB - downloaded 837 times.)
* pagination.mpg (7.1 KB - downloaded 549 times.)
« Last Edit: 15 Jan 2008, 05:45 by alby » Logged

yule
Peanut Gallery


Karma: 0
Offline Offline

Posts: 5


« Reply #1 on: 26 Sep 2007, 17:25 »

interessante! lo provo subito! Wink
Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 139
Offline Offline

Posts: 4687

Location: Ferrara, Italy


My kids


« Reply #2 on: 08 Oct 2007, 13:14 »

interessante! lo provo subito! Wink

Nessun report?
Eppure lo ritengo interessante per chi pubblica spaginate di testo ....


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

Alby
« Last Edit: 20 Oct 2007, 03:15 by alby » Logged

heimat
Peanut Gallery


Karma: 0
Offline Offline

Posts: 3


« Reply #3 on: 16 Jan 2008, 05:08 »

Funziona benissimo, al primo colpo!

Grazie Alby
Logged
Kuuke
Forum Members
**

Karma: 0
Offline Offline

Posts: 10


« Reply #4 on: 27 Jan 2008, 18:37 »

Splendid !! Works like a charme Smiley
Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 139
Offline Offline

Posts: 4687

Location: Ferrara, Italy


My kids


« Reply #5 on: 28 Jan 2008, 14:35 »

Splendid !! Works like a charme Smiley

 Grin
Logged

lordanthony
Peanut Gallery


Karma: 0
Offline Offline

Posts: 3


« Reply #6 on: 30 Jan 2008, 17:39 »

Brilliant - works perfectly for me.
Thanks very much for your excellent contribution.
Logged
requish
Forum Members
**

Karma: 0
Offline Offline

Posts: 49


« Reply #7 on: 12 Feb 2009, 04:27 »

Its working nice for text in content. Smiley

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 Edit: 16 Feb 2009, 14:56 by requish » Logged
alby
Member Support Team
Moderator
Power Poster
*****

Karma: 139
Offline Offline

Posts: 4687

Location: Ferrara, Italy


My kids


« Reply #8 on: 06 Mar 2009, 16:38 »

Its working nice for text in content. Smiley

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


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
Logged

requish
Forum Members
**

Karma: 0
Offline Offline

Posts: 49


« Reply #9 on: 07 Mar 2009, 05:12 »

thank you Smiley
Logged
Pages: [1]
Print
Jump to: