MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Jul 04, 2009, 04:53 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Donate to MODx:
Donations
MODx Community Forums
»
Add-ons, Extensions & Elements
»
General Repository Items Support
»
Support/Comments for Pagination Plugin
Pages:
1
[
2
]
Go Down
« Previous topic
Next topic »
Print
Author
Topic: Support/Comments for Pagination Plugin (Read 10918 times)
0 Members and 1 Guest are viewing this topic.
ganeshXL
Testers
Posts: 1,923
true is true
Re: Support/Comments for Pagination Plugin
«
Reply #15 on:
Apr 07, 2007, 03:43 AM »
This doesn't work at all here (modx 0.9.5).
I don't cache my pages, there is no extra <?php stuff there, I even tried using my own delimiter |PAGEBREAK| but to no avail.
No error messages, nada... My delimiters appear as normal text. Weird... o_O
Logged
http://www.screengang.com/
ˇ
http://www.online-marketing-consulting.ch/
ˇ
http://www.dnik.ch/
ˇ
http://www.flickr.com/photos/dnik/
betoranaldi
Full Member
Posts: 206
Re: Support/Comments for Pagination Plugin
«
Reply #16 on:
Apr 09, 2007, 12:00 PM »
could it possibly have to do with the delimiter you are using?
I am using {BREAK} and it is working beautify in 0.9.5
Logged
sirlancelot
Coding Team
Posts: 575
PHP, XML, XSL Supporter
Re: Support/Comments for Pagination Plugin
«
Reply #17 on:
Apr 10, 2007, 05:21 PM »
Quote from: ganeshXL on Apr 07, 2007, 03:43 AM
This doesn't work at all here (modx 0.9.5).
I don't cache my pages, there is no extra <?php stuff there, I even tried using my own delimiter |PAGEBREAK| but to no avail.
No error messages, nada... My delimiters appear as normal text. Weird... o_O
Make sure the correct "System Event" is checked, "OnLoadWebDocument" I believe is what needs to be checked in the plugin.
Logged
Matthew Pietz
on
Twitter
,
Ubuntu
,
Lussumo
.
ganeshXL
Testers
Posts: 1,923
true is true
Re: Support/Comments for Pagination Plugin
«
Reply #18 on:
Apr 11, 2007, 03:06 PM »
Nope, I DID check the event. And the delimiter doesn't really matter... I used the default one, and a custom string.
I added a line to the module for debugging:
echo "<script>alert('pagination module is processed!')</script>";
This is never being called. And the delimiters are still visible as regular text
Logged
http://www.screengang.com/
ˇ
http://www.online-marketing-consulting.ch/
ˇ
http://www.dnik.ch/
ˇ
http://www.flickr.com/photos/dnik/
betoranaldi
Full Member
Posts: 206
Re: Support/Comments for Pagination Plugin
«
Reply #19 on:
Apr 30, 2007, 06:16 PM »
Alright so I have come across a new issue with this plugin. Or it isn't really the plugin so to speak. I am using this to split up long stories on my site. the question is this...
I want to be able to pring the entire story, not just the page. Is there anyway to supply the enire document so that it can be printed?
Thanks
Brian
::edit::
I think I found a solution... now I just need to impliment it... I'm not very good at php but I am going to give it a shot. My thought is this, instead of the plugin "discarding" the other pages, I want all pages to output but the pages that should be be visible should be wrapped around a div with a class of "pagehide" this way I can set the print style sheet to unhide these "pages" when printing.
«
Last Edit: May 01, 2007, 08:13 AM by betoranaldi
»
Logged
betoranaldi
Full Member
Posts: 206
Re: Support/Comments for Pagination Plugin
«
Reply #20 on:
May 01, 2007, 09:25 AM »
I was able to get this plugin to do what I wanted.
I will classify this as a beta since I am not an expert php coder. It appears to be working properly for me.
any questions or comments would be greatly apprecited.
Thanks
Brian
pagenation_with_printing.txt
(2.69 KB - downloaded 219 times.)
Logged
nlcluigi
Jr. Member
Posts: 23
cristiannica.com
Re: Support/Comments for Pagination Plugin
«
Reply #21 on:
Jun 27, 2007, 03:58 AM »
The 2nd version - with pagination do nothing for me:
it put page 1/2/3 for example, but I see the whole content on every page. I'm missing something?
Logged
betoranaldi
Full Member
Posts: 206
Re: Support/Comments for Pagination Plugin
«
Reply #22 on:
Jun 27, 2007, 06:48 AM »
Quote from: nlcluigi on Jun 27, 2007, 03:58 AM
The 2nd version - with pagination do nothing for me:
it put page 1/2/3 for example, but I see the whole content on every page. I'm missing something?
If you are talking about the version I created then you will need to create a style in your css:
.hidepage {display:none;}
the purpose of this is to hide the "other pages" when viewing it on screen but it allows you to create a print style sheet and in this style sheet you can set the hidden fields to be visible. therefore the entire story or article will print but only one page will be visible on screen.
Logged
zee
Jr. Member
Posts: 27
Re: Support/Comments for Pagination Plugin
«
Reply #23 on:
Oct 24, 2007, 07:17 PM »
is it possible to give titles for pagination links or are there any addons for that function like joomla's pagebreak bot.
for ex.
{BREAK=Overview}
{BREAK=Specifications}
{BREAK=Conclusion}
And the link are overview, specifications and conclusions instead of next page or page numbers.
Logged
ZAP
Testers
Posts: 1,579
Re: Support/Comments for Pagination Plugin
«
Reply #24 on:
Nov 01, 2007, 04:28 PM »
Just thought I'd post a slightly different version of this resource in case anyone else finds it useful. I use it as a snippet instead of a plugin (since I only needed to paginate a few documents). Place the snippet call in place of [*content*] in your template to use it this way.
I also added links to each individual page instead of just Previous and Next.
Very minor changes, but maybe someone will use them...
Code:
<?php
$delimiter
=
'{BREAK}'
;
$tplLinkNext
=
' <a href="[+link+]">Next</a>'
;
$tplLinkPrev
=
'<a href="[+link+]">Previous</a> '
;
$tplLinkNav
=
'
<div style="margin:10px auto;width:100%;text-align:center;"><p>Page [+current+] of [+total+]<br />
[+linkprev+] [+pagelinks+] [+linknext+]</p></div>
'
;
$pip_content
=
$modx
->
documentObject
[
'content'
];
$pip_pagecontent
=
explode
(
$delimiter
,
$pip_content
);
$pip_pagecount
=
count
(
$pip_pagecontent
);
if (
$pip_pagecount
>
1
){
$pip_currentpage
= isset(
$_GET
[
"page"
]) ?
$_GET
[
"page"
]:
1
;
if (
$pip_currentpage
>
$pip_pagecount
||
$pip_currentpage
<
1
) {
$pip_currentpage
=
1
; }
$char
= (
$modx
->
config
[
'friendly_urls'
] ==
0
) ?
"&"
:
"?"
;
$url
=
$modx
->
makeurl
(
$modx
->
documentObject
[
"id"
],
''
,
$char
.
'page='
);
$prevpage
=
$pip_currentpage
-
1
;
$nextpage
=
$pip_currentpage
+
1
;
$linkprev
= (
$prevpage
>
0
) ?
str_replace
(
"[+link+]"
,
$url
.
$prevpage
,
$tplLinkPrev
) :
''
;
$linknext
= (
$nextpage
>
$pip_pagecount
) ?
''
:
str_replace
(
"[+link+]"
,
$url
.
$nextpage
,
$tplLinkNext
);
$pagelinks
=
''
;
for(
$i
=
1
;
$i
<=
$pip_pagecount
;
$i
++){
if(
$i
==
$pip_currentpage
)
$pagelinks
.=
' [ '
.
$i
.
' ] '
;
else
$pagelinks
.=
' <a href="'
.
$url
.
$i
.
'">'
.
$i
.
'</a> '
;
}
$pip_template
=
str_replace
(
"[+linkprev+]"
,
$linkprev
,
$tplLinkNav
);
$pip_template
=
str_replace
(
"[+linknext+]"
,
$linknext
,
$pip_template
);
$pip_template
=
str_replace
(
"[+total+]"
,
$pip_pagecount
,
$pip_template
);
$pip_template
=
str_replace
(
"[+current+]"
,
$pip_currentpage
,
$pip_template
);
$pip_template
=
str_replace
(
"[+pagelinks+]"
,
$pagelinks
,
$pip_template
);
$pip_content
=
$pip_template
.
$pip_pagecontent
[
$pip_currentpage
-
1
].
$pip_template
;
}
return
$pip_content
;
?>
Logged
"Things are not what they appear to be; nor are they otherwise." - Buddha
"Well, gee, Buddha - that wasn't very helpful..." - ZAP
Useful MODx links:
documentation
|
wiki
|
forum guidelines
|
bug reports
|
info you should include with your post
|
commercial support options
thehen
Full Member
Posts: 194
Sorry to revive
«
Reply #25 on:
Nov 28, 2007, 04:42 AM »
Sorry to revive this thread, but I have a quick question.
On a lot of sites tha pagination navigation appears at both the top and bottom of the page. Is it possible to create multiple instances of the pagination navigation, or how would I go about modifying it so I would be able to?
Thanks
Logged
My
Web Design Blog
Free Web Templates
Indie Games
ZAP
Testers
Posts: 1,579
Re: Support/Comments for Pagination Plugin
«
Reply #26 on:
Nov 28, 2007, 10:13 AM »
You could just add the navigation snippet twice on the page (and if the snippet calls and page are cached, the code will only be executed the first time the page is loaded anyway). Or you could set a MODx plugin at the end of the snippet and use it as many times as you like on the page. You'd do that with something like:
$modx->setPlaceholder('page_navigation',$pip_content);
and then you can just place the placeholder [+page_navigation+] wherever you like.
Logged
"Things are not what they appear to be; nor are they otherwise." - Buddha
"Well, gee, Buddha - that wasn't very helpful..." - ZAP
Useful MODx links:
documentation
|
wiki
|
forum guidelines
|
bug reports
|
info you should include with your post
|
commercial support options
betoranaldi
Full Member
Posts: 206
Re: Support/Comments for Pagination Plugin
«
Reply #27 on:
Feb 01, 2008, 08:15 AM »
Did this stop working for anyone with the .9.6.1 update? once I updated, now when i click the next page button... the ?page=2 is appended to the url but is just displays the first page content.
---edit
It seems to be a caching issue. did modx change the way it caches items? It seems this was an old problem (looking at the beginning of this thread)
«
Last Edit: Feb 01, 2008, 08:36 AM by betoranaldi
»
Logged
rthrash
Foundation
Posts: 10,471
Re: Support/Comments for Pagination Plugin
«
Reply #28 on:
Feb 01, 2008, 08:35 AM »
Is the page now set to be cacheable and/or (if used from Zap above) the snippet called cached?
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (Revolution Wiki)
|
Fisheye SVN Browser
betoranaldi
Full Member
Posts: 206
Re: Support/Comments for Pagination Plugin
«
Reply #29 on:
Feb 01, 2008, 08:48 AM »
Quote from: rthrash on Feb 01, 2008, 08:35 AM
Is the page now set to be cacheable and/or (if used from Zap above) the snippet called cached?
I'm using the original plugin (50% of my documents have multiple pages.)
I have page caching on by default. I haven't had any problems using this plugin this way until i upgraded to 6.1
If i set it so the page does not cache then the plugin starts to work correctly.
The only thing with this is that its going to be tough going through 200+ documents and changing them all to non-cacheable... nevermind the increased server load.
Rather then downgrading to .9.6 i am going to use the snippet above uncached
«
Last Edit: Feb 01, 2008, 01:00 PM by betoranaldi
»
Logged
Pages:
1
[
2
]
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> Front-end Document Management
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.3
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Webworker Lounge
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
International Support & Translations
-----------------------------
=> Internationalization
=> Bulgarian
===> Поддръжка
=====> Често задавани въпроси
=====> Инсталация
=====> Модули, Плъгини, Снипети и код
=====> Дизайн и Шаблони
===> Документация, Ръководства и Превод
=====> Документация
=====> Ръководства
=====> Превод
===> Общество
=====> Съобщения
=====> Представете се
=====> Представете сайта си
=====> Дискусии извън MODx
=> Chinese
=> Czech
===> Oznámení
=====> Důleitá oznámení/novinky
=====> Bezpečnost
===> Komunita
=====> Oznámení
=====> Představte se, prosím
=====> Ukázky práce
=====> Různé aneb cokoli co se jinam nehodí
===> Podpora
=====> FAQ (často kladené otázky)
=====> Instalace
=====> Moduly, pluginy, "snippets & code" (ablony zdrojových kódů)
=====> Design & ablony
===> Dokumentace, tutoriály (návody) a překlady
=====> Dokumentace
=====> Tutoriály (návody)
=====> Překlady (lokalizace)
=> Dutch
===> Ondersteuning
=====> Veel gestelde vragen
=====> Modules, Plugins, Snippets & Code
=====> Design & Templates
===> Documentatie, Tutorials en Vertalingen
=====> Documentatie
=====> Tutorials
=====> Vertalingen
===> Community
=====> Aankondigingen
=====> Stel jezelf voor
=====> Site Showcase
=====> De stamkroeg
=> Filipino
===> Suporta
=====> Kadalasang tanong
=====> Instalasyon
=====> Moduler, Maidadagdag, Karagdagang mga Code
=====> Desenyo at Templates
===> Dokumentasyon, Mga Turo, Mga Salin
=====> Dokumentasyon
=====> Mga Turo
=====> Mga Salin
===> Kumunidad
=====> Anunsyo
=====> Ipakilala ang sarili
=====> Ang Galing ng pinoy
=====> Tsismisan atbp
=> Finnish
===> Tuki
=====> UKK
=====> Asennus
=====> Moduulit, liitännäiset, koodinpätkät
=====> Ulkoasu/Sivustopohjat
===> Dokumentaatio, oppaat ja käännökset
=====> Dokumentaatio
=====> Käännökset
=====> Oppaat
===> Yhteisö
=====> Tiedotteet
=====> Esittele itsesi
=====> MODx sivustosi
=====> Kahvihuone
=> French
===> Support
=====> FAQ
=====> Installation
=====> Module, plugin, snippets
=====> Design/Templates
===> Documentation, Tutoriels et Traductions
=====> Documentation
=====> Traduction
=====> Tutoriels
===> Communauté
=====> Annonces
=====> Présentez vous
=====> Vos sites
=====> Le Bistrot Français
=> German
===> Support (de)
=====> FAQ (de)
=====> Installation (de)
=====> Module, Plugins, Snippets & Code (de)
=====> Design & Templates (de)
===> Dokumentation, Tutorials und Übersetzung
=====> Dokumentation
=====> Tutorials (de)
=====> Übersetzung
===> Community (de)
=====> Ankündigungen
=====> Stellt Euch vor
=====> Beispielseiten
=====> Off Topic / Verschiedenes
=> Hebrew
===> הכרזה
=====> חדשות חשובות
=====> אבטחה
===> תמיכה
=====> התקנה
=====> תיעוד, מדריכים ותרגומים
=====> עיצוב ותבניות
=====> שאלות נפוצות
===> תיעוד, מדריכים ותרגומים
=====> תיעוד
=====> מדריכים
=====> תרגומים
===> קהילה
=====> הודעות
=====> הצג את עצמך
=====> אתרים לדוגמא
=====> כללי
=> Irish
=> Italian
===> Supporto
=====> FAQ
=====> Installazione
=====> Moduli, Plugin, Snippet e altro codice
=====> Web Design e Template
===> Documentazione, Tutorial e Traduzione
=====> Documentazione
=====> Tutorial
=====> Traduzione
===> Comunitŕ
=====> Annunci
=====> Presentazioni
=====> Siti in vetrina
=====> Chiacchiere in libertŕ
=> Japanese
===> サポート
=====> 良くある質問
=====> インストール
=====> モジュール・プラグイン・スニペット・本体
=====> デザインやテンプレート
===> マニュアル・テュートリアル・翻訳
=====> マニュアル
=====> 事例集、テュートリアル
=====> 日本語化
===> コミュニティ
=====> お知らせ
=====> MODxサイト展示場
=====> 自己紹介
=====> 雑談
=====> 国産リソース
=> Persian - فارسي
===> پشتيباني
=====> راهنما
=====> نصب
=====> ماژول , پلاگین ها , کد ها و جزییات
=====> طراحی و قالب ها
===> مستند سازی , آموزش ها و ترجمه ها
=====> مستند سازی
=====> آموزش ها
=====> ترجمه ها
===> انجمن ها
=====> اخبار
=====> معرفی کردن خود
=====> نمایش دادن سایت ها
=====> بحث های عمومی و سایر موضوعات
=> Polish
===> Wsparcie
=====> FAQ
=====> Instalacja
=====> Moduły, pluginy, snipety i kod
=====> Wygląd i szablony
===> Dokumentacja, tutoriale i tłumaczenie
=====> Dokumentacja
=====> Tutoriale
=====> Tłumaczenie
===> Społeczność
=====> Ogłoszenia
=====> Przedstaw się
=====> Twój serwis WWW
=====> Hyde Park
=> Portuguese
===> Suporte
=====> FAQ - Dúvidas Frequentes
=====> Instalaçăo
=====> Módulos, Plugins, Snippets e Código
=====> Design e Templates
===> Documentaçăo, Guias e Traduçőes
=====> Documentaçăo
=====> Guias
=====> Traduçőes
===> Comunidade
=====> Anúncios
=====> Apresente-se!
=====> Bar da esquina (fora de tópico)
=====> Portfólio de Sites
=> Russian
===> Поддержка
=====> ЧАВО (FAQ)
=====> Установка
=====> Модули, плагины, сниппеты и код
=====> Дизайны и шаблоны
===> Документация, Уроки, Перевод
=====> Документация
=====> Уроки
=====> Перевод
===> Сообщество
=====> Объявления
=====> Представьтесь публике
=====> Галерея сайтов
=====> Диван
=> Scandanavian
===> Support
=====> Frĺgor och svar
=====> Installation
=====> Moduler, plugins, snippets och kod
=====> Design & sidmallar
===> Dokumentation, guider och översättningar
=====> Dokumentation
=====> Guider
=====> Översättningar
===> Webbgemenskap
=====> Meddelanden
=====> Presentera dig själv
=====> Visa upp dina webbsidor
=====> Ordet fritt
=> Slovak
=> Spanish
===> Soporte
=====> FAQ
=====> Instalación
=====> Modulos, Plugins, Snippets & Código
=====> Diseńo y plantillas
===> Documentación, Tutoriales y Traducciones
=====> Documentatción
=====> Tutoriales
=====> Traducciones
===> Comunidad
=====> Anuncios
=====> Presentaciones personales
=====> Muestra de sitios
=====> El Café
=> Swedish
=> TÜRKÇE (Turkish)
===> Destek
=====> SSS
=====> Kurulum
=====> Modüller, Pluginler, Snippetlar & Kodlar
=====> Dizayn & Temalar
===> Belgeleme, Eğitmenler ve Çeviri
=====> Belgeleme
=====> Eğitmenler
=====> Çeviri
===> Topluluk
=====> Duyurular
=====> Kendinizi Tanıtın
=====> Site Vitrini
=====> Konu Dışı