-
- 128 Posts
Does anyone happen to know where [+paging] is built?
I LOVE MODX! | greyskymedia.com
core/components/articles/model/articles/articlescontainer.class.php, line 337.
-
- 128 Posts
line 348 is it!!!! YAY!!!! +1 for Ms. Ottwell!
I LOVE MODX! | greyskymedia.com
-
- 255 Posts
Sotwell ftw! Lifesaver. Now why would anyone hardcode styles like that? Wasted a good hour...
Indeed, Articles is a bit... inflexible.
-
- 128 Posts
Quote from: harveyev at Sep 01, 2012, 06:28 PMSotwell ftw! Lifesaver. Now why would anyone hardcode styles like that? Wasted a good hour...
ONLY AN HOUR!!! YOU LUCKY S.____
I LOVE MODX! | greyskymedia.com
-
- 436 Posts
I've just had this exact same problem. My pagination doesn't use a UL list and not having the pageNavOuterTpl in Articles means I had to alter the hardcoding to format it properly.
This really needs to be put in the list for the next update. Having to re-alter the php file if there's an articles update is rather awkward.
-
- 118 Posts
Quote from: TheBoxer at Apr 07, 2013, 09:59 AMYou can use Page Nav Var variable for placeholder in container template, just replace [[+paging]] with
[[!+page.nav:notempty=`<div>[[!+page.nav]]</div>`]]
And no UL anymore.
That is just what needed.
BUT where I define a class for example default Page Active Tpl is:
<li[[+activeClasses]]><a[[+activeClasses:default=` class="active"`]][[+title]] href="[[+href]]">[[+pageNo]]</a></li>
Or do I have to define that in the tpl?
Tassu, webmaster of Valokammi