Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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

share|improve this question
    
No it is not possible like you says. But there is a way. –  Nikhil M Dec 14 '12 at 15:53
add comment

3 Answers 3

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.

share|improve this answer
    
the iframe is a good idea however it doesn't show anything. –  huzzle Mar 18 '12 at 9:37
add comment

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.

share|improve this answer
add comment

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

share|improve this answer
    
Just an FYI, the PHP filter is akin to the devil. –  Chapabu Feb 18 '13 at 12:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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