Quote from: Mark at Dec 06, 2005, 09:39 PM
Ummmm. Briggsys thats your own html surrounding the placeholders.
This works flawlessly for me (with no #pages div anymore):
I don’t have a place holder called #pages and never have had, so its coming from somewhere else.
I just tried to cut and past the snippet again to see if it went wrong in the copy n paste, and now I remember. The snippet started with <? and that gave a PHP Parser error. I thought I hadn’t pasted it correctly so I deleted the <? the first time and it worked fine, but has the #pages reference.
Just downloaded the snippet again and noticed the <? was in there on the first line, which gives me an error saying unexpected <
If I remove it again, it works, but still with that #pages reference
The page sits in a container called "content" as per below
<div id="content">
[*content*]
<quickedit:content />
</div>
When the news page is loaded it calls the code
[!NewsListing? &startID=`11` &summarize=`4` &sortby=`pub_date &paginate=`1` &tpl=`NewsSummary` &pubOnly=`true`!]
Displaying articles [+start+] - [+stop+] ([+total+] total)
[+previous+] [+pages+] [+next+]
I use the following chunk style the summary
<div class="NewsSummary">
<span class="left">
<a href="[~[+id+]~]">[+title+]</a>
</span>
<span class="right">
[+date+]
</span>
</div>
<br />
<p>
[+summary+]
</p>
<p>
[+link+]
</p>
<br />
And lastly the CSS, which has the reference to "pages" otherwise it doesn’t work
/* */
/*NEWS LISTING*/
/* */
.NewsSummary span.left {
margin: 0;
border-left: 0.5em #FFFF99 solid;
border-bottom: 0.2em #b1d5ed solid;
padding-left: 0.5em;
padding-bottom: 0.2em;
float: left;
text-align: left;
width:72.56%; /*2.44% is used up by padding etc. Spans can't overlap*/
font-weight: bold;
}
.NewsSummary span.right {
margin: 0;
border-bottom: 0.2em #b1d5ed solid;
padding-bottom: 0.2em;
float: right;
text-align: right;
width: 25%;
font-size: 1.0em;
font-weight: normal;
}
#pages a{
padding:0 5px 0 5px;
}
#nl_currentpage{
font-weight: bold;
As you see, I have no user DIV referring to #pages, so wonder why <? cause’s an error, and when removed it brings back #pages reference.