Design + Coding > Remove Entries from 20/page Pagination Limit / JQuery?
Ah, I think I see what you are tying to do.
Would it work out for you to reverse the logic and make a separate new _text journal module (rather than category) and "include" the entries from that _text journal onto the other journals?
The jQuery 'include' function could pluck entries from any journal and plant them nearly anywhere else. And you wouldn't be messing with the count by beheading one. Would a 'blog for blurbs' suit the need?
Downsides...
You could vanish it from site nav but the search bots will turn it up. Make it a presentable page, or redirect away from it.
That might be a possibility -- the only problem I forsee with it is that the _Text categorized entries in the journal also serve another purpose. Some of the categories will have 'related success stories' entries that will be visible, but some categories will not. The entries that are categorized as _Text keep the categories visible / listed in the sidebar even if there are no success stories labeled for it since the text based entry counts as being in that category. If I move all the text entries into a separate journal, then many of the categories will not show up in the sidebar navigation (journal archive widget) -- they will only show up if they have success story entries included.
still looking ...
It would be really great to be able to override the journal entry limit set in Squarespace - or have JQuery remove entries as needed, BEFORE they get counted for pagination. hmmm ....
But maybe there is a way to hide all the entries on the front page of the journal and also hide any pagination controls that come up, then use rss or jQuery include to show all the entries that are not categorized as _Text. ...
OK - so here's what I ended up doing:
-- i removed the .list-journal-entry-wrapper & .paginationControWrapper from the journal overview page.
-- then i used FeedBurner to re-insert the entries I want visible using the 'Success Stories' category rss feed.
Now only the entries I want to show up are visible, and there are no built-in pagination conflicts. -- the downside is that now I have no pagination at all and can only show up to 15 entries.
Sorry, 'include' was a poor choice of words (repeated several times even) 'load' is the function built into jQuery. The include plug is potent though too.
http://docs.jquery.com/Ajax/load
I don't have much exposure to category filtering yet, but here is an example of load-ing other content bits via jQuery. Sounds like you may have an investment in your architecture past the point of incorporating this. But may come in handy someday.
Page Code to grab an external item to be loaded...
<script type="text/javascript">
$(document).ready(function(){
$("#Bob_Smith").load("/our-people/bob-smith.html #itemXXXXX .body p");
});
</script>
Then elsewhere on the page a div where you want the imported content to appear.
<div id="Bob_Smith">content in case the script fails</div>
Thanks for that tasty morsel Corey!! i will definitely be using that often in the future!!! bits like this really come in handy when stretching the SQ framework to do things it normally wouldnt be used for!!



Does anyone know if there any way to override the 20 entry per page limit for a Squarespace journal overview page? -- or to actually use JQuery to remove certain journal entries (target a category) BEFORE they are counted for SQ pagination?
Here is my situation:
on this page: http://www.instarservices.com/multi-family I have categorized some journal entries as '_text' and removed these entries from the page using JQuery, which leaves only the journal entries i want to show up (sort of like a little case studies gallery). But Squarespace is still counting all these removed _text entries as part of the 20 per page, so the entries I DO want to show up are only coming up paginated, and not on the first page. Make sense?
Basically I need to override the 20 per page limit, or find a way for jQuery to remove these entries before they are counted for Squarespace pagination. I am only having this problem on the front / overview page of the journal. If you click on 'Building Security' in the center column list you can see an example of how I want it to look.
Any SQ / JQuery gurus out there with tips?