Developer forum

Forum » CMS - Standard features » Content from news module not rendering on #2 site

Content from news module not rendering on #2 site

Mikkel Gunvald
Reply

Hello,

We have 3 sites on our server sharing a dynamicweb installation, but on one of our sites(and only that one) the news from the news module are not showing/rendering.

I don't really know where to start toubleshooting it. I have tried going though the configuration but I can see any difference on the sites that would explain why the news aren't rendering.

I'm running Dynamic Web 8.3.1.18, but I was running Dynamic Web 8.2.1.11 when the error started.

I hope someone is able to help me solve the problem. 

THX :)


Replies

 
Mikkel Ricky
Reply

The first thing I would do is to check that the templates on all three sites are the same.

Best regards,
Mikkel

 
Mikkel Gunvald
Reply

I have tried using the same templates without luck.

This is the template for one of the news modules:

<!--@LoopStart(NewsList)-->
<li>
  <span class="date"><!--@News:Date--></span>
  <a href="<!--@News:Href-->" class="heading"><!--@News:Heading--></a>
  <!--@If(NewsList.LoopCounter<>1)-->
    <a href="<!--@News:Href-->">
      <!--@News:Manchet-->
      <!--@News:FirstXChar-->
    </a>
  <!--@EndIf-->
  <!--@If Defined(News:SmallImageClean)-->
    <!--@If(NewsList.LoopCounter=1)-->
    <img src="Admin/Public/GetImage.ashx?Image=<!--@News:SmallImageClean-->&Width=220&Height=95&compression=100" alt="<!--@News:Heading-->" />
    <!--@EndIf-->
  <!--@EndIf(News:SmallImageClean)-->
  <hr />
</li>
<!--@LoopEnd(NewsList)-->

 
Mikkel Ricky
Reply

Try adding debug=true to the url to see what templates are actually being loaded.

 
Mikkel Gunvald
Reply

Uhh.. I like that option! Thx!

It seems that it's the [NewsCategoryAccess] field that is causing my problem. How do i set this field?

In my db the field is blank, which is fine.

[NewsCategory].[NewsCategoryAccess] + ',' LIKE '%,Domain Users,%')

On my other sites it is: 

[NewsCategory].[NewsCategoryAccess] = ""

   
Mikkel Gunvald
Reply

That is for setting permissions on each category, and I dont want that.  I want to remove the [NewsCategory].[NewsCategoryAccess] + ',' LIKE '%,Domain Users,%') because i dont want to control who are able to view the news.

 

 
Mikkel Ricky
Reply

Where do you see "[NewsCategory].[NewsCategoryAccess] + ',' LIKE '%,Domain Users,%')"? Send me an email (mri@dynamicweb.dk) if you prefer not to share the url in the forum.

Best regards,
Mikkel

 

You must be logged in to post in the forum