Build customized page list widgets
foxhound |
|
---|---|
Wow, thank you both very much! That has been very helpfull. {PHP|pagelist('pagelist.random_news',20,'RAND()','UNIX_TIMESTAMP() < (page_date + 7889231)','news','','','TRUE','','TRUE')}
And this gives you all most read pages from the last month of a certain category (and sub categories) (10 items per page): {PHP|pagelist('pagelist.popular_news',10,'page_count DESC','UNIX_TIMESTAMP() < (page_date + 2629743)','mycat','','','true','','FALSE')} I know most of you wont have any use for it, but maybe it helps someone like me someday ;)
Added 17 hours later: Is it possible to also make this work with comments? I tried things like this: {PAGE_ROW_COMMENTS_COUNT|pagelist('pagelist.authorpage','5','$this DESC','','news','','','TRUE','','')} But it keeps giving sql errors. I also tried this plugin: http://www.cotonti.com/extensions/navigation-structure/581 but it seems to no longer work. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
|
Bu gönderi foxhound tarafından düzenlendi (2014-01-17 10:54, 11 yıllar önce) |