On Jul 20, 2011, at 9:42 PM, shortname wrote:

> 
> Hi all,
> 
> First of all sorry my English, it's not my native language.
> 
> I'm new in java and magnolia, and trying understand how templating works (I'm 
> c# developer).
> I have read Magnolia CMS Technical Guide, complete reading templating manuals 
> and user-list mail archive, but can't find something to help me understand 
> few things about templating:
> 
> 1. I installed few modules with stk paragraphs, for example facebook-connect. 
> I see paragraph configuration here: /modules/facebook-connect/paragraphs. But 
> I can't find them when create new paragraph on any stk page template. What 
> thing I missing?

The paragraph is not available under the template/area where you are trying to 
use it. See Templating 
Kit/SiteDefinitions:<your_site>/templates/prototypes/<areaName> for adding it 
by default to given type of area or Templating Kit/Template 
Definitions:<your_template>/<areaName>/paragraphs for adding it to the area of 
only one template.

> Should bootstrap phase register this paragraphs to be available for stk 
> templates or should I register facebook paragraphs manually somewhere?

That depends on the module provider ... mostly you would not register 
paragraphs for the page templates that your module is not providing as well, 
leaving it up to site manager to decide where such paragraph fits in their site 
design.

> Or stk templates show paragraphs registered inside standard-templating-kit 
> module configuration? If so, should I copy all paragraphs from other modules 
> with stk templates and paragraphs to standard-templating-kit module config 
> and this make them available in stk templates?

Depends on the case you can extend and/or reference most of the configuration 
elements. Only rarely you should need to make a complete copy and redefine 
everything.

> 
> 2. Templating manuals said I should make templates and paragraphs in my 
> module tree (best practive), not in /modules/templating/templates. So I 
> trying make new folder and create template and paragraph configurations here 
> /modules/test similar magnolia tutorial, but this paragraphs not visible for 
> stk too. Maybe they should be created here when magnolia bootstrap new module?

When you create "templates" folder freshly it will not be observed until server 
restart so you will not see templates immediately. After restart everything 
should work fine. And yes, you would still not see templates under Templating 
Kit/Template definitions, but you should be able to create your own menu item 
and show them there.

> 
> 3. If I want create template without stk, only using freemarker, where should 
> I register it to hide magnolia warning about no templates found and make 
> magnolia working?

Definitively under config:/modules/<yourModule>/templates  (bear in mind the 
restart needed in case you are creating that folder for the first time 
manually).

> 
> 4. I try create own module with templates inside and have lost with module 
> configuration. I download few modules source, and trying understand how to 
> create config files like config.modules.*.xml in mgnl-bootstrap folder. 
> Should I make them manually or some tools can be used for that. Or can I 
> create my module settings in current magnolia config and just export it?

create all in your magnolia instance and export it.

HTH,
Jan

> 
> Any help appreciated.
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
> ----------------------------------------------------------------




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to