Ok, perhaps I'll give the trunk code a try. Is it a drop-in replacement
for the release, with the same database tables and configuration properties?
Thanks,
- Dennis
On 03/27/2014 01:54 PM, Glen Mazza wrote:
Hi Dennis, in your case, I'd recommend working with Roller trunk, as
it's just much smaller and more pleasant to work with, and potential
patches and other problems are considerably more likely to get fixed
there. If you look at the many servlets defined in Roller's web.xml,
regardless of Roller version, maybe the code for UserDataServlet and
PlanetFeedServlet can give you an idea of the type of coding
(non-velocity) needed to return a desired response. Doing a code
search on "velocity" in Roller's servlets package (in trunk, the
package is org.apache.roller.weblogger.ui.rendering.servlets, perhaps
the same on the 5.0.x branch) can give you servlets more specific to
what you're trying to do.
Glen
On 03/26/2014 08:05 PM, Dennis Sosnoski wrote:
Thanks for the suggestions, Glen, but I am trying to keep the site
front page plain HTML (partially because I don't monitor all the
time, and if Roller crashes - not that it ever would, of course, but
anyway :-) - I'd prefer to have the front page stay up). If I just
want to create a URL where I can access the feed as the output from a
Velocity snippet, how could I add that to Roller? I see I can just
add a JSP directly in the root directory, but it's not clear to me
how I can attach that to a Velocity snippet inside Roller to give me
back the list of posts.
- Dennis
On 03/27/2014 11:50 AM, Glen Mazza wrote:
Oops, misunderstood your request. You can access the underlying
database directly, or rely on either the RSS or Atom feeds with a
mixture of CSS -- a google is showing there's several websites
around on mixing CSS & RSS/Atom. There are also Meta Weblog and
Blogger APIs meant for interfacing with desktop client blogging
tools that you might also be able to pull data out with -- look for
the "EditURI" link in the HTML header when viewing the HTML source
of your blog.
Alternatively, make the front page of your site Roller by creating
another quasi-blog using the built-in "front page" theme that you
can modify to your heart's content-- by default, it looks similar to
this: http://www.jroller.com/) or activate the "Planet" feature for
your blog, I haven't used the latter though and it may have some
problems with it, I don't know. Twitter is another option -- if you
tweet your articles you can embed a Twitter gadget into your static
page.
HTH,
Glen
On 03/26/2014 05:00 PM, Dennis Sosnoski wrote:
Thanks for getting back to me, Glen. I'd already looked at that
post, though.
My situation is that the front page of my site is not Roller and
(at least currently) not even dynamic. I was hoping that Roller
would define an endpoint I could access to get back an HTML list of
recent post titles, so that I could just use that as the source for
an iframe. I'd prefer to get the list back in reasonable form for
presentation on the client using CSS (otherwise I suppose I could
just use the Atom feed). If there isn't any direct source for this
now, I suppose I could add a special page to my template to
generate what I want using the Velocity snippet, and use that
special page as the source for the iframe. Is that the best way to
get what I want?
It's not clear offhand how I'd add such a special page to my Roller
configuration without stepping on anything, so if that is the best
way to do things I'd appreciate any pointers.
Regards,
- Dennis
On 03/26/2014 11:47 PM, Glen Mazza wrote:
Hi Dennis, sure, look at Item #8 here:
http://www.jroller.com/gmazza/entry/apache_roller_blogging for a
Velocity macro you can place into your Roller template:
http://www.jroller.com/gmazza/entry/apache_roller_blogging. What
it looks like you can see on the right-side of my blog.
Regards,
Glen
On 03/25/2014 11:31 PM, Dennis Sosnoski wrote:
Hi, Rollers :-)
I've set up a new Roller blog within my site, and I'd like to
embed a list of the recent post titles with links in the main
page (plain HTML, not Roller). Is there a simple way I can get
this info from Roller in a form where I can just embed it in the
page? I'm thinking an HTML iframe, or something of the sort.
Thanks,
- Dennis