Velocity Question - document.getContent() - empty?

Hello, first you should not define a $doc variable since it’s already defined and a reserved name.

Then in your script you use a $page variable but it’s not defined.

IMO your reference is wrong but since you’re not showing what you’ve used, it’s hard to help you more. Just navigate to your page and click on the Information tab to get the page reference.