Hi,
1. A new equivalent of aposAreaPlaintext is forthcoming. We need it
too, of course.
2. Pagination is built into the module for sure. Anything that
subclasses apostrophe-pieces-pages gets pagination "for free."
However I see that the pager is missing from the default index.html,
which is confusing for sure! I just published an update that includes
the pager in index.html. You'll be overriding it but it clearly ought
to demonstrate this feature.
3. As for displaying tags, you have access to them as the .tags array
on individual blog posts. In addition, consider this code from the
index.js of one of our project-level uses of the blog module:
module.exports = {
construct: function(self, options) {
var superBeforeIndex = self.beforeIndex;
self.beforeIndex = function(req, callback) {
return superBeforeIndex(req, function(err) {
if (err) {
return callback(err);
}
// use async.series, in case we get more stuff later
return async.series([
// get all tags
function(callback) {
self.pieces.find(req, {}).toDistinct('tags', function(err, tags) {
if (err) {
return callback(err);
}
req.data.allTags = tags || [];
return callback(null);
});
}
], function(callback);
});
};
}
};
Now you can use data.allTags in your template.
See also:
http://apostrophenow.org/tutorials/intermediate/cursors.html
> --
> You received this message because you are subscribed to the Google Groups
> "apostrophenow" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
apostropheno...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
THOMAS BOUTELL, SUPPORT LEAD
P'UNK AVENUE |
(215) 755-1330 |
punkave.com