broni Posted August 5, 2015 Posted August 5, 2015 I'd like to have an option to have Announcements only on my main forum page but not on individual forum pages.I don't see such option.
broni Posted August 5, 2015 Author Posted August 5, 2015 When I add block to main forum page it displays on every page throughout all forums and topics.
Ralf Herrmann Posted August 5, 2015 Posted August 5, 2015 When I add block to main forum page it displays on every page throughout all forums and topics.You have two options for this:a) make sure the announcement block is ONLY on the forum index, not an any other “view”. b) set the individual announcement, so it will show only in certain places (e.g. a certain sub-forum).
broni Posted August 5, 2015 Author Posted August 5, 2015 Hopefully I'm just not seeing something but how exactly I'll do A or B?I created new Announcement in ModCP then I used Manage Blocks to create new Announcement block on my main page but the Announcement displays on every page throughout all forums and topics.Not sure how to make "individual announcement".
Ralf Herrmann Posted August 5, 2015 Posted August 5, 2015 I created new Announcement in ModCP then I used Manage Blocks to create new Announcement block on my main page but the Announcement displays on every page throughout all forums and topics.The widgets are managed per “view”. Forum Index, Forum, Topic are different views. So if you add the announcement widget to the forum index, and then open the page builder again on a topic, you can set DIFFERENT widget for all forum topic views. Not sure how to make "individual announcement".If you create an announcement, you can choose where it should appear. Which apps, and even which forums. If you combine those widgets placements and announcement settings you have great flexibility.
broni Posted August 5, 2015 Author Posted August 5, 2015 If I open Announcements widget the only options I see are these: so I don't see how I can set it for main page only. If you create an announcement, you can choose where it should appear. Which apps, and even which forums. Yes, but I see no option to set it to main page only: Unless I'm not seeing something...
Heyhoe Posted August 5, 2015 Posted August 5, 2015 I created an announcement from Moderator CP, selected to show on forums, and then added the announcements block on to the main forums index.The announcement only shows on the main index..
Ralf Herrmann Posted August 5, 2015 Posted August 5, 2015 If I open Announcements widget the only options I see are these: so I don't see how I can set it for main page only.Please read carefully what I said. I didn’t say to open the widget settings. I said to open the page builder for different views, e.g. the forum view or the topic view. If you delete the announcement widget there, announcements won’t show up there, but stay on the forum index, which is a different view with different widgets (if you want).
Michael R Posted August 5, 2015 Posted August 5, 2015 You have two options for this:a) make sure the announcement block is ONLY on the forum index, not an any other “view”. b) set the individual announcement, so it will show only in certain places (e.g. a certain sub-forum).Is this why I see it appear at the top and bottom of a page even after removing it?
broni Posted August 5, 2015 Author Posted August 5, 2015 Now I'm totally confused.Why to open page builder? I'm not building any new page.OK...I went through page builder and I'm having same issue.
Ralf Herrmann Posted August 5, 2015 Posted August 5, 2015 Why to open page builder? I'm not building any new page.Yes, you do. The forum index, the forum listings and the topic views are different “pages” if you will. You can control their widgets individually, and that’s exactly what you want here. You want the announcements only on the index? Then you have to delete the announcement widget on the other “pages” (or “views” like we call them).
broni Posted August 5, 2015 Author Posted August 5, 2015 Are you saying that after creating announcement I have to go through every forum and remove Announcement from there?
Ralf Herrmann Posted August 5, 2015 Posted August 5, 2015 Are you saying that after creating announcement I have to go through every forum and remove Announcement from there?No, just one. All forums are the same “forum view” and all topics are the same “topic view”. And that only relates to the whole announcement widget, not individual announcements.
sobrenome Posted August 5, 2015 Posted August 5, 2015 No, just one. All forums are the same “forum view” and all topics are the same “topic view”. How to set a widget per forum basis?
Ralf Herrmann Posted August 5, 2015 Posted August 5, 2015 How to set a widget per forum basis?That isn’t possible.
broni Posted August 5, 2015 Author Posted August 5, 2015 No, just one. Ahhhh...there you go. Thank you
sobrenome Posted August 6, 2015 Posted August 6, 2015 That isn’t possible. Is it planned for future versions? It would be very useful to show unanswered topics or most commented topics related to the specific forum in the forum index.
Ralf Herrmann Posted August 7, 2015 Posted August 7, 2015 Is it planned for future versions? It would be very useful to show unanswered topics or most commented topics related to the specific forum in the forum index.Controlling widgets for each forum separately would overcomplicate things. See Broni’s surprise while thinking it already works this way. That would be way too much work for the admin and hard to maintain. But what you want can still be achieved by widgets reacting to the page they are shown on. It’s just a matter of how they are coded. And regarding the general use of the announcement features: We now have a documentation article about announcements:https://community.invisionpower.com/4docs/site-features/announcements-r166/
sobrenome Posted August 7, 2015 Posted August 7, 2015 Controlling widgets for each forum separately would overcomplicate things. See Broni’s surprise while thinking it already works this way. That would be way too much work for the admin and hard to maintain. But what you want can still be achieved by widgets reacting to the page they are shown on. It’s just a matter of how they are coded. And regarding the general use of the announcement features: We now have a documentation article about announcements:https://community.invisionpower.com/4docs/site-features/announcements-r166/I could develop custom blocks for each forum and a main custom block with the others inside and conditional tags based on forum id.My question is: the main block cannot be cached for obvius reasons. But the sub-blocks will be correctly cached?I have tried this solution on 3.4.7 and the child blocks were not cached.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.