Editing tiles-config.xml and frontendLayout.jsp

View: New views
5 Messages — Rating Filter:   Alert me  

Editing tiles-config.xml and frontendLayout.jsp

by Nico Robin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi all

i'm new in atleap and have just playing around a little with it

i have a question here

i have edited tiles-config.xml, here's the snippet
SNIPPET CODE START
<!-- Front end layout for client part -->
    <definition name=".frontendLayout" path="/WEB-INF/pages/layouts/core/frontendLayout.jsp">
        <put name="titleKey" value="" />
        <put name="content" />
        <putList name="leftLayoutBlocksList" container="true" description="Left layout block list">
         <add value=".frontend.menu" />
        </putList>
        <putList name="leftLayoutIndexedBlocksList" container="true" description="Left layout indexed block list">
                <add value=".frontend.indexedBlock" />
        </putList>
        <putList name="rightLayoutBlocksList" container="true" description="Right layout block list">
        <add value=".loginForm" /> <-- i add this line
                    <add value=".searchForm" />
<!--    <add value=".frontendSwitchLocaleForm" />  --> <-- .. and commenting this one
            </putList>

....
SNIPPET CODE END

now if you look into <putList name="rightLayoutBlocksList" container="true" description="Right layout block list"> tag above i have add

<add value=".loginForm" />

and remove the

 <add value=".frontendSwitchLocaleForm" />  

by commenting it

by doing this i'm expecting to get login form in the right block of the index page and the contentlocale switch blog won't appear, but it's not working...
and the switch locale content form still appear

i have build refresh it, empty my database but no result
what do i miss here ?

thanks


Re: Editing tiles-config.xml and frontendLayout.jsp

by Roman Puchkovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

What version of AtLeap do you use?

Roman Puchkovskiy

Nico Robin writes:

> hi all
>
> i'm new in atleap and have just playing around a little with it
>
> i have a question here
>
> i have edited tiles-config.xml, here's the snippet
> SNIPPET CODE START
> <!-- Front end layout for client part -->
>     <definition name=".frontendLayout"
> path="/WEB-INF/pages/layouts/core/frontendLayout.jsp">
>         <put name="titleKey" value="" />
>         <put name="content" />
>         <putList name="leftLayoutBlocksList" container="true"
> description="Left layout block list">
>          <add value=".frontend.menu" />
>         </putList>
>         <putList name="leftLayoutIndexedBlocksList" container="true"
> description="Left layout indexed block list">
>        <add value=".frontend.indexedBlock" />
>         </putList>
>         <putList name="rightLayoutBlocksList" container="true"
> description="Right layout block list">
>         <add value=".loginForm" /> <-- i add this line
>    <add value=".searchForm" />
> <!--    <add value=".frontendSwitchLocaleForm" />  --> <-- .. and
> commenting this one
>    </putList>
>
> ....
> SNIPPET CODE END
>
> now if you look into <putList name="rightLayoutBlocksList" container="true"
> description="Right layout block list"> tag above i have add
>
> <add value=".loginForm" />
>
> and remove the
>
>  <add value=".frontendSwitchLocaleForm" />  
>
> by commenting it
>
> by doing this i'm expecting to get login form in the right block of the
> index page and the contentlocale switch blog won't appear, but it's not
> working...
> and the switch locale content form still appear
>
> i have build refresh it, empty my database but no result
> what do i miss here ?
>
> thanks
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Editing tiles-config.xml and frontendLayout.jsp

by Roman Puchkovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

Looks like this is a bug, I will investigate it later.
For now, workaround is to use the "Discard all changes made to Tiles
containers config through admin console." button on Global Properties
page. Or you can manually adjust what components exactly you want to
have on your layouts editing Front-end layout (or Index page layout)
through the admin console and redistributing components between the
lists. But in this case you will have to do this for each layout
affected, as tile containers configuration adjusted in this way is not
inherited.

By the way, to use ".loginForm" component in
.frontentLayout/rightLayoutBlocksList container, you have to configure
it first. Namely, you have to add containers="..." attribute to it to
specify in which containers it's allowed to be included.
For example of such configuration, please refer to the .searchForm tile
configuration.

Roman Puchkovskiy

