mini998
(Ima Silva)
November 19, 2013, 11:52am
1
I am developing a property website and I need to display property details inside a page . each property have several variables as well as an image. I need to show each property inside a box which has CSS styling. All the properties have the same template/styling.
I am not asking for exact code ,it would be great if someone can guide me in the right direction.
konapaz
(Konapaz)
November 19, 2013, 12:20pm
2
If I understood well you want to styling the text or other tag
check this
http://www.yiiframework.com/doc/api/1.1/CTextHighlighter
mini998
(Ima Silva)
November 19, 2013, 12:50pm
3
Thanks
Can I generate something like below with yii? <li> node (just after top <ul> ) represent a property .
if not can I place <li> node (just after top <ul> ) on another php page and echo when I want them to appear with vales form the database?
<ul>
<li>
<a><img src="" /></a>
<div>
<p>xxx</p>
<ul>
<li><p>xxx</p></li>
</ul>
<div>
<a>mmm</a>
</div>
<br/>
</div>
</li>
<li>
<a><img src="" /></a>
<div>
<p>xxx</p>
<ul>
<li><p>xxx</p></li>
</ul>
<div>
<a>mmm</a>
</div>
<br/>
</div>
</li>
</ul>
konapaz
(Konapaz)
November 19, 2013, 1:31pm
4
mini998:
Thanks
Can I generate something like below with yii? <li> node (just after top <ul> ) represent a property .
if not can I place <li> node (just after top <ul> ) on another php page and echo when I want them to appear with vales form the database?
<ul>
<li>
<a><img src="" /></a>
<div>
<p>xxx</p>
<ul>
<li><p>xxx</p></li>
</ul>
<div>
<a>mmm</a>
</div>
<br/>
</div>
</li>
<li>
<a><img src="" /></a>
<div>
<p>xxx</p>
<ul>
<li><p>xxx</p></li>
</ul>
<div>
<a>mmm</a>
</div>
<br/>
</div>
</li>
</ul>
Please give us a small example (with html code) that you want to achieve (before and after of the action)
mini998
(Ima Silva)
November 19, 2013, 1:41pm
5
Thanks , above HTML is what I want to achieve.
Can I use CListView? I need some <div> components inside the top <UL>, and a <UL> inside the top <UL>.