People who code: we want your input. Take the Survey

Questions tagged [import]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

Inserting data into a table fieldtype via plugin?

I'm trying to import data from another database into a 'table' fieldtype via a plugin, and have a couple questions. When setting the content on the EntryModel, are there any methods to assist in ...
9
votes
3answers
1k views

Is it possible to use _includes/forms outside of the Control Panel?

From working on plugin development, importing (I believe the correct term for this is macro) the 'forms' to quickly generate text areas, selects and etc. is incredibly useful. Adding the import now ...
4
votes
2answers
2k views

Best way to programmatically create categories?

We're working on an XML import plugin to migrate content from another CMS. What's the best way to create a new category (with a name, slug etc.) and assign it to the entry when running $entryModel = ...
1
vote
1answer
764 views

Any way to manually generate a transform on an asset source?

I imported all of the posts from a WordPress blog, using a regular expression to update the image URLs to their new location in a Craft Asset Source. However, many of the original photos are straight ...
2
votes
1answer
363 views

Using Craft::import() to include external resource into the Craft Namespace

Looking at this answer, I suppose I am under the assumption that Craft::import() will take an alias, find the path, and import that class into the Craft namespace... which would be the benefit over ...