Hi everyone,
I’m using UncosNews and while I’m able to create Newsitems and they also show on the frontpage, I get a "not found" error everytime I click on the news title.
Any suggestions as to why that is?
Thanks in advance.
-
☆ A M B ☆
- 397 Posts
I was just testing it out on Revo 2.1.2 and I also got the same error.
It works however when you give it the id of the landing page, like this: &newsPage =`2`. It seems that if you do not assign a separate landing page, it will not work.
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
Hi,
I have just install uncosnews but do not know what to do know? It does not seem to give me any instructions. Can someone give me a hand?
-
☆ A M B ☆
- 397 Posts
Here are the instructions per the modx website:
Install the package with package manager and then:
Snippet: [[!UncosNews]]
Params (with default values)
&tpl=`rowTpl` - Chunk for news lists
&fulltpl=`fullTpl` - Chunk for one full news item
&sort=`id` - Which field to sort news (id:By ordinal, title: By title, desc: By short desc, text: By text, createdon: By creation date, editedon: By date editing)
&dir=`DESC` - Sort direction (ASC or DESC)
&limit=`0` - Number of news from news list (0 - no limit)
&newsPage=`` - ID News page, where is show full newsitem (default current page)
&expand=`true` - if set `0` - disables display the full news in this snippet call (useful if on the same page present news list and full news)
Placeholders:
[[+createdby]] - Author id
[[+user.fullname]] - Author fullname
[[+user.username]] - Author username (aka login)
[[+createdon:strtotime:date=`%d.%m.%Y`]] - creation date (with output filter for example, default format: YYYY-MM-DD)
[[+editedon:strtotime:date=`%d.%m.%Y`]] - date editing
[[+editedby]] - ID, who’s edited news
[[+url]] - url to extended news (full)
[[+title]] - Title
[[+desc]] - Short description
[[+text]] - Full news item text
Examples:
Say you have a news page with ID 55 and the left column contains 3 fresh headlines. Then for the withdrawal of the news stream in the column we call a snippet:
[[!UncosNews? & tpl = `NewsListTpl` & limit = `3`& newsPage =`55`& expand =`0`]]
Where &tpl - chunk to the news stream, &limit - the number of titles, &newsPage - news page, which will be displayed expanded news and &expand - the prohibition on the display of extended news in the left column. For the news page with ID 55 call the snippet will be quite simple:
[[!UncosNews? & tpl = `FullNewsListTpl` & fulltpl = `FullNewsItemTpl`]]
Where &tpl - chunk to news feed on the news page, &fulltpl - chunk to the one expanded news item.
Does that help?
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
-
☆ A M B ☆
- 397 Posts
No problem. Welcome to the forum!
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.