2

Is it possible to create a view from third-party source that includes html, js and css?

Example: http://www.addyosmani.com/resources/shinetime/

I want to create a view of the example shown in the link and display it as a block on my site. Is there an automated process for doing this or I would have to do it manually? If manually then how? Thank you

1
  • No it is not possible like you says. But there is a way.
    – niksmac
    Dec 14, 2012 at 15:53

3 Answers 3

0

If all you want to do is display that in/on your website, include it in an iframe, eg, create a block that just has:

<iframe src="http://www.addyosmani.com/resources/shinetime/"></iframe>

in it.

Now, if you are wanting to create a View, eg http://drupal.org/project/views, then you need to give some more specifics of what you are wanting to do.

1
  • the iframe is a good idea however it doesn't show anything.
    – huzzle
    Mar 18, 2012 at 9:37
0

If i didn't get you wrong, you want to have this kind of block with your fields with the help of views. There are no automated process for this.

You got to copy or download the source of this stuff (the markup, js, css). In my humble opinion the easiest way to do this with views is just having your needed fields (title, images) and then overriding the html output of these fields to fit your css and js selectors. Also you can set classes and markup in the format and fields settings in the view created.

There is also different method: hide all of your fields and leave the lowest one. Check to override the output of it and put the markup you need, replacing titles and images, description and other with your fields which would be listed below in the patterns examples.

-2

In my opinion, you can create a basic page and code the PHP + HTML code. (You must enable PHP filter in module page)

For the php code, you create a SQL statement to get the data that you want, for example, db_query in Drupal

1
  • Just an FYI, the PHP filter is akin to the devil.
    – Chapabu
    Feb 18, 2013 at 12:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.