gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.04k stars 204 forks source link

Implement a good way to import / export template settings between 2 sites. #218

Open mahagr opened 9 years ago

newkind commented 9 years ago

I think that the import/export functionality should cover all Gantry 5 aspects - presets, styles, configurations etc.

w00fz commented 9 years ago

This is the import / export we talked about and just postponed?

// Djamil Legato // From iPhone //

On May 10, 2015, at 08:47, Matias Griese notifications@github.com wrote:

— Reply to this email directly or view it on GitHub.

w00fz commented 9 years ago

We have a ticket in JIRA FYI GANTRYFIVE-21 Also to summarize the further discussions we have had in the past months regarding this argument, we talked about having a modal that proposed different types of import/export (like a list with [x] Styles [x] Settings [x] Layout Manager [x] Configurations etc etc) and that one could check/uncheck as desired, building then a customizable importer/exporter.

mahagr commented 9 years ago

This issue is based on discussion in Gitter, which is why I wanted to create a public issue for it.

red1967 commented 9 years ago

Please give us the ability to export/import template settings/outlines/particles as it would save time.

alwinaugustin commented 8 years ago

This functionality implemented yet ? I am not seeing it in the templates

w00fz commented 8 years ago

Unfortunately that feature had to be postponed but we are still planning on implementing it in a future version. Our focus right now is inheritance for the layouts (section / particles) and integration with grav.

red1967 commented 8 years ago

Is "integration with grav" really more important than "export/import settings" and dynamic particles feeding off joomla articles? I just don't see the logic but am open to an explanation.

w00fz commented 8 years ago

We already have implemented integration of particles with the Joomla Articles, http://docs.gantry.org/gantry5/advanced/content-in-particles .

We want the integration with Grav taking precedence over Import / Export. The main reason of this is because you can already Import / Export, many people do that already, it's just more of a manual process than having an UI in admin to do that (which is what we are postponing).

All stored files in Gantry are in the custom/, from Layouts to Settings to Styles. You can copy those files and paste them in another theme or the same theme in another platform, at the same location, and just tweak its content to match the destination.

So yeah, after inheritance has been completed, we are going to focus again on Grav integration. Once that's done too we will move on onto other features.

red1967 commented 8 years ago

What the...I was with you all the way upto "finder". Wudn't it be easier to just have a drop down list of the categories/articles you want to select to feed into the particle instead of all that code?

mahagr commented 8 years ago

But there is a dropdown list for categories. :) There isn't list of articles, though, as we cannot possibly display thousands of articles in a dropdown list.

The implementation is also about simple as it gets; Joomla itself uses much more code to do less, but the code is so specific that we couldn't use it. WP implementation is similar, but using Timber/WP API.

Creating particles with Joomla content is a complex task requiring you to know the internals of Joomla and to have some knowledge on how SQL works. There is just no way around it. But its not really that bad, a few people have already created particles with it. Think that you are making a search and adding rule after rule, thus making the search more specific.

red1967 commented 8 years ago

Hmmm. Lets assume I have 100 reviews in Joomla content. I want to display about 20 of them as a news slider at the top of the website. I know this can be done with Roksprocket but can it be done using a particle?

mahagr commented 8 years ago

Yes, there's nothing preventing you from doing that -- except that the existing particle does not have JavaScript part to create the slider. Its pretty easy to take the existing particle, modify the output suitable for some slider JS and configure it to display 20 latest reviews from your reviews category.

Next RocketTheme theme will have some particles which can display Joomla content like this, but I don't know which ones will get the support first.

red1967 commented 8 years ago

That sounds very positive. Thanx for the info. :)

mahagr commented 8 years ago

There has been a lot of work towards this feature, but its still experimental and needs manual fixes by the user. Basically full export from Joomla is already working, but importing data is still a manual task as the logic for it is mostly missing.

Great news are that it looks like export/import between supported platforms seems to be feasible to implement.

shoulders commented 8 years ago

sounds good. this was the only thing stopping me using gantry.

Mineslu commented 8 years ago

It's wonderfull!.

rskonieczka commented 6 years ago

+1

N8Solutions commented 6 years ago

Any updates on this? @w00fz I know this is mentioned here: https://github.com/gantry/gantry5/wiki/Gantry-5-Agenda,-Exploration-and-Time-Travel but that Wiki page, if correct, says it hasn't been updated since Dec. 14th 2016.

I was also surprised to see the issue that @marktaylor46 opened, #680, was not on the list for Import/Export feature. In the Wiki page it says:

Import/Export: This is something we have planned to have in Gantry 5 since the very beginning. We would like to be able to easily export and import, in a modular way, anything specific to a template: Custom folder, Particles settings, Layouts, etc. (#218, #339, #1174)

I know you guys are busy so when you have an opportunity to reply I'd appreciate it. I look forward to an update regarding this.

@mahagr @newkind

@JoomFX I'm tagging you as well because I know how much you'd like to see Particle Packaging implemented 😉

JoomFX commented 6 years ago

@N8Solutions Thanks Michael

Yep, one of my biggest dreams is to see the "Particle Packaging" (and the Official Particle Marketplace) implemented. I'm not sure if it will ever going to happen but still, it is my dream.

thexmanxyz commented 6 years ago

@mahagr @N8Solutions @JoomFX @w00fz Let me give the discussion a little spin because it matches. Referencing back to #680.

Some might know that I offer a few particles and atoms on my GH page and I already use some sort of packaging routine Package Builder Gantry, which I already used heavily. Don't blame me for Windows Shell scripting, feel free to submit a PR for linux bash

However this already offers a way to package particles for different scenarios:

I'm pretty sure this can be extended for Grav and Wordpress. Just throwing that in and questioning if we need another Plugin system if we already have them included in each CMS. I'm fully aware that one single plugin / update system would be way easier to manage. Just an idea based on the current situation.

It is also to consider that there are already CMS specific particles and atoms - segemations. This thoughts only affect the actual install routine for atoms, particles but not an actual public store and how the export is done. This is just a thing to consider down the road even if it might be a stupid thought :)