Dotclear


Ignore:
Timestamp:
06/28/16 12:35:11 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add with_category attribute for tpl:Entries — fixes #2190

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/class.dc.template.php

    r3172 r3259  
    10951095     category  CDATA     #IMPLIED  -- get entries for specific categories only (multiple comma-separated categories can be specified. Use "!" as prefix to exclude a category) 
    10961096     no_category    CDATA     #IMPLIED  -- get entries without category 
     1097     with_category  CDATA     #IMPLIED  -- get entries with category 
    10971098     no_context (1|0)    #IMPLIED  -- Override context information 
    10981099     sortby    (title|selected|author|date|id)    #IMPLIED  -- specify entries sort criteria (default : date) (multiple comma-separated sortby can be specified. Use "?asc" or "?desc" as suffix to provide an order for each sorby) 
     
    11531154          } 
    11541155 
     1156          if (isset($attr['with_category']) && $attr['with_category']) { 
     1157               $p .= "@\$params['sql'] .= ' AND P.cat_id IS NOT NULL ';\n"; 
     1158          } 
     1159 
    11551160          if (isset($attr['no_category']) && $attr['no_category']) { 
    11561161               $p .= "@\$params['sql'] .= ' AND P.cat_id IS NULL ';\n"; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map