Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Editing Velocity Files

Rosalyn March 11, 2012

I need to set up a Confluence site without child pages showing. I understand this is done via the Velocity files. Does anyone know how to edit velocity files?

2 answers

0 votes
Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2012

Hi Rosalyn,

If it's just the child pages displayed at the bottom of a parent page that you don't want to show you coud hide them with jQuery without needing to edit any Velocity templates or install any plugins.

Log in as an administrator and select Browse -> Confluence Admin -> Look and Feel -> Custom HTML and insert the following code in the "At end of HEAD" section:

<script>
AJS.toInit(function() {
   AJS.$("#children-section").css("display","none");
 });
</script>

Andrew.

0 votes
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2012

notepad? :) Veolcity templates are text, syntax available at http://velocity.apache.org/engine/devel/user-guide.html , Im not clear on the exact files you need to modify, but an alternate approach may be to use a theme engine, eg Adaptavists ThemeBuilder https://plugins.atlassian.com/plugins/com.adaptavist.confluence.themes.sitebuilder or Zen Foundation https://plugins.atlassian.com/plugins/com.zenfoundation. YMMV

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events