Users - 'Content loader'?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Users - 'Content loader'?

Charles Johnson-4
Was it my imagination, or did i see talk of a 'content loader' for
Ofbiz? So far i've been loading content manually

CJ

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

byersa
Charles Johnson wrote:

>Was it my imagination, or did i see talk of a 'content loader' for
>Ofbiz? So far i've been loading content manually
>
>CJ
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>
Charles,

Can you give me more information? I am not sure what a content loader
would be. You can import content data as with other entities. Also,
there is a capability to specify a freemarker transform file that will
convert a file (ie. non-OFBiz entity format) to the entity format and
then load it. There is are examples of this in the
ecommerce/script/org/ofbiz/ecommerce/data dir.

-Al
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Charles Johnson-4
>>Can you give me more information?
Well i'm afraid i don't have any ;-)

 Thanks for the tip about the freemarker templates. They look something
like what i was imagining at a quick glance, although i don't yet
understand them nor know how they can be used.

CJ

Al Byers wrote:

>Charles Johnson wrote:
>
>  
>
>>Was it my imagination, or did i see talk of a 'content loader' for
>>Ofbiz? So far i've been loading content manually
>>
>>CJ
>>
>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>
>>    
>>
>Charles,
>
>Can you give me more information? I am not sure what a content loader
>would be. You can import content data as with other entities. Also,
>there is a capability to specify a freemarker transform file that will
>convert a file (ie. non-OFBiz entity format) to the entity format and
>then load it. There is are examples of this in the
>ecommerce/script/org/ofbiz/ecommerce/data dir.
>
>-Al
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

BJ Freeman
I mentioned something similar, but it was to export to a different
Website. Ofbiz in this case is being used as a backend only.

Charles Johnson sent the following on 2/16/06 2:52 PM:

>>>Can you give me more information?
>
> Well i'm afraid i don't have any ;-)
>
>  Thanks for the tip about the freemarker templates. They look something
> like what i was imagining at a quick glance, although i don't yet
> understand them nor know how they can be used.
>
> CJ
>
> Al Byers wrote:
>
>
>>Charles Johnson wrote:
>>
>>
>>
>>
>>>Was it my imagination, or did i see talk of a 'content loader' for
>>>Ofbiz? So far i've been loading content manually
>>>
>>>CJ
>>>
>>>
>>>_______________________________________________
>>>Users mailing list
>>>[hidden email]
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>>
>>>  
>>>
>>
>>Charles,
>>
>>Can you give me more information? I am not sure what a content loader
>>would be. You can import content data as with other entities. Also,
>>there is a capability to specify a freemarker transform file that will
>>convert a file (ie. non-OFBiz entity format) to the entity format and
>>then load it. There is are examples of this in the
>>ecommerce/script/org/ofbiz/ecommerce/data dir.
>>
>>-Al
>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>
>>
>
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Andrew Sykes
In reply to this post by byersa
Al,

I've been looking at the...
ecommerce/script/org/ofbiz/ecommerce/data direrctory.

This stuff looks really good, but it's quite difficult to figure out
exactly what's happening here.

Is there any more information on this stuff?
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Charles Johnson-4
How have you been loading so far Andrew?

CJ

Andrew Sykes wrote:

>Al,
>
>I've been looking at the...
>ecommerce/script/org/ofbiz/ecommerce/data direrctory.
>
>This stuff looks really good, but it's quite difficult to figure out
>exactly what's happening here.
>
>Is there any more information on this stuff?
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Andrew Sykes
Charles,

When you say content loading, do you mean migrating data?
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Charles Johnson-4

Not necessarily. Andrew - do you want to chat for a couple minutes in
#ofbiz (IRC)?

CJ
Andrew Sykes wrote:

>Charles,
>
>When you say content loading, do you mean migrating data?
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

byersa
In reply to this post by Andrew Sykes
Andrew,

The key thing to note is how this line in data/DemoContent.xml:

<?xml version="1.0" encoding="UTF-8"?>
<entity-engine-transform-xml
template="org/ofbiz/ecommerce/data/content.ftl">
...

causes the content.ftl template to be run with the contents of
DemoContent.xml put in the ftl environment as the variable "doc". You
will see the "<#recurse doc>" statement. This starts the XSLT-like
processing of FreeMarker. That capability is really a gem - has all the
capabilities of XSLT, but allows the use of loops and is easier to call
Java functions. In this case, it causes the GenericValue literals to be
constructed and that is what is imported into the db.

When using the XML processing features of FreeMarker, it is important to
always include the "catch all" element:

<#macro @element>
</#macro>


-Al

Andrew Sykes wrote:

>Al,
>
>I've been looking at the...
>ecommerce/script/org/ofbiz/ecommerce/data direrctory.
>
>This stuff looks really good, but it's quite difficult to figure out
>exactly what's happening here.
>
>Is there any more information on this stuff?
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Andrew Sykes
Al,

Fantastic!

This stuff looks really good.
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

byersa
Andrew,

I should have mentioned that you don't need to put that "template"
attribute in the xml doc, the import page has a field where that can be
specified.

-Al

Andrew Sykes wrote:

>Al,
>
>Fantastic!
>
>This stuff looks really good.
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Charles Johnson-4
>>the import page has a field where that can be specified.

What is the address of that page btw?

CJ
Al Byers wrote:

>Andrew,
>
>I should have mentioned that you don't need to put that "template"
>attribute in the xml doc, the import page has a field where that can be
>specified.
>
>-Al
>
>Andrew Sykes wrote:
>
>  
>
>>Al,
>>
>>Fantastic!
>>
>>This stuff looks really good.
>>
>>
>>    
>>
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

byersa
Charles,

It is under Webtools->XML Data Import.

Url is: https://localhost:8443/webtools/control/EntityImport

-Al

Charles Johnson wrote:

>>>the import page has a field where that can be specified.
>>>      
>>>
>
>What is the address of that page btw?
>
>CJ
>Al Byers wrote:
>
>  
>
>>Andrew,
>>
>>I should have mentioned that you don't need to put that "template"
>>attribute in the xml doc, the import page has a field where that can be
>>specified.
>>
>>-Al
>>
>>Andrew Sykes wrote:
>>
>>
>>
>>    
>>
>>>Al,
>>>
>>>Fantastic!
>>>
>>>This stuff looks really good.
>>>
>>>
>>>  
>>>
>>>      
>>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>
>>
>>    
>>
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - 'Content loader'?

Charles Johnson-4

Thanks for that.

CJ
Al Byers wrote:

>Charles,
>
>It is under Webtools->XML Data Import.
>
>Url is: https://localhost:8443/webtools/control/EntityImport
>
>-Al
>
>Charles Johnson wrote:
>
>  
>
>>>>the import page has a field where that can be specified.
>>>>    
>>>>
>>>>        
>>>>
>>What is the address of that page btw?
>>
>>CJ
>>Al Byers wrote:
>>
>>
>>
>>    
>>
>>>Andrew,
>>>
>>>I should have mentioned that you don't need to put that "template"
>>>attribute in the xml doc, the import page has a field where that can be
>>>specified.
>>>
>>>-Al
>>>
>>>Andrew Sykes wrote:
>>>
>>>
>>>
>>>  
>>>
>>>      
>>>
>>>>Al,
>>>>
>>>>Fantastic!
>>>>
>>>>This stuff looks really good.
>>>>
>>>>
>>>>  
>>>>
>>>>    
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>Users mailing list
>>>[hidden email]
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>>  
>>>
>>>      
>>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>
>>    
>>
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>
>  
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users