Nico Robin writes:

> hi all
>
> i'm new in atleap and have just playing around a little with it
>
> i have a question here
>
> i have edited tiles-config.xml, here's the snippet
> SNIPPET CODE START
> <!-- Front end layout for client part -->
>     <definition name=".frontendLayout"
> path="/WEB-INF/pages/layouts/core/frontendLayout.jsp">
>         <put name="titleKey" value="" />
>         <put name="content" />
>         <putList name="leftLayoutBlocksList" container="true"
> description="Left layout block list">
>          <add value=".frontend.menu" />
>         </putList>
>         <putList name="leftLayoutIndexedBlocksList" container="true"
> description="Left layout indexed block list">
>        <add value=".frontend.indexedBlock" />
>         </putList>
>         <putList name="rightLayoutBlocksList" container="true"
> description="Right layout block list">
>         <add value=".loginForm" /> <-- i add this line
>    <add value=".searchForm" />
> <!--    <add value=".frontendSwitchLocaleForm" />  --> <-- .. and
> commenting this one
>    </putList>
>
> ....
> SNIPPET CODE END
>
> now if you look into <putList name="rightLayoutBlocksList" container="true"
> description="Right layout block list"> tag above i have add
>
> <add value=".loginForm" />
>
> and remove the
>
>  <add value=".frontendSwitchLocaleForm" />  
>
> by commenting it
>
> by doing this i'm expecting to get login form in the right block of the
> index page and the contentlocale switch blog won't appear, but it's not
> working...
> and the switch locale content form still appear
>
> i have build refresh it, empty my database but no result
> what do i miss here ?
>
> thanks
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Editing tiles-config.xml and frontendLayout.jsp

by Nico Robin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Got it, it works ! :)
thanks for the quick reply

by the way i use atleap 0.56


Hi.

[deleted]

By the way, to use ".loginForm" component in
.frontentLayout/rightLayoutBlocksList container, you have to configure
it first. Namely, you have to add containers="..." attribute to it to
specify in which containers it's allowed to be included.
For example of such configuration, please refer to the .searchForm tile
configuration.

Roman Puchkovskiy


Re: Editing tiles-config.xml and frontendLayout.jsp

by Roman Puchkovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, Nico.

I've finally investigated this and found that this works as it should.
The configuration of the tile containers is stored in the database, and
it's the main place. The configuration of tile containers in the
tiles-config.xml is the base one, i.e. the one to which the system will
revert when you wish to go back to the initial configuration.

Anyway, we should probably clarify this in the docs, so thanks for
pointing this out.

Roman Puchkovskiy

Nico Robin writes:

> hi all
>
> i'm new in atleap and have just playing around a little with it
>
> i have a question here
>
> i have edited tiles-config.xml, here's the snippet
> SNIPPET CODE START
> <!-- Front end layout for client part -->
>     <definition name=".frontendLayout"
> path="/WEB-INF/pages/layouts/core/frontendLayout.jsp">
>         <put name="titleKey" value="" />
>         <put name="content" />
>         <putList name="leftLayoutBlocksList" container="true"
> description="Left layout block list">
>          <add value=".frontend.menu" />
>         </putList>
>         <putList name="leftLayoutIndexedBlocksList" container="true"
> description="Left layout indexed block list">
>        <add value=".frontend.indexedBlock" />
>         </putList>
>         <putList name="rightLayoutBlocksList" container="true"
> description="Right layout block list">
>         <add value=".loginForm" /> <-- i add this line
>    <add value=".searchForm" />
> <!--    <add value=".frontendSwitchLocaleForm" />  --> <-- .. and
> commenting this one
>    </putList>
>
> ....
> SNIPPET CODE END
>
> now if you look into <putList name="rightLayoutBlocksList" container="true"
> description="Right layout block list"> tag above i have add
>
> <add value=".loginForm" />
>
> and remove the
>
>  <add value=".frontendSwitchLocaleForm" />  
>
> by commenting it
>
> by doing this i'm expecting to get login form in the right block of the
> index page and the contentlocale switch blog won't appear, but it's not
> working...
> and the switch locale content form still appear
>
> i have build refresh it, empty my database but no result
> what do i miss here ?
>
> thanks
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...