News Archives by Year/Month ( Tamplate + UDTs )
Re: News Archives by Year/Month ( Tamplate + UDTs )
you may want to check out cgblog. it has better built in archiving functions
Re: News Archives by Year/Month ( Tamplate + UDTs )
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.
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 )
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
Gregor
Re: News Archives by Year/Month ( Tamplate + UDTs )
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):
If I click the year 2011 link, I got:
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
----------------------------------------------
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]
Code: Select all
Not Found
The requested URL /news.html&news_date=2011 was not found on this server.
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 )
The first error: "unrecognized tag 'News'" is due to a case-sensitive call of the module, and can be solved correcting the template from:
to:
404 error, following the "year" link still remain unsolved..
Code: Select all
{News action='detail' detailtemplate='summary' articleid=$articleid}
Code: Select all
{news action='detail' detailtemplate='summary' articleid=$articleid}
Re: News Archives by Year/Month ( Tamplate + UDTs )
Hi,
I've set this up, and it works fine, but I have a question. I want to show only archived items.
I changed:
to
(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
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'}
Code: Select all
{news action='detail' articleid=$articleid showarchive='1' s ortby='news_date'}
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 )
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.
Time to upgradejoecannes wrote:p.s. I am using CMS 1.8.2
Re: News Archives by Year/Month ( Tamplate + UDTs )
any one got this working with 1.11.4 - it wont actually allow me to even submit the template...?