Re: Template question
Etienne Hilson <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Thapa Damar wrote: > Hi, > > The following is a part of a table: > <tr valign="top"> > <td valign="top" align="left" width="35%"> > <span class="Dir::Get_Data.HomeMenu.menu"></span> > [Menu]</td> > <td valign="top" width="65%" align="left"> > <span > class="Dir::Get_Data.MainHome.mainText"></span> > [mainText]</td> > </tr> > It does not work, any thing wrong with the above html template? > > Thanks, > > Damar > > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda > > Try this one : <tr valign="top"> <td valign="top" align="left" width="35%"> <span class="Dir::Get_Data.HomeMenu.menu">[Menu]</span> </td> <td valign="top" width="65%" align="left"> <span class="Dir::Get_Data.MainHome.mainText"> [mainText]</span> </td> </tr> I This is the text between the tags with a directive that will be replaced Also possible : <tr valign="top"> <td valign="top" align="left" width="35%" class="Dir::Get_Data.HomeMenu.menu"> [Menu] </td> <td valign="top" width="65%" align="left class="Dir::Get_Data.MainHome.mainText""> [mainText] </td> </tr> be careful with your example, you need TWO models to handle the content data [Menu] and [MainText] The first model has to return the name "HomeMenu" and the second "MainHome" in their getName() method. I hope I was clear :s Etienne Hilson