Need help migrating your site to Drupal?

Lists & Tables

Hmmm... I thought I had posted this message and it kinda' vanished? Anyway, here it is again

Migrate Script from Static HTML Problems - Apostrophes and Ascii codes

We have a parsing script to convert 10,000+ static html files to drupal nodes.

However, we are running into a bit of a snag. Everything looks great when just spitting out the title and body text from the parsing, but stuff get's ugly when trying to put it into Drupal

After using the code shown below, we have several problems:

1. Everything is cut off after an apostrophe for both title and body. It's like the node_save function stops after it reaches an apostrophe. So if the title is "Matt's Stuff", it's saved in Drupal as just "Matt". But the $pageTitle variable does have the entire title in it. Same for body. The body will just be cut off after the first apostrophe.

2. Sometime the html code for spaces and other certain characters (like "&nbsp") show up in the title and body instead of the actual character. Very annoying.

Here is the drupal related part:

	$node = new StdClass;
	$node->title = $pageTitle;
	$node->type = 'story';
	$node->status = 1;
	$node->body = $fileContent; 
	$node->uid = $authorID;
	$node->created = $dateMod;
	$node->changed = $node->created;
	$node->promote = 0;
	$node->sticky = 0;
	$node->format = 4;
	$node->path = $inputDirectoryPath . '/' . $inputFileName;
	
        node_prepare($node);
	node_save($node);

Generating Automatic Titles

I am migrating my travel website to Drupal, and SEO is extremely important to my site, so I need to have very specific title tags. I would like to have title tags automatically generated each time I create an article, but I am unable to find a module that meets my specific needs.

Adding Image upload field to a content type

Hey Everyone I'm new to Drupal and need a hand adding an image upload field to a content type. The situation is that I have a news content type for news pages and need to facilitate an image being associated with each news post.

Any help would be much appreciated!

HELP!! Need help pulling content from a specific page and posting it on another

I have experience with other CMS's but i'm new to Drupal devel. I need to pull the body content of a certain unpublished page for output on another page. Do I have to query the db, select the file, specify the field which would be body in this case, then output the results wherever i need them?

If this method is correct could someone lead me to a resource on writing db queries in drupal....i have no idea how drupal stores data in the db and am therefore have no clue what conventions to use in the query.

I would appreciate any resources or examples I can get to get, thanks!

Design question - porting my existing site (.Net) to Drupal

Hello all experts,

I am new to the Drupal party. I had evaluated Joomla, Mojoportal and couple others and found that this is the one. Long story short, I am trying to port my existing website (www.retiresoon.me) to Drupal but I don't have much idea what the best approach should be. My site does blog and charts for most stocks (user enter a ticker or stock symbol) and my site will present a pre-generated chart using Google Chart API (throught URL). User enter a ticker in the search box and on the center pane presents the chart.

I am thinking I can modify the Search module to accomplish the similar result. Also, I would like to have a virtual page url for each stocks (around 7000+) for SEO reason. The search page may have a query string like "?ticker=AAPL" at the end of the search url but would also be available as "/AAPL.html". Is this the right approach? Is it better to index each stock as a single page?

There will be a weekly chart option which only registered user can check the box and view it, so I think I need to add some tweak on the search module as well.

If someone can point me to the right direction or even offer help, I will be very appreciated. I think Drupal is almost the best abstract website framework

Pages

Subscribe with RSS Subscribe to RSS - Converting to Drupal