Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Odd behavior from News Page. View modes: 
User avatar
Member
Member
vcarter - 7/31/2013 3:00:19 PM
   
Odd behavior from News Page.
Using a standard repeater using the path property to get a list of news articles. Used the News with Summary as my base page template.

News is listed properly but when clicking the link for details I am redirected to a blank .aspx page. Repeater is using the out of box transformations for the list and selected item.

Any ideas as to what I may have altered to cause this behavior?

Thank you.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 7/31/2013 3:29:17 PM
   
RE:Odd behavior from News Page.
Hello,

What are the Repeater properties, especially Selected item transformation?
What is the URL if you hover one the news link in the browser?

Best Regards,
Martin Danko

User avatar
Member
Member
vcarter - 8/1/2013 10:30:43 AM
   
RE:Odd behavior from News Page.
It seems I am having some very strange path issues. My tree looks like this:

Root
--Media
----NewsRoom
--------2013
----------------Custom News Document

Path: /Media/newsroom/%

Document Types: custom.news

Transformation: custom.news.NewsList

Selected item transformation: custom.news.NewsDetail

Custom News Inherits fields from the news document type.

Now I am having trouble even getting the list to display. Definitely think I borked some settings somewhere.

User avatar
Member
Member
vcarter - 8/2/2013 9:43:37 AM
   
RE:Odd behavior from News Page.
Update: My news listings seems to appear and disappear randomly. Starting to think there is something odd with caching. Anyone else have an issue like this.

Detail is still not working. I just get sent directly to the news document and no content is displayed.

The site is hosted externally and lives in an Azure environment. Could I be having connection/syncing issues?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/2/2013 12:35:11 PM
   
RE:Odd behavior from News Page.
If you're unsure if cache is causing a problem, go to Site Manager>Dashboard and clear the cache. If that doesn't resolve it, restart the app. In your webpart to display the events, set the cache value to 0 vs. a blank value, this means it will not be cached at all. Found that out after nearly 3 hours of fighting with the Random Document Repeater webpart (there was nothing random about it until I set that property).

Have you checked your event logs? Could there be a possibility that someone has modified the transformation and maybe have some incorrect syntax in there? That should throw an error but not always seen on a page but for sure logged in the event log.

User avatar
Member
Member
vcarter - 8/2/2013 12:54:14 PM
   
RE:Odd behavior from News Page.
Trying this now. There is definitely something odd with the environment. I am developing remotely in the clients environment, but I have an on site installation of the dev version of kentico. Set up my pages/document structure just as in Kentico with the exception of using a custom news item(going to try that next) that inherits all of its base information from the standard news document type. Everything, including the selected item transformartion works perfectly.

On the client site, the documents all link to the correct page, but show up blank. As if they are not using the parent template for their display.

Thanks for the feedback.

User avatar
Member
Member
vcarter - 8/2/2013 2:29:43 PM
   
RE:Odd behavior from News Page.
Further Update. When I preview a news item on my local development site, the design view shows the same view as the parent page. When I go to the page tab, I see a preview of the news item.

Now when I do this on the both the page and design views are blank. The custom news item does not seem to be inheriting anything from the parent pages. Settings all seem the same. Really not sure what is happening. Just strange, but it definitely gives me a direction to go in.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/2/2013 6:02:38 PM
   
RE:Odd behavior from News Page.
Have you turned on debugging in CMSSiteManager? This is a hidden feature many developers don't know about or don't use. It displays all the queries, macros, cookies, etc on the page rendered. Pretty awesome feature that might help you resolve the issue.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/4/2013 1:46:42 AM
   
RE:Odd behavior from News Page.
Hi,
Debugging options is a great idea. However I would also check e.g. the difference in the Visual inheritance settings.

Best regards,
Juraj Ondrus

User avatar
Member
Member
vcarter - 8/5/2013 12:52:23 PM
   
RE:Odd behavior from News Page.
Thanks for the debugging information. One thing I just noticed. I created another page, and used the default news and summary template, created a sub folder, and added a news article.

Same behavior. No detail view. Just goes to a blank page. I changed none of the default settings.

Very strange. I could see this happening with my custom news, but the default news type should not be affected. Will continue to debug.

User avatar
Member
Member
vcarter - 8/5/2013 1:25:57 PM
   
RE:Odd behavior from News Page.
Definitely an inheritance issue. When I view the source of my detail page the content section is blank. All of the settings seem to be correct however the actual news documents are not inheriting the web part needed for display.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/6/2013 8:58:33 AM
   
RE:Odd behavior from News Page.
Hi,

Could you please describe the visual inheritance settings and also the page templates used for each level and page and what web parts are on these page templates?

Have you tried using the sample corporate site as a reference to see how it is done there?


Best regards,
Juraj Ondrus

User avatar
Member
Member
vcarter - 8/6/2013 9:29:37 AM
   
RE:Odd behavior from News Page.
I am trying to follow the corporate site settings. I am just missing something. I will keep trying to get this squared away. Unsure why this behavior is affecting default document types. Wondering if there is something wrong with my master page. Or my level 1 templates.

User avatar
Member
Member
vcarter - 8/6/2013 10:05:48 AM
   
RE:Odd behavior from News Page.
When I set my news template "Inherit Content" to Select Inherited Levels(Only Level 2 Selected) With all document nodes Inherit Content are set to Use page template settings.

I get my news listings with the proper detail display. However my site master page is not being included on any of the pages. I change the template setting for Select Inherited Levels(Level 0 and Level 2) then the lisiting pages show the masterpage and the lists, but the detail pages are blank.

