Answer the question
In order to leave comments, you need to log in
How to export a drupal block to another site?
Good afternoon.
There is a site on drupal 7.26. There are news on it that are added every 2 days.
There is a second one, static, written in html + some jquery. You need to display a banner with drupal on it, in which the name of the latest news on the site would be placed.
Thanks in advance for the answer.
Answer the question
In order to leave comments, you need to log in
As far as I understand, the picture is not needed. You need a headline of the news, or a short text, i.e. so that there is an analogue of the block on that site.
This can be done by generating an RSS news feed and JSONP with a callback.
It's difficult, but possible.
It’s easier to raise php, python on a static site and, making requests to your 1 site, parse and give as convenient for 2
iframe, right?
and here drupal-site.com/latest-news.php output what you need.
Those. you need to generate a banner on a site with Drupal (for example, a picture). And then on a static site, display a link to this script in the img tag:
At the same time, in banner.php you get the latest news, create an empty image there, write text with the headline of the news on the image and display the image.
This is exactly the task you described.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question