First, thanks for a really slick module. Two similar feature requests:

One is for increased flexibility in the "import" feature. In particular, a "browse" button to allow one to upload a text file would be great.

The second is for an "export" feature that would write out the quotes table in either raw SQL or whatever import file formats are supported. This would make it easier for users and Drupal sites to exchange groups of quotes.

CommentFileSizeAuthor
#2 quotesexport.patch1.19 KBAnonymous (not verified)

Comments

red_eye’s picture

Version: 4.7.x-1.x-dev » master

I'd like to see this too, importing 40,000 quotes is very tedious.

Anonymous’s picture

Assigned: Unassigned »
Status: Active » Reviewed & tested by the community
StatusFileSize
new1.19 KB

I see that the quote importing has already been added. My little patch simply adds the ability to export all of the quotes to a fortune file.

Feel free to comment.

Anonymous’s picture

Status: Reviewed & tested by the community » Needs review

Oops, chose the wrong option for status. There we go.

nancydru’s picture

Hmm, I'm not sure the import capability that was asked for is really there.

I certainly agree that the export feature would be nice because I'd like to be able to copy many of my quotes to other sites. It would also make a nice back up feature for Drupal upgrades.

I think, though, that exporting in tab-delimited format would give greater flexibility, especially if one uses the "citation" feature that is available via a patch (and will be in the code when I get commit access).

nancydru’s picture

@JoshuaRogers - thanks for the patch, it jump-started this.

If / when I get commit authority, the export function was easy.

@red_eye: I understand your pain. I am dis-inclined to add a "browse" button for the very reason you mention. Trying to import 40K quotes at one time would almost certainly break - at the very least by exceeding the execution time limit. It also does not fit well with the current import implementation. I am willing to listen to arguments though.

nancydru’s picture

Assigned: » nancydru
Priority: Normal » Minor
Status: Needs review » Postponed (maintainer needs more info)

Export fix committed.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Fixed

If anyone still wants the browse button, please open a new issue. It is unlikely that it would be added to the 5.x version.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.