Customer Portal

Get Involved. Join the Conversation.

Topic

    Joshua
    Removing the Announcement fieldAnswered
    Topic posted March 5, 2009 by Joshua Gold Medal: 3,500+ Points, last edited October 29, 2011 
    1101 Views, 6 Comments
    Title:
    Removing the Announcement field
    Content:
    I might be missing something but I've looked though most of the manuals and documentation and I know how to remove the announcement but I cannot find out where the text is or the templates that they are in.  Which folder are the templates housed in for the answers page and contact us page.

    Best Comment

    Ernie Turner

    The Announcement field is controlled by the standard/display/AnnouncementText widget. This widget is referenced on most of the templates which are located at /euf/development/views/templates. The AnnouncementText widget loads a file out of the assets folder. By default this file is located at /euf/assets/announcements/announcement.html.

     

    If you want to remove the widget entirely, just remove the reference from the templates, or you can modify the announcement.html file if you just want to change what the widget displays.

    Comment

     

    • Ernie Turner

      The Announcement field is controlled by the standard/display/AnnouncementText widget. This widget is referenced on most of the templates which are located at /euf/development/views/templates. The AnnouncementText widget loads a file out of the assets folder. By default this file is located at /euf/assets/announcements/announcement.html.

       

      If you want to remove the widget entirely, just remove the reference from the templates, or you can modify the announcement.html file if you just want to change what the widget displays.

    • Joshua
      Ok good I did find everything I needed to but now the issus I have how do I make the changed.  I can open the .php files find the source code but how do I save that as the new page? 
    • Ernie Turner
      I'm not really sure what you're asking. If you've downloaded the files and made your changes, then you can just upload them using WebDAV.
    • D. Kittinger

      Ernie,

      I have a question.  I'm new to CP and coding.   You had said

      "If you want to remove the widget entirely, just remove the reference from the templates, or you ...."

      The issue for me is you said "templates" (Plural). 

       

      I hid the Announcement code only on the rn_Standard_php template (Development > Views > Templates) and it worked. (See image).   This also hid it on the other 3 tabs:  Answers, Ask a Question, and My Stuff. 

       

      My concern is that I should still be hiding it on the other 4 Templates:  Account, Minor, etc...   Should I?

      Also, how do I make the other widgets resize to take up that space?

       

      Thanks! 

      Announcement

    • Shiloh Madsen
      rn_standard is the template used for most of the default RNT pages. Just removing it there should be sufficient, however commenting it out of other templates certainly won't hurt anything. 
    • Ernie Turner
      Shiloh is correct, the rn_standard template is used in most places, however I would suggest doing the same thing in all templates. In terms of getting the page to expand once you remove the sidebar, I believe there are a few posts already on that subject. I would do some searching, but you might want to start here.