issues with News block
-
- New Member
- Posts: 5
- Joined: Thu Jun 18, 2015 7:00 pm
issues with News block
Hi, i need some help from you all. I am not a developer or web designer. I came across this CMS system and find it easier for me to build website. I am currently having issues with new sections. I have 2 different articles under 2 different categories, my assumption is that the home page should show the article under selected category only but both articles shows for both categories at same time. Can anyone please direct me to the settings or how to fix it.
thansks
thansks
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: issues with News block
You can filter out messages by using the category parameter. Take a look in the module help
-
- New Member
- Posts: 5
- Joined: Thu Jun 18, 2015 7:00 pm
Re: issues with News block
Thanks for reply power poster however i checked module help and it only gives me this answer that dont tell me what to do exactly for user who come to my website to look at the news based on category not all. In module i could only find this as help:
(optional) category="category" - Used in the summary view to display only items for the specified categories. Use * after the name to show children. Multiple categories can be used if separated with a comma. Leaving empty, will show all categories. This parameter also works for the frontend submit action, however only a single category name is supported.
(optional) category="category" - Used in the summary view to display only items for the specified categories. Use * after the name to show children. Multiple categories can be used if separated with a comma. Leaving empty, will show all categories. This parameter also works for the frontend submit action, however only a single category name is supported.
Re: issues with News block
What do you mean by "selected category"? Unless you have in place some sort of a mechanism to "select" a category, the module doesn't have a way to be aware of which is the "selected category"...bramptonian wrote:I have 2 different articles under 2 different categories, my assumption is that the home page should show the article under selected category only but both articles shows for both categories at same time.
We need more data to be able to help... such as how are you providing users the possibility to select a category.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: issues with News block
It isn't very clear to me what you actually want to do, so I'm making a guess. Take a look at these tips form Rolf, http://www.cmscanbesimple.org/blog&tag=tabs
-
- New Member
- Posts: 5
- Joined: Thu Jun 18, 2015 7:00 pm
Re: issues with News block
@ startmees - the link you have posted that's exactly what i want. Article under relevant tabs and the tab you click only shows you the articles related to that Tab
@ jo Morg
After i installed system i created 2 categories under News and posted one article under each. Right after creation categories the shows on page. Now since they have one article each and by default the first is selected (which is not a issue) it should only show 1 articles posted under that category. The second article should only show when its relevant category is clicked.
May be this is how the system is built, but my understanding is that if all articles have to show regardless of the category in the news block than category is not needed
@ jo Morg
After i installed system i created 2 categories under News and posted one article under each. Right after creation categories the shows on page. Now since they have one article each and by default the first is selected (which is not a issue) it should only show 1 articles posted under that category. The second article should only show when its relevant category is clicked.
May be this is how the system is built, but my understanding is that if all articles have to show regardless of the category in the news block than category is not needed
Re: issues with News block
bramptonian wrote:@ startmees - the link you have posted that's exactly what i want. Article under relevant tabs and the tab you click only shows you the articles related to that Tab
Those are two different things... that's why we need people to explain what it is that they are aiming at.bramptonian wrote:May be this is how the system is built, but my understanding is that if all articles have to show regardless of the category in the news block than category is not needed
The link that startmees posted is to articles that give samples on how to use tabbed content (and news can be used too) but the content is preloaded and differentiated per tab. Which means that in each tab you'll need to call the news tag, once for each category. And each call will have the category parameter set to the category you need to show. But the image you posted could be of anything from tabs to a tabbed menu, Tags, etc... we cannot guess. You'd have been better off posting the template where you have the call to news. In any case, if those are just the two categories you just have to hard code {News category='General'} on one tab and {News category='Registration'} on the other. Careful that the parameter is case sensitive...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
-
- New Member
- Posts: 5
- Joined: Thu Jun 18, 2015 7:00 pm
Re: issues with News block
Hi again Jo,
I am using simplex template and with in the simplex template this is the line of code that displays news. I played with number value dont do anything. if i add category='General' to the code out of 2 only general displays and other one disappears.
<aside class='sidebar grid_4 pull_8'>
{* sample of using News Module tag for summary of latest two articles *}
{news summarytemplate='Summary_Simplex' number='2' detailpage='news' detailtemplate='Simplex_Detail' }
</aside>
I am so sorry taking everyones time but as said i am not a developer just trying to build up my website. all i need is when click general only articles under general shows and when click registration only articles under registration shows.
Thanks a lot
I am using simplex template and with in the simplex template this is the line of code that displays news. I played with number value dont do anything. if i add category='General' to the code out of 2 only general displays and other one disappears.
<aside class='sidebar grid_4 pull_8'>
{* sample of using News Module tag for summary of latest two articles *}
{news summarytemplate='Summary_Simplex' number='2' detailpage='news' detailtemplate='Simplex_Detail' }
</aside>
I am so sorry taking everyones time but as said i am not a developer just trying to build up my website. all i need is when click general only articles under general shows and when click registration only articles under registration shows.
Thanks a lot
Re: issues with News block
Precisely. If you have read my previous post...bramptonian wrote:(...) if i add category='General' to the code out of 2 only general displays and other one disappears.
Meaning you have to duplicate the tag:Jo Morg wrote:(...) you just have to hard code {News category='General'} on one tab and {News category='Registration'} on the other.
Code: Select all
{news summarytemplate='Summary_Simplex' detailpage='news' detailtemplate='Simplex_Detail' category='General'}
Code: Select all
{news summarytemplate='Summary_Simplex' detailpage='news' detailtemplate='Simplex_Detail' category='Registration'}
Yes, but this is trivial site building knowledge, and while we may assist you in all things directly related with CMSMS, you still need to research and learn the skills to do these trivial tasks. The best we can do is point you to the right direction. I believe you already have all the info you need to proceed.bramptonian wrote:I am so sorry taking everyones time but as said i am not a developer just trying to build up my website.

"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
-
- New Member
- Posts: 5
- Joined: Thu Jun 18, 2015 7:00 pm
Re: issues with News block
Thanks very much Jo....