• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Fri Feb 11, 2011 7:54 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Sat Aug 25, 2007 9:55 am
Posts: 1186
Location: Berlin
you may want to check out cgblog. it has better built in archiving functions


Top
 Profile  
 
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Fri Feb 11, 2011 8:19 am 
Offline
Forum Members
Forum Members

Joined: Wed May 21, 2008 9:14 pm
Posts: 20
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.


Top
 Profile  
 
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Mon Feb 14, 2011 9:31 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Thu Mar 23, 2006 9:25 am
Posts: 1425
Location: The Netherlands
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


Top
 Profile  
 
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Tue Nov 15, 2011 9:58 am 
Offline
Power Poster
Power Poster

Joined: Sun Dec 28, 2008 12:15 pm
Posts: 365
Location: Roma, Italy
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:
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:
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


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


Top
 Profile  
 
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Thu Nov 17, 2011 2:47 pm 
Offline
Power Poster
Power Poster

Joined: Sun Dec 28, 2008 12:15 pm
Posts: 365
Location: Roma, Italy
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:
{News action='detail' detailtemplate='summary' articleid=$articleid}

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


404 error, following the "year" link still remain unsolved..


Top
 Profile  
 
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Tue May 29, 2012 3:29 pm 
Offline
Forum Members
Forum Members

Joined: Mon Nov 26, 2007 5:00 pm
Posts: 92
Location: Montreal, Quebec
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:
{news action='detail'  articleid=$articleid sortby='news_date'}


to

Code:
{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


Top
 Profile  
 
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Tue May 29, 2012 8:34 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3652
Location: The Netherlands
It doesn't make sense to me to use parameter action="detail" in relation to both the showarchive and the sortby parameter.
Quote:
(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 ;)

_________________
Get nice guestbook messages from your site visitors with the brand new Gbook module.
Integrate Piwik Web Analytics in your site admin with the Piwik module.
Extend your global site settings with the Custom Global Settings module.
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here
Announcement: The Fifth Dutch CMS Made Simple Workshop coming up?


Top
 Profile  
 
 Post subject: Re: News Archives by Year/Month ( Tamplate + UDTs )
PostPosted: Mon Mar 25, 2013 10:01 pm 
Offline
Forum Members
Forum Members

Joined: Wed Jun 10, 2009 3:43 pm
Posts: 39
any one got this working with 1.11.4 - it wont actually allow me to even submit the template...?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting