Hi all. so, I have a website that I’ve setup for my radio station which you can go to with http://kjscradio.com, anyways, under that domain I have a directory which apache serves up my blog. so, http://kjscradio.com/blog. The thing what I would like to know is what would be a way that I could implement a way so that the posts that I do from drupal would appear on my home page? I was trying to find a way of how to do it, but I’m not sure of what I would do. would I have to do the include function in .php and include the .xml file in my code that I rote on my site, or would I have to do something different. If anyone one can help with this, I would be very grateful. thanks all and have a good day.
On 1/12/14, 6:28 AM, jonathan candler wrote:
Hi all. so, I have a website that I’ve setup for my radio station which you can go to with http://kjscradio.com, anyways, under that domain I have a directory which apache serves up my blog. so, http://kjscradio.com/blog. The thing what I would like to know is what would be a way that I could implement a way so that the posts that I do from drupal would appear on my home page? I was trying to find a way of how to do it, but I’m not sure of what I would do. would I have to do the include function in .php and include the .xml file in my code that I rote on my site, or would I have to do something different. If anyone one can help with this, I would be very grateful. thanks all and have a good day.
The first option that comes to me is to change you setup so Drupal runs from the home page, and use it to place what you want on your home page.
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
On 1/12/2014 1:48 PM, Richard Damon wrote:
On 1/12/14, 6:28 AM, jonathan candler wrote:
Hi all. so, I have a website that I’ve setup for my radio station which you can go to with http://kjscradio.com, anyways, under that domain I have a directory which apache serves up my blog. so, http://kjscradio.com/blog. The thing what I would like to know is what would be a way that I could implement a way so that the posts that I do from drupal would appear on my home page? I was trying to find a way of how to do it, but I’m not sure of what I would do. would I have to do the include function in .php and include the .xml file in my code that I rote on my site, or would I have to do something different. If anyone one can help with this, I would be very grateful. thanks all and have a good day.
The first option that comes to me is to change you setup so Drupal runs from the home page, and use it to place what you want on your home page.
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.
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@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/ ]
On 1/13/14, 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!
It isn't that you can't, but that it may be easier to let Drupal do the functioning. I suppose another option would be to add an iframe to you home page making a reference to a Drupal page with the content you want (like a special page removing the sidebars/headers/footers/etc that you don't want in the iframe).
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@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/ ]