10 years ago
Topic
Hi everyone ! Happy new year also ! ;-)
It's been a long time since I post a question !!

Here my problem :

1 : I override seb_one template (positions/articles/item/mainbody.php) > ok it's working

2 : in the mainbody.php, I have

THE CODE IN MAINBODY.PHP
<li> <?php echo $title; ?></li> 

THE RESULT IN MY HTML PAGE

<li> title 1 </li>
<li> title 2 </li>
<li> title 3 </li>


3 .Now where do I put my div in order to wrap the li balise with ul ?? :
<ul>
<li> title 1 </li>
<li> title 2 </li>
<li> title 3 </li>

</ul>



notes : here is the code I have in my modified index.php seb_one template
<?php echo $cck->renderPosition( 'mainbody', '', $cck->h( 'mainbody' ) ); ?> 


Thanks you !!! ;-)



Get a Book for SEBLOD
10 years ago
1
Level 2
Hi zwergo thanks a lot for your time !!

Thanks for the links, i have seen some of them ...

I try to explain another way, here is my "full" mainbody.php, and it's ok it's working
<?php defined('_JEXEC') or die ; ?>

<?php $title=$cck->getValue('art_title');?>

<ul id="my-id">
<li> <?php echo $title; ?></li>
</ul>


here the result in html
<ul id="my-id">
<li> title 1</li>
</ul>

<ul id="my-id">
<li> title 2</li>
</ul>

<ul id="my-id">
<li> title 3</li>
</ul>



and what i would like to have

<ul id="my-id">
<li> title 1</li>
<li> title 2</li>
<li> title 3</li>
</ul>


Hope it's more clear !! ;-)

djidj






10 years ago
0
Level 4
Hi zwergo,
Thanks so much for the info, it's ok I can do what I wanted, thanks again !!
I just need some work to understand everything :) !


djidj

Get a Book for SEBLOD