[support] Best ways to intigrade my blog post on drupal to appear on my home page.
Jamie Holly
hovercrafter at earthlink.net
Mon Jan 13 14:57:01 UTC 2014
You could do as I said earlier, write some custom code to parse your
blog's feed.
Another option would be to create a block in views, bootstrap Drupal
from your home page and render that block. This could lead to some
screwy problems though, especially with URLs (setting $base_url in
settings might fix that). That can also lead to performance issues with
caching and that.
A simpler option would be to create a page in view of your latest posts
and the information you want to appear in the block. Then use jQuery to
load that on your main page, selecting out just the part of the DOM tree
that has the actual list and injecting that into your site.
A better option would be a custom module that generates an html page of
your latest posts and saves it to the files system. Then you could
include that as an iframe on your main page. That would by far be best
performance wise and a lot more stable. It's also not that hard of a
module to write (a function to generate the HTML widget/list called on
hook_node_save()).
Jamie Holly
http://hollyit.net
On 1/13/2014 6:41 AM, Jonathan Candler wrote:
> So you guys are telling me, that I cannot include include function within my PHP scripts to point D.XML file over to my homepage?
>
> Jonnyboy! Iphones rock!
>
> > On 12 Jan 2014, at 1:21 pm, Richard Damon <Richard at Damon-Family.org> wrote:
> >
> >> On 1/12/14, 2:00 PM, Jamie Holly wrote:
> >> I agree 100%. You could parse the feed from your blog and display it on
> >> your home page, but that would probably take about as long as converting
> >> your site to totally be managed by Drupal.
> >>
> >> Jamie Holly
> >> http://hollyit.net
> > You don't even need to convert all of the rest of your site to Drupal.
> > Drupal works fine with pages generated by other tools (as long as they
> > don't need to use index.php) or even static pages.
> >
> > You would need to convert the home page, but other pages might not need
> > to be changed.
> >
> > --
> > Richard Damon
> >
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
More information about the support
mailing list