Pora Joomla! 1.5x patobulinimų

Locked
User avatar
netnet
I've been banned!
Posts: 46
Joined: Sun Nov 25, 2007 11:59 am
Contact:

Pora Joomla! 1.5x patobulinimų

Post by netnet » Sat Jul 05, 2008 6:24 pm

Pirmas
Kam teko naudoti Category List Layout (category table), susidure su problema, kad Joomloje by default rodo visa kontenta.
Keiciame koda components/com_content/views/category/view.html.php , apie 68 eilute pakeiciame i:

Code: Select all

      if ($layout == 'blog') {
        if($limit ==  0) $limit = $intro + $leading + $links;
      }
      else {
        if($limit ==  0) $limit = 20;
      }
Siuoa atveju rodys 20, skaiciu galima keisti savo nuoziura.


Antras
Image
Categorijos navigacijoje norint matyti ne tik next, previous, bet salia ir kontent pavadinima keiciame koda plugins/content/pagenavigation.php:

1. Eilute 109

Code: Select all

 $query = 'SELECT a.id,'
i

Code: Select all

$query = 'SELECT a.id,a.title,'  
2.

Eilute153

Code: Select all

       $row->prev = JRoute::_('index.php?option=com_content&view=article&catid='.$row->prev->catslug.'&id='.$row->prev->slug); 
i

Code: Select all

        $row->prevTitle=$row->prev->title;
          $row->prev = JRoute::_('index.php?option=com_content&view=article&catid='.$row->prev->catslug.'&id='.$row->prev->slug); 
3.

Eilute 159

Code: Select all

      $row->next = JRoute::_('index.php?option=com_content&view=article&catid='.$row->next->catslug.'&id='.$row->next->slug); 
i

Code: Select all

      $row->nextTitle=$row->next->title;
      $row->next = JRoute::_('index.php?option=com_content&view=article&catid='.$row->next->catslug.'&id='.$row->next->slug);
4.

Eilute 177

Code: Select all

. JText::_( '<' ) . $pnSpace . JText::_( 'Prev' ) . '</a> 
i

Code: Select all

       .$row->prevTitle. JText::_( '<' ) . $pnSpace . JText::_( 'Prev' ) . '</a> 
5. Eilute 196

Code: Select all

      . JText::_( 'Next' ) . $pnSpace . JText::_( '>' ) .'</a> 
i

Code: Select all

      . JText::_( 'Next' ) . $pnSpace . JText::_( '>' ).$row->nextTitle .'</a>

Prisegiau tuos du failus su pakeistu kodu:
Last edited by netnet on Sun Jul 06, 2008 7:09 am, edited 2 times in total.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

Stasys
Joomla! Ace
Joomla! Ace
Posts: 1318
Joined: Wed Aug 17, 2005 11:06 pm
Location: Lithuania
Contact:

Re: Pora Joomla! 1.5x patobulinimų

Post by Stasys » Sat Jul 05, 2008 7:23 pm

perkeltas i tam skirta foruma, susitvarkyk subject
Lithuanian Joomla! Community http://www.lithuanianjoomla.com
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom

User avatar
netnet
I've been banned!
Posts: 46
Joined: Sun Nov 25, 2007 11:59 am
Contact:

Re: Pora Joomla! 1.5x patobulinimų

Post by netnet » Sun Jul 06, 2008 6:25 am

susitvarkyk subject
Kas blogai?
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

Stasys
Joomla! Ace
Joomla! Ace
Posts: 1318
Joined: Wed Aug 17, 2005 11:06 pm
Location: Lithuania
Contact:

Re: Pora Joomla! 1.5x patobulinimų

Post by Stasys » Mon Jul 07, 2008 6:51 pm

subject ivardink ka konkreciai tobulini
Lithuanian Joomla! Community http://www.lithuanianjoomla.com
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom

User avatar
netnet
I've been banned!
Posts: 46
Joined: Sun Nov 25, 2007 11:59 am
Contact:

Re: Pora Joomla! 1.5x patobulinimų

Post by netnet » Fri Jul 11, 2008 5:43 am

Joomla! 1.5.4 Category List Layout problema isspresta.

Skirtingai nuo 1.5.3, 1.5.4 pradejo naudoti datos formata LC2 (data ir laikas).
Norint, pvz., kad on front page rodytu Created Date be laiko, reikia pakeisti LC2 i LC1 (apie 100 eiluteje) faile:
components/com_content/views/frontpage/tmpl/default_item.php
Kad laiko nerodytu ir kitur, ta pati padaryti:
components/com_content/views/article/tmpl/default.php
components/com_content/views/category/tmpl/blog_item.php
components/com_content/views/section/tmpl/blog_item.php
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

User avatar
Dezigner
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Tue Mar 14, 2006 8:53 am

Re: Pora Joomla! 1.5x patobulinimų

Post by Dezigner » Wed Sep 17, 2008 8:57 am

Smagumelis, gal aplamai kas zinot kur daugiau tokiu maloniu dalykeliu galima rast...

Netnet, aciu
http://www.webdesigner.lt/forum/ - Naujas forumas web dizaineriams lietuviškai ;)


Locked

Return to “Joomla! 1.5”