Active
Project:
Metatag
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 May 2013 at 19:37 UTC
Updated:
31 Mar 2019 at 12:20 UTC
Jump to comment: Most recent
Comments
Comment #1
damienmckennaHow do you export the other content?
Comment #2
PedroKTFC commentedI just used the export link in the metatag UI (after editing the metatags). It gives me a window with something as I've shown below. I was assuming I'd have to copy and paste it into a file and then import it on my other sites.
$config = new stdClass();
$config->disabled = FALSE; /* Edit this to true to make a default config disabled initially */
$config->api_version = 1;
$config->instance = 'global:frontpage';
$config->config = array(
'title' => array(
'value' => '[site:name]',
),
'description' => array(
'value' => 'My description text blah blah.',
),
'keywords' => array(
'value' => 'fred, john, may',
),
'news_keywords' => array(
'value' => 'fred, john, may',
),
'canonical' => array(
'value' => '[site:url]',
),
'shortlink' => array(
'value' => '[site:url]',
),
);
Comment #3
damienmckennaNo, I mean if you're trying to load content, i.e. nodes etc, from the dev to production sites, how do you get the other content over?
Comment #4
PedroKTFC commentedAh! To date I've mainly managed to backup and restore my database as the production site has no user modified content. But that is now changing and I won't be able to get away with that any more (except going in reverse, production to development, of course). I've exported/imported views and I've looked at features and patterns which seem to do what I need in some areas.
Comment #5
damienmckennaOh, I see what you mean. If you don't want to use Features to manage your configuration, you should use hook_metatag_config_default() as described in the metatag.api.php file.
Comment #6
PedroKTFC commentedIn the end I've gone for the deploy and configuration management modules (the latter because it seems to be the way D8 is going). However, I'd only set a specific metatag for the front page yet it didn't seem to transfer; I had to set a global metatag for it to transfer.
Comment #8
anybodyWhat about a simple UI page for importing the exports directly in Metatags? (Like other modules do?)
Features is very heavy for some pages...
Comment #9
anybodyComment #10
sphism commentedUmmm... so i can export metatags but not import them?? That's a bugger.
Comment #11
damienmckennaComment #12
damienmckennaComment #13
coozila commentedsubscribe
Comment #14
epringi commentedThis would make sense.
Comment #15
xaa commentedI agree this would make sense. Why provide an export UI if import is impossible?