Hoi Claudia

It is very easy to get lost in STK. So here are a few tips:

You've noticed that the paragraphs are defined in def.header.stage.paragraphs, 
but you don't know where this is. Well, def is the template or paragraph 
definition. You can find out what definition is being used by simply outputting 
the name of the definition:

${def.name}

Then find the definition with that name (if it's not a custom page or paragraph 
you've defined yourself, you'll most likely find it under 
config:/modules/standard-templating-kit/templates... or 
config:/modules/standard-templating-kit/paragraphs...). And from there on just 
follow the path -> header/stage/paragraphs)

Now, chances are, that there is no "headers/stage/paragraphs" node in your 
template definition node. Then, the info you are looking for is in the template 
prototype of the site:

CE: config:/modules/standard-templating-kit/config/site/templates/prototype
EE: 
config:/modules/extended-templating-kit/config/sites/[mysite]/templates/prototype

HTH

-will

On 19.03.2011, at 16:50, Claudia Guerrero wrote:

> 
> 
> Hello,
> 
> I'm trying to create a new type of stage, slightly modifying the StageXL
> template and I called it StageXLNoText.
> 
> I've created a new paragraph and dialog. However, I do not know where to add
> my new type of stage so that it will show among the options once the users
> click 'Create stage'.
> 
> On the Templating Kit>Templates>templating-kit>templates>home>stage template
> I can see that it's grabbing the available stages from a variable (?)
> def.header.stage.paragraphs.
> 
> [@cms.newBar contentNodeName="stage" newLabel="${i18n['stage.newLabel']}"
> paragraph="${stk.asStringList(def.header.stage.paragraphs)}" /]
>        </div><!-- end div-id="stage" -->
> 
> And that in turn make the available templates show as a list in the dialog
> when the user pushes the button 'Create Stage'
> 
> http://server:8080/magnoliaAuthor/.magnolia/dialogs/selectParagraph.html?mgnlPath=/USAcademy&mgnlNode=stage&mgnlParagraph=stkStageXL,stkStagePaging&mgnlRepository=website&mgnlRichE=false&mgnlRichEPaste=&mgnlCK=1300549472517
> 
> In short, where do I need to add my new stage so that it shows in the list
> def.header.stage.paragraphs?
> 
> Right now I only have the paragraph template, paragraph definition and
> dialog definition. I'm missing something else.
> 
> Thanks!
> Claudia
> -- 
> View this message in context: 
> http://old.nabble.com/Creating-new-type-of-stage-tp31189123p31189123.html
> Sent from the Magnolia - User mailing list archive at Nabble.com.
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to