katherine.vierra Posted October 28, 2014 Share Posted October 28, 2014 Link to comment Share on other sites More sharing options...
james.t Posted November 2, 2014 Share Posted November 2, 2014 Hi Katherine, How are you getting on with this? I want to achieve the exact same thing so I am interested! So far I have identified the code that displays the Popular Resources and can comment that out. Although I wonder if there is a simple config setting to achieve the same thing. I've noticed the the Popular Resources are controlled from within the <WAR>/optimized-scripts folder. So firstly I changed the following setting to false in order to be able to run the non-optimized version of the scripts. So in WEB-INF/js.config.properites # Control default value of javascript optimization in runtime javascript.optimize=false Then in <WAR>/scripts/home folder, the file view/HomeView.js has this statement near the bottom: this.$(".homeSidebar-title").after(this.popularLinksBlock.render().$el); which adds in the Popular Resources. Then also this in template/homeTemplate.htm: <!--Popular Links--> <div style="height:24px;"></div> So I commented those two out and that removed the Popular Resources. However, it would be necessary to recompile the scripts with the changes so that the optimized versions can be used. I haven't got to that stage yet! Regards James Link to comment Share on other sites More sharing options...
katherine.vierra Posted November 4, 2014 Author Share Posted November 4, 2014 James, Thanks for the info. I knew you could mess with the javascript, but didn't know a lot about doing that. I did find a section in the applicationContext-rest-services.xml file with the comment 'Video Tutorials' above it. I commented those lines and restarted the service just to see what would happen. I still see the 'Popular Resources' header and below it says 'you have nothing to show'. So, the links are gone, but that's not quite as clean as I'd prefer for sending into a production environment. You can also comment out the links to the tutorials for reports, adhoc, data sources, etc. I've not decided yet, but that may be something we wish to remove as well. We don't provide users with all the functionality that tutorials and videos promise. So, I find it's best to hide that info than offer false promises. I agree it seems like there should be a simple option to turn it off, but so far I've found that to customize anything I have to go to various xml and properties files. Currently I'm at nearly a dozen I've customized to hide one thing or another. I will post if I find anything else. Thanks! Link to comment Share on other sites More sharing options...
james.t Posted November 6, 2014 Share Posted November 6, 2014 Hi Katherine, Not sure if you still need to remove the Data Sources option. The value to put in the XML is: dataSource What follows is the config I am using to hide all but Dashboards and Reports: serverSettings admin domain dataSource adhocView Link to comment Share on other sites More sharing options...
aditi.sharma Posted April 21, 2015 Share Posted April 21, 2015 hi Katherine,How did yopu manage to remove the 'view list' link from the dashboard, while its still there for Datasorces , Ad Hoc View and Reports.I have a similar requirement, where I have to customize the 'view list' link of each of the items and place a different link on click of these links.I have not yet been able to locate the code, which brings this 'view list' link. I would really appriaciate if you could help me on this. Link to comment Share on other sites More sharing options...
gaurav_thakare Posted May 7, 2015 Share Posted May 7, 2015 Comment the below code in applicationContext-rest-services.xml to hide data source. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now