#1
|
|||
|
|||
![]()
Hi, i want to display 2 columns in featured like this hack:
http://forum.mosets.com/showpost.php...44&postcount=7 Is there somebody who knows how to implement this on 1.0.4? Thank you, sorry about my english. |
#2
|
|||
|
|||
![]() Quote:
I was able to achieve the results from the .98 patch by modifying the following file: /components/com_hotproperty/views/featured/tmpl/default.php I tried uploading a patch (diff) file, but I'm not worthy, so I'll try to the narrative version: Code:
<?php defined('_JEXEC') or die('Restricted access'); ?> <div id="con_type1"> <div id="heading_Featured"><a href="<?php echo JRoute::_('index.php?option=com_hotproperty'); ?>"><?php echo JText::_('Pathway Main') . ' ' . JText::_('>') . ' '; ?></a><?php echo JText::_('Featured Title'); ?></div> <div id="list_properties"> <?php echo '<table border="0" cellpadding="0" cellspacing="0">'; $i=0; foreach($this->properties AS $p) { if(($i %2) == 0) { echo '<tr>'; } echo '<td width="40%" valign="top">'; $this->p = $p; echo $this->loadTemplate('property'); echo '</td>'; if(($i++ % 2) == 1){echo '</tr>';} } echo '</tr>'; echo '</table>'; ?> </div> <br class="clearboth" /> <div id="hp_pagecounter_bottom"> <div align="right"><?php echo $this->pagination->getPagesCounter(); ?></div> <br class="clearboth" /> <?php echo $this->pagination->getPagesLinks('index.php?option=com_hotproperty&view=featured'); ?> </div> </div> Hope this helps. Last edited by opt2bout; 03-02-2009 at 06:25 AM. Reason: cosmetic |
#3
|
|||
|
|||
![]()
Can you make the two column layout for the featured on the homepage (home view)? It doesn't has to be two column when all featured are visible, but just on the homepage.
|
#4
|
|||
|
|||
![]() Quote:
.. advsearch, agent, featured, home, search, type .. To apply the 2 columns hack, we had to make the same mod to each tmpl/default.php file. So I would say you just don't apply the changes to the other views, and you get the results you are looking for. Disclaimer: without any input from the developer, there is no guarantee that this 'template' structure will remain in future versions. I hope there will be some code added to allow us to just change the view structure within the back-end component settings. You will also need to look at your styles and make sure you account for the change in the number of columns and the css code display controls. Also, remember--this is a beta release at the time this was posted!! Last edited by opt2bout; 03-05-2009 at 04:29 AM. Reason: Correction |
#5
|
|||
|
|||
![]()
Thank you. I've modified the home view, and I got what I needed. Thanks again
|
#6
|
|||
|
|||
![]() Quote:
What version did you do this to? I am working with 1.0 and the code is not as shown here. I have been trying to find some direction with regard to this. I have read countless posts and spent lots of time researching the forums here only to come to the conclusion that there is no support for this product. Can someone prove me wrong? |
#7
|
|||
|
|||
![]() Quote:
http://www.mosets.com/forum/showthread.php?t=10566
__________________
Success in the long run Its not about the code its about the people and community that's make it! |
#8
|
|||
|
|||
![]()
The code sample I provided was from 1.0b4
|
#9
|
|||
|
|||
![]()
I have the two columns display working now, thank you.
Can you show me how I might be able to modify your code to crate even more columns? Or how I can just fill across and down until the page is full? |
#10
|
|||
|
|||
![]() Quote:
For 3 columns: try experimenting...hint: change the 2 to a 3 in the mod operation. Thus, if the modulus of 3 is zero, a new row would be created, and so on. You'll just have to play with the code in red to see what results you get and how you like it. Again, make sure to adjust your other styles and such to accommodate the "squish" factor ;-) |
#11
|
||||
|
||||
![]() Quote:
Maybe even add an URL? Stijn |
#12
|
|||
|
|||
![]()
I'd like to have properties displayed in 2 columns if possible.
Has anyone achieved this in version 1.0.0b4 in joomla 1.5?? Thanks in advance for any help. |
#13
|
|||
|
|||
![]() Quote:
|
#14
|
|||
|
|||
![]()
You may have mistyped a semicolon or have another syntax issue. Normally when the entire page renders blank that is the case for me.
|
#15
|
|||
|
|||
![]() Quote:
A screenshot is available here http://justphp.net/coding-jobs |
Thread Tools | Search this Thread |
Display Modes | |
|
|