On the corporate site, the template Inherit Content setting is set to inherit all. However News is a level 1 node on that site.

- Root
-- Company
---- News
-------- News Item

I have two additional node levels

- Root
-- Media
---- Newsroom
-------- 2013
------------- News Item

So the problem is that when I set the template to Inherit All like the Corporate site, the content from the top level media page shows up instead of my news listing. Thus I tried to pick my inherited levels as above. Just can't get the masterpage and the detail page to work at the same time.

Man, I hope that makes sense LOL. I feel like such a noob...

User avatar
Member
Member
vcarter - 8/6/2013 9:09:29 AM
   
RE:Odd behavior from News Page.
Ok, this is definitely a visual inheritance problem. I cannot for the life of me seem to get both the masterpage and my detail page content to display at the same time. My listing pages are fine, but whenever I go to the detail(actual documeny) page, the settings either just show the masterpage or just the detail page.

As above my structure is

Root
--Media
----Newsroom
--------2013
----------------News Item

- Root is the Masterpage.
- Media uses a standard sub page template that is not passed down to Newsroom.
- Newsroom is the news list display template, it's inherit content settings come from the template.
- 2013 Inherits from parent as well and has inherit content settings the from the template
- News items are the same as their parent.

What should my template settings be to get the correct visual inheritance passed down the line so that all levels including the detail get the correct display as well as are wrapped in the masterpage. I have no idea how this got messed up, but it is ridiculously frustrating to feel like I am one setting away from solving this. Any help would be appreciated.

User avatar
Member
Member
vcarter - 8/6/2013 9:19:18 AM
   
RE:Odd behavior from News Page.
One additional note. This behavior is happening no matter what type of document I make. Using default Press release page templates, following the same structure I get the same result. No detail being displayed unless I change the inheritance settings. Is it because my items are 3 levels deep?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/6/2013 9:54:28 AM
   
RE:Odd behavior from News Page.
What doc types are they? I've found if I have something like this:

<root>/Folder/Page

I have to set the inheritance on the Page's page template to inherit only master.

User avatar
Member
Member
vcarter - 8/6/2013 10:11:15 AM
   
RE:Odd behavior from News Page.
They are news custom news items FroggEye, they inherit all the fields from news and then add a few peripheral fields. However they are essentially standard news documents.

I agree though it is a matter of setting the right combination of inheritance. I am trying to get to a base starting point so that I can work out the correct settings for my node structure.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/6/2013 1:02:39 PM
   
RE:Odd behavior from News Page.
So is this correct?

Root
--Media (cms.menuitem)
----Newsroom (cms.menuitem)
--------2013 (cms.menuitem)
----------------News Item (cms.event)

User avatar
Member
Member
vcarter - 8/6/2013 1:14:39 PM
   
RE:Odd behavior from News Page.
Root
--Media (cms.menuitem)
----Newsroom (cms.menuitem)
--------2013 (cms.menuitem)
----------------News Item (custom.news)

But yes that is the correct tree structure. I have worked it out to the point where the only thing not working is the masterpage inclusion on the News Item display. This is still an either or(either I get the masterpage when I click it with no detail or I get the detail and no masterpage)

Inheritance Settings Per Node

--- Media (uses a different template)
----Newsroom (All Culture Versions use same template(sub-news) Inherit only Master
--------2013 (All Culture Versions use same template(sub-news) Inherit only Master
----------------News Item (default setting) Inherit From Parent and Use Template Settings

sub-news template settings:

Inherit Content: Do not inherit Any content(any other setting causes the masterpage to display but not the news item, listing pages seem unaffected)

Result:

Newsroom and 2013 display the listings and the masterpage
News Item(when clicked from listing) only shows the sub-news template but it does retain the styles from the site master, which is odd.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/7/2013 1:02:57 AM
   
RE:Odd behavior from News Page.
Hi,

I think that the best way at this point would be exporting the site and sending it to support@kentico.com and refer to me or this forum thread (or, sending URL and access credentials would help too). So, I will import it and see the exact structure and settings you have. I believe we are missing something small here.

Thank you.

Best regards,
Juraj Ondrus

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/8/2013 9:30:28 AM
   
RE:Odd behavior from News Page.
Hi,

Somebody else is having almost the same issue and they were able to find the fix in this thread

Please, check it out.

Best regards,
Juraj Ondrus

User avatar
Member
Member
vcarter - 8/8/2013 10:25:18 AM
   
RE:Odd behavior from News Page.
Thank you for the link. They were not having quite the same problem as me but it pointed me in the right direction.

My master page has a page placeholder for subpages on it. That page place holder was set to only show for document type: CMS.MenuItem

That explains why no actual document details were working. Not sure how that got set, but I am glad to finally know what was wrong. Once that was changed I was able to adjust the visual inheritance settings accordingly.

Thanks to everyone who contributed.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/9/2013 1:31:42 AM
   
RE:Odd behavior from News Page.
Hi,

Thank you for the solution. I was thinking about the page placeholder - but I ruled it out since the listing page worked. I would never in my life think about the show for document types property :-)

Best regards,
Juraj Ondrus

User avatar
Member
Member
vcarter - 8/9/2013 8:18:43 AM
   
RE:Odd behavior from News Page.
"I would never in my life think about the show for document types property :-)"

That makes me feel better coming from an expert LOL, I was truly stumped. Just goes to show how granular kentico can be.