elfuchsjekyll / vosao

Automatically exported from code.google.com/p/vosao
0 stars 0 forks source link

Resource file strategy #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Per Alex, 

There are 2 url namespaces

1. Pages content starts with /
2. Resources starts with /file

Resources placed in /theme/THEME_NAME are considered as theme resources and
included in export/import.

Resources placed in /page/PAGE_URL are considered as page resources and
included in content export/import. All security constraints applied to page
also applied to page resources. When you upload image in ckeditor it's
placed to page resources path so if you can edit page you can edit this
resource path.

Resources placed in other folders are considered as unconnected resources.

In staging you have to export folders /designer , /start, /developer
individually. Because if you export / path all theme resources will be
included. Of course you can edit zip file and remove unnecessary resources
later.

For sites with content size bigger than 10MB current export implementation
will not work. I plan to add feature to enable/disable of pages resources
including in export. So pages resources can be exported as ordinal
folder.What steps will reproduce the problem?

Original issue reported on code.google.com by ted.husted on 19 Feb 2010 at 1:42

GoogleCodeExporter commented 9 years ago
> When you upload image in ckeditor it's placed to page resources path so if 
you can 
> edit page you can edit this resource path.

That's a great feature since if the path for the page doesn't exist, the system
creates the page. 

We would need to be careful to teach people to use the image upload, since it 
seems
more obvious to use the upload in the resource area. Like me, many people could 
be
confused and disappointed when restore doesn't work. 

> All security constraints applied to page also applied to page resources. 

Also a great feature.

> Resources placed in other folders are considered as unconnected resources.

Are unconnected resources a feature or just a side effect? Is there any valid 
use for
an unconnected resource?

> Because if you export / path all theme resources will be included. 

The 10MB limit aside, why would we want to EXclude any resources from an export?

By "theme" do we mean "template"?

Original comment by ted.husted on 19 Feb 2010 at 1:59

GoogleCodeExporter commented 9 years ago
> When you upload image in ckeditor it's placed to page resources path 

Though with structures, we can reference images without using ckeditor. 

Perhaps there could be a Resources tab on Page control that would open to the
corresponding folder in the Resource area. Then we could upload files properly 
when
using a structure. 

The same for Templates. There could be a Resource tab next to Templates that 
opened
to the Theme Resources folder. 

This way people could manage resources through the interface without knowing the
magic folder names or recreating the site outline by hand. 

Original comment by ted.husted on 19 Feb 2010 at 2:49

GoogleCodeExporter commented 9 years ago

Original comment by kinyelo@gmail.com on 19 Feb 2010 at 10:01

GoogleCodeExporter commented 9 years ago
Implemented.

Original comment by kinyelo@gmail.com on 19 Feb 2010 at 3:23