• 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  [ 8 posts ] 
Author Message
 Post subject: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 18, 2009 2:41 pm 
Offline
New Member

Joined: Wed Mar 18, 2009 2:38 pm
Posts: 5
Hi ich habe dieses Problem auf folgender seit:

www.next-it.ch

Kann mir jemand schritt für schritt erklären wie ich das beheben kann?

Habe bis jetzt die Lösung nur auf Englisch gefunden, aber ich komme mit dem nicht weiter.

gruss next


Top
 Profile  
 
 Post subject: Re: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 18, 2009 2:48 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Oct 25, 2006 8:29 pm
Posts: 4977
Location: Raalte, the Netherlands
Du sollst der dateformat nicht anrufen im {news.....},

sondern der summary-template und detail-template, wie:

Quote:
{$entry->postdate|cms_date_format:"%d-%m-%Y"}


mitgeben.

Ronny


Top
 Profile  
 
 Post subject: Re: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 18, 2009 2:51 pm 
Offline
New Member

Joined: Wed Mar 18, 2009 2:38 pm
Posts: 5
Ja aber wo, und wie kann ich das ändern??


Top
 Profile  
 
 Post subject: Re: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 18, 2009 2:53 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Oct 25, 2006 8:29 pm
Posts: 4977
Location: Raalte, the Netherlands
Du rufst jetzt {news dateformat=""} in dein Template oder Seite, da sollst du den dateformat wegnehmen.

Um den Datum richtig angezeigt zu bekommen, sollst du dann den News Summary-template un Detail-template, unter Content -> News, andern.

Ronny


Top
 Profile  
 
 Post subject: Re: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 18, 2009 3:06 pm 
Offline
New Member

Joined: Wed Mar 18, 2009 2:38 pm
Posts: 5
sorry aber bin zu blöde

bin jetzt auf

inhalte > news > Detail Template
da steht folgendes:

Code:
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
  {assign var='canonical' value=$entry->canonical}
{/if}

{if $entry->postdate}
   <div id="NewsPostDetailDate">
      {$entry->postdate|cms_date_format}
   </div>
{/if}
<h3 id="NewsPostDetailTitle">{$entry->title|escape:htmlall}</h3>

<hr id="NewsPostDetailHorizRule" />

{if $entry->summary}
   <div id="NewsPostDetailSummary">
      <strong>
         {eval var=$entry->summary}
      </strong>
   </div>
{/if}

{if $entry->category}
   <div id="NewsPostDetailCategory">
      {$category_label} {$entry->category}
   </div>
{/if}
{if $entry->author}
   <div id="NewsPostDetailAuthor">
      {$author_label} {$entry->author}
   </div>
{/if}

<div id="NewsPostDetailContent">
   {eval var=$entry->content}
</div>

{if $entry->extra}
   <div id="NewsPostDetailExtra">
      {$extra_label} {$entry->extra}
   </div>
{/if}

<div id="NewsPostDetailPrintLink">
   {$entry->printlink}
</div>
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}</div>
{/if}

{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
     <div class="NewsDetailField">
        {if $field->type == 'file'}
     {* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
          <img src="{$entry->file_location}/{$field->value}"/>
        {else}
          {$field->name}: {eval var=$field->value}
        {/if}
     </div>
  {/foreach}
{/if}


und das andere

inhalte > news > zusammenfassung Template
da steht folgendes:

Code:
<!-- Start News Display Template -->
{if $pagecount > 1}
  <p>
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">

{if $entry->postdate}
   <div class="NewsSummaryPostdate">
      {$entry->postdate|cms_date_format}
   </div>
{/if}

<div class="NewsSummaryLink">
<a href="{$entry->moreurl}" title="{$entry->title|escape:htmlall}">{$entry->title|escape}</a>
</div>

<div class="NewsSummaryCategory">
   {$category_label} {$entry->category}
</div>

{if $entry->author}
   <div class="NewsSummaryAuthor">
      {$author_label} {$entry->author}
   </div>
{/if}

{if $entry->summary}
   <div class="NewsSummarySummary">
      {eval var=$entry->summary}
   </div>

   <div class="NewsSummaryMorelink">
      [{$entry->morelink}]
   </div>

{else if $entry->content}

   <div class="NewsSummaryContent">
      {eval var=$entry->content}
   </div>
{/if}

{if isset($entry->extra)}
    <div class="NewsSummaryExtra">
        {eval var=$entry->extra}
   {* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
    </div>
{/if}
{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
     <div class="NewsSummaryField">
        {if $field->type == 'file'}
          <img src="{$entry->file_location}/{$field->value}"/>
        {else}
          {$field->name}: {eval var=$field->value}
        {/if}
     </div>
  {/foreach}
{/if}

</div>
{/foreach}
<!-- End News Display Template -->


was muss ich jetzt genau wie ändern?


Top
 Profile  
 
 Post subject: Re: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 18, 2009 4:29 pm 
Die Templates scheinen richtig zu sein, du musst nur mal noch den Aufruf des News-Moduls prüfen, ob da der Parameter dateformat='...' noch drin ist. Wurde in der aktuellen Version anders gelöst ...


Top
  
 
 Post subject: Re: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 18, 2009 4:37 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Oct 25, 2006 8:29 pm
Posts: 4977
Location: Raalte, the Netherlands
Schau dir mal dein normale Template an, also die an deine Seite ist verknupft, oder die Seite wo du {News} anrufst.

Ronny


Top
 Profile  
 
 Post subject: Re: Parameter dateformat is not known by module News dropped in
PostPosted: Wed Mar 25, 2009 3:04 pm 
Offline
New Member

Joined: Wed Mar 18, 2009 2:38 pm
Posts: 5
Danke hat funktioniert


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

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:  
Arvixe - A CMSMS Partner