On the frontpage I have the News-box next to the BannerImage. But when I go to other pages, such as Virksomheden, the 'umbBusinessFrontpageNews its empty..
If I then replace that macro with 'umbNewsListItems', it returns the subpages for the current page - instead of the news. Can some one please help me out here.?
Ok, so problem lies in the for-each which will always display the child nodes of the current node being requested on the frontend... you'll have to change that
So, basically two changes: always traverse up your tree to find a node at level = 1 (which will be your home page) and from there, find any news item nodes (regardless of their level - hence the //)
-> Have to replace 'propertyAliasOfNewsItem' with the alias of your news item document type
First traverse up the tree to find a node at level = 1 (probably your home page) and get all child nodes (regardless of level - hence the //) of type aliasOfNewsItem -> Have to replace 'aliasOfNewsItem' with the alias of the document type for your news item.
Ok, weird behaviour was due to server time zone settings change, so that's solved :p
you don't see any news items on your news page.. i guess you're using the wrong document type alias, shouldn't it be the alias of the news item instead of the news area, as that's the only item being outputted?
News-box issue
Hello,
Im working on an Umbraco 4.7 solution and have installed the Business site Starterkit.
http://master8.v5.baseshop.dk/
On the frontpage I have the News-box next to the BannerImage. But when I go to other pages, such as Virksomheden, the 'umbBusinessFrontpageNews its empty..
If I then replace that macro with 'umbNewsListItems', it returns the subpages for the current page - instead of the news. Can some one please help me out here.?
/Djan
Djan,
Sure we can help, can you post your xslt, so we can chime in on that?
Cheers,
/Dirk
This is my umbNewsListItems
Ok, so problem lies in the for-each which will always display the child nodes of the current node being requested on the frontend... you'll have to change that
So, basically two changes: always traverse up your tree to find a node at level = 1 (which will be your home page) and from there, find any news item nodes (regardless of their level - hence the //)
-> Have to replace 'propertyAliasOfNewsItem' with the alias of your news item document type
Hope this helps.
Regards,
/Dirk
Holy, my post didn't get posted... Damn!
First traverse up the tree to find a node at level = 1 (probably your home page) and get all child nodes (regardless of level - hence the //) of type aliasOfNewsItem -> Have to replace 'aliasOfNewsItem' with the alias of the document type for your news item.
Hope this helps.
Cheers,
/Dirk
Huh, pretty weird behaviour, my posts are listed before you've posted your xslt... which was my starting point for an answer.... will report that.
/Dirk
And my umbBusinessFrontNews:
Really wierd behavior yes.
I posted this instead of the XSLT For-each :
But now I just dont see any posts on my News-page?
http://master8.v5.baseshop.dk/nyheder.aspx
Ok, weird behaviour was due to server time zone settings change, so that's solved :p
you don't see any news items on your news page.. i guess you're using the wrong document type alias, shouldn't it be the alias of the news item instead of the news area, as that's the only item being outputted?
Cheers,
/Dirk
Aha okay :)
Yes ofcourse, I switched it to umbNewsArticle and it posts like a charm! :) Thanks so much!
Another question - how do I make it only put out like 256 char's?
is working on a reply...