V
V
vkrzt2014-02-19 19:04:55
PHP
vkrzt, 2014-02-19 19:04:55

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

4 answer(s)
P
Push Pull, 2014-02-19
@deadbyelpy

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

X
xaja, 2014-02-20
@xaja

iframe, right?
and here drupal-site.com/latest-news.php output what you need.

K
Kirill Arutyunov, 2014-02-19
@arutyunov

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.

U
UksusoFF, 2014-03-19
@UksusoFF

Web Widgets, a bit crooked, but it works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question