Page 3 of 3

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Fri Feb 11, 2011 7:54 am
by nicmare
you may want to check out cgblog. it has better built in archiving functions

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Fri Feb 11, 2011 8:19 am
by allan1412
Thanks - I use CGBlog a lot.
It's just that this is an existing site with many news articles already in place and I wanted to avoid moving them into a another module if possible.

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Mon Feb 14, 2011 9:31 am
by Gregor
I'm struggling to get the year/month feature into cgblog too. I got it all working in News, however since I moved all News items to CGBlog, this feature no longer works. I would be very happy if someone can help me out on this one.

Gregor

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Tue Nov 15, 2011 9:58 am
by nervino
Hi, using cmsms 1.10.1 I've got this error, in the content page where I put Peciura's template (there is only the template in that page and no other content):

Code: Select all

string(110) "Smarty error: [in content:content_en line 57]: [plugin] unknown tag - 'News' (core.load_plugins.php, line 198)" string(122) "Smarty error: [in content:content_en line 57]: syntax error: unrecognized tag 'News' (Smarty_Compiler.class.php, line 590)" [url]<a href="http://www.mysite.com/news.html%26news_date%3D2011">2011</a>[/url]
If I click the year 2011 link, I got:

Code: Select all

Not Found

The requested URL /news.html&news_date=2011 was not found on this server.
Any ideas how to solve this issue?

Below my system info:

----------------------------------------------

Cms Version: 1.10.1

Installed Modules:

CMSMailer: 2.0.2
FileManager: 1.2.0
MenuManager: 1.7.7
ModuleManager: 1.5.1
News: 2.12.3
Printing: 1.1.2
Search: 1.7
ThemeManager: 1.1.4
TinyMCE: 2.8.4
CMSPrinting: 1.0
MicroTiny: 1.1.1
FormBuilder: 0.7.1
CGSimpleSmarty: 1.4.10


Config Information:

php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 32000000
default_upload_permission: 664
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: it_IT.UTF-8
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.2-1ubuntu4.2
md5_function: On (Vero)
gd_version: 2
tempnam_function: On (Vero)
magic_quotes_runtime: Off (Falso)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (Falso)
file_uploads: On (Vero)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (Vero)
xml_function: On (Vero)


Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.41


----------------------------------------------

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Thu Nov 17, 2011 2:47 pm
by nervino
The first error: "unrecognized tag 'News'" is due to a case-sensitive call of the module, and can be solved correcting the template from:

Code: Select all

{News action='detail' detailtemplate='summary' articleid=$articleid}
to:

Code: Select all

{news action='detail' detailtemplate='summary' articleid=$articleid}
404 error, following the "year" link still remain unsolved..

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Tue May 29, 2012 3:29 pm
by joecannes
Hi,

I've set this up, and it works fine, but I have a question. I want to show only archived items.

I changed:

Code: Select all

{news action='detail'  articleid=$articleid sortby='news_date'}
to

Code: Select all

{news action='detail'  articleid=$articleid showarchive='1' s ortby='news_date'}
(by adding showarchive='1' )

to pick up only archived items, but it does not work, I am still seeing published articles.

Is there anything I can do to have this functioning?

Thanks,

JC

p.s. I am using CMS 1.8.2

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Tue May 29, 2012 8:34 pm
by Jos
It doesn't make sense to me to use parameter action="detail" in relation to both the showarchive and the sortby parameter.
(optional) action
"detail" - to display a specified articleid in detail mode.
joecannes wrote:p.s. I am using CMS 1.8.2
Time to upgrade ;)

Re: News Archives by Year/Month ( Tamplate + UDTs )

Posted: Mon Mar 25, 2013 10:01 pm
by zaidcrowe
any one got this working with 1.11.4 - it wont actually allow me to even submit the template...?