<![CDATA[ Articles & Paging HTML - My Forums]]> https://forums.modx.com/thread/?thread=74796 <![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-547168
At the end of the articles list on the container page, I get an incomprehensible list of page numbers with no header:


I have lots of pages so I'd like to eliminate everything but the next and previous page links (which I currently don't have).

I thought the code that produces this was the getPostListingCall() method in the ArticlesContainer class, but when I have it return '' at the top, I still get the display above (even after manually clearing the cache).

Any help appreciated.

]]>
BobRay Dec 10, 2016, 10:06 PM https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-547168
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-489488 jamiecottrell Feb 08, 2014, 05:58 AM https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-489488 <![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-489479
for example
<ul>
[[!+page.nav]]
</ul>

or
<div>
[[!+page.nav]]
</div>

So you do not have to change the articles code which will be overwritten when an update occurs.
]]>
patzek Feb 08, 2014, 04:06 AM https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-489479
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-489282
I got around this by simply placing this in the content section for the blog...

<ul>[[+paging]]</ul>]]>
jamiecottrell Feb 06, 2014, 07:32 AM https://forums.modx.com/thread/74796/articles-paging-html?page=3#dis-post-489282
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-489228 Quote from: TheBoxer at Apr 07, 2013, 09:59 AM
You 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?

]]>
valokammi Feb 05, 2014, 03:07 PM https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-489228
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-487083 http://rtfm.modx.com/extras/revo/getpage#getPage-PageNavigationTemplateProperties

you can't change it (see 'Page Navigation Template Properties')]]>
tomvanminnebruggen Jan 11, 2014, 03:50 PM https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-487083
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-462004
[[!+page.nav:notempty=`<div>[[!+page.nav]]</div>`]]

And no UL anymore.]]>
TheBoxer Apr 07, 2013, 04:59 AM https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-462004
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-448165
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.]]>
absent42 Dec 24, 2012, 12:39 PM https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-448165
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-435545 Quote from: harveyev at Sep 01, 2012, 06:28 PM
Sotwell ftw! Lifesaver. Now why would anyone hardcode styles like that? Wasted a good hour...
ONLY AN HOUR!!! YOU LUCKY S.____ smiley]]>
greyskymedia Sep 01, 2012, 03:55 PM https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-435545
<![CDATA[Re: Articles & Paging HTML]]> https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-435535 sottwell Sep 01, 2012, 01:40 PM https://forums.modx.com/thread/74796/articles-paging-html?page=2#dis-post-435535