Is there a Drupal module for importing text and images? - drupal

I'm very new to Drupal, and am wondering if there's an API that external programs can call to transfer text and images directly into my Drupal site.

Yes. There are several ways to accomplish this in Drupal:
If you're doing a one-time import, try the Node Import module --- this lets you import content from a CSV file.
If you want your Drupal site to provide a web-based API to which new content can be POSTed (via, for example, XMLRPC), check out the Services module.
If you want your Drupal site to periodically retrieve content from other sites (RSS feeds, for example), check out FeedAPI.
If you want to write your own PHP code to create new content, check out this article for an introduction.

Not sure what you mean by having a module for importing text, but there is one specifically for images: the Image module. Here is an excerpt from its project page:
... allows users with proper permissions to upload images into Drupal. Thumbnails and additional sizes are created automatically.
Images could be posted individually to the front page, included in stories or grouped in galleries.
Importing text can be performed directly as one of the other existing entity types.

Related

Can we grab all youtube videos from drupal7 node contents?

Can anyone give me hint how can I grab all youtube videos from drupal7 node contents?
Actually I want to grab all youtube videos from node contents then that link I want to save in spreadsheet.
Create a view (and select your specific content type that has the Youtube videos embedded into it). If you are not using views module already, install Views module first so that you can create a view.
After that use either Views Excel Export module OR Views Data Export module to export the node bodies to excel sheets.
Note: This approach will give you entire content of the node bodies (not just the iframe code of the video) into the excel sheets. However, you can easily find the iframe codes within those excel sheets with simple ctrl+f.

drupal google doc type module

I am looking to create a Google Doc type environment in Drupal. The ability for registered users of a website to add a new document, add rows that correspond with columns, and be able to add color styling to the fields, and formatting to text. The different docs will be able to be created by different users, but do not have the ability to create new content types.
Is this the way to go?
https://drupal.org/project/ckeditor-googledoc
Joshi,
I have downloaded the Sheetnode module, installed...
downloaded the socialcalc masterfile, unzipped, and placed it in the sheetnode folder
then turned all
and I still can't get my spreadsheet to show up when creating new content...
thanks for any help you can give...
You can try any or all of the following modules:
https://drupal.org/project/ajax_document_viewer
https://drupal.org/project/gdoc_field
or https://drupal.org/project/sheetnode
Regards.

Creating new Drupal nodes based on created HTML output

I have a module in Drupal 6 that parses an XML feed and creates HTML output. Essentially, I have a long string of the HTML that should populate that page. This is being done on a local server at the moment.
What I would like to do is take that output and create new nodes with it. I've seen that, with the Feeds module, I can import content. What I would like to do is have the following procedure:
Run script (cron or user-instigated)
Generate HTML content and put it to some sort of local file
Import that content with a module on my production server (Feeds or otherwise)
As I mentioned, my HTML content is currently exactly as I want it. However, it needs to become static nodes (for posterity's sake). I can programmatically generate the HTML for each node, however I'm not sure what the best way to do this would be.
Have a look at the Import HTML module.
I simply created Drupal nodes programmatically. Turned out to be easiest.

Wordpress Plugin Generating PDF and Xls Documents

I'm writing a web application for a client that needs to be packaged in a wordpress plugin. The application is built on top of a soap api that returns an array of results that I need to output to a pdf and/or excel document. I'm using two third party libraries to generate the pdf and excel files (tcpdf and phpexcel), but Wordpress won't allow them to modify the header from inside of the plugin to return different types of content. Does anyone know how I can generate and return a pdf/excel document from inside of a Wordpress plugin?
Please refer following TCPDF exmaple link...this will show you how to create pdf using TCPDF.
http://www.tcpdf.org/examples.php
You can also refer post2pdf-converter wordpress plugin which will show you how to convert posts to pdf.
http://wordpress.org/extend/plugins/post2pdf-converter/

How to display image into each recent post in drupal front page?

I am very new to drupal. As I have seen many of drupal free theme can show image in the recent post on the first page of drupal
I tried searching some ways to do but seem my keyword search was mismatched.
If you don't want to install any modules, you can simply use a standard HTML <img> tag to put an image in your node body (make sure your selected Input Format allows for the use of that tag). You can then use FTP to upload the linked images to your /sites/default/files directory.
The modules mentioned by Nikit (especially IMCE) can ease this process greatly. A the very minimum, IMCE allows you to upload files to your server without using FTP and adds a handy "insert image" link after your "body" input fields. Clicking that link uploads your image and then generates the <img> code for you.
You can simply style it in node body (wysiwyg + imce can help to quickly upload image and style it).
But recommend to you use image or cck + imagefield, and theme it via node-{CONTENTTYPE}.tpl.php
Little help here: http://www.hankpalan.com/blog/drupal-themes/theming-node-drupalthe-easy-way
But recommend to learn theming in drupal.
If you don't want to use HTML or change any PHP files then use the admin console.
http://drupal.org/node/1047760

Resources