[pLog-svn] articles categories

Ahmad Saleh ahmadfds at gmail.com
Mon May 28 03:16:55 EDT 2007


I checked that, it's updated correctly.
just replace this line:
{if $category->getNumArticles() > 0}
with this one:
{if $category->getNumAllArticles() > 0}

Regards,
     Ahmad

On 5/28/07, Paul Westbrook <paul at westbrooks.org> wrote:
>
> Hello,   Shouldn't the correct fix to make sure that
> the num_published_articles field of the articles_categories table gets
> updated correctly when deleting posts?
>
> --Paul
>
>
> On May 27, 2007, at 10:42 PM, Ahmad Saleh wrote:
>
> As I said before, when you delete all posts in the same category this
> category will show you that it has (0) posts [in editarticlecategories
> page].
>
> when i look at editarticlecategories.template at line 67 I saw that you
> check first if there is any published articles {if
> $category->getNumArticles() > 0} then VIEW ALL POSTS {$category->
> getNumAllArticles()} else print (0).
>
> On 5/27/07, Oscar Renalias <oscar at renalias.net> wrote:
> >
> > Is that supposed to be a patch?
> >
> > On 27 May 2007, at 14:16, Ahmad Saleh wrote:
> >
> > > editarticlecategories.template
> > > {if $category->getNumArticles() > 0} get published articles only
> > >     <td>{check_perms perm=view_articles}<a href=" admin.php?
> > > op=editPosts&amp;showCategory={$category->getId()}
> > > &amp;showStatus=0&amp;showMonth=-1">{/check_perms}({$category->
> > > getNumAllArticles()}){check_perms perm=view_articles}</a>{/
> > > check_perms}</td>
> > > _______________________________________________
> > > pLog-svn mailing list
> > > pLog-svn at devel.lifetype.net
> > > http://limedaley.com/mailman/listinfo/plog-svn
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
>
> --
>
> Paul Westbrook
>
> paul at westbrooks.org
>
> <http://www.westbrooks.org>
>
>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://limedaley.com/pipermail/plog-svn/attachments/20070528/02ea3381/attachment.htm 


More information about the pLog-svn mailing list