When I set up a very simple test template and page with nothing on it apart form the macro, the surrounding div doesn't appear. It doesn't appear to be dependant on the XSLT nor macro as I've tried the default "List Sub Pages By Level" and the same thing happens - the div appears on my templates, and not on the test page which doesn't use my templates.
The templates are nested, but otherwise, are not anything special. Trace doesn't show any errors. What could cause this?
This sound very odd - are you sure that your XSLT file has actually been mapped to a macro,which should be inserted on a templte in Umbraco in order to be displayed correctly?
Sounds like there is an issue there - could you describe your process in a bit more detail and perhaps attach some screendumps so we can see what things looks like in your end?
That surrounding DIV looks like the debug / trace DIV. When Umbraco runs in trace mode (umbDebugShowTrace=true) then each macro is surrounded by such a DIV. There's a bug in 4.10 where some trace info leaks even though trace has been disabled... see http://issues.umbraco.org/issue/U4-1203.
Can you tell us whether you're running in trace mode or not? Can you show us the umbraco:macro tag that you use to embed the macro in your template?
It's cool, please don't delete your posts it can help others who are also in debug mode and wondering - and it's perfectly ok to make a mistake. As long as you figure out what went wrong and how you fixed it and don't mind sharing in here it's all ok :)
If there is anything else you come across or have doubts about please don't hesitate to ask - as you may have found out by now we're a friendly bunch of peole who're trying to help each other out.
Thanks Jan. Actually it would be handy to knwo how to still be in debug mode, but also not see the borders as its changing the layout in areas where there's not an extra pixel space.
Macro is surrounded by a default DIV
umbraco v 4.10.0 (Assembly version: 1.0.4695.30696)
Hi All,
When I place a Macro (formateted by a simple XSLT) I find it is surrounded by a default div:
<div style="border: 1px solid #009;" title="Macro Tag: 'NavTest'">
</div>
When I set up a very simple test template and page with nothing on it apart form the macro, the surrounding div doesn't appear. It doesn't appear to be dependant on the XSLT nor macro as I've tried the default "List Sub Pages By Level" and the same thing happens - the div appears on my templates, and not on the test page which doesn't use my templates.
The templates are nested, but otherwise, are not anything special. Trace doesn't show any errors. What could cause this?
TIA
Hi Tia and welcome to our :)
This sound very odd - are you sure that your XSLT file has actually been mapped to a macro,which should be inserted on a templte in Umbraco in order to be displayed correctly?
Sounds like there is an issue there - could you describe your process in a bit more detail and perhaps attach some screendumps so we can see what things looks like in your end?
Looking forward to hearing from you.
/Jan
That surrounding DIV looks like the debug / trace DIV. When Umbraco runs in trace mode (umbDebugShowTrace=true) then each macro is surrounded by such a DIV. There's a bug in 4.10 where some trace info leaks even though trace has been disabled... see http://issues.umbraco.org/issue/U4-1203.
Can you tell us whether you're running in trace mode or not? Can you show us the umbraco:macro tag that you use to embed the macro in your template?
Rather embarrassing - it was indeed in debug mode and I did try to delete my question as I realised my mistake.
Thanks guys - sorry to have botherd you with this.
Hi JJ
It's cool, please don't delete your posts it can help others who are also in debug mode and wondering - and it's perfectly ok to make a mistake. As long as you figure out what went wrong and how you fixed it and don't mind sharing in here it's all ok :)
As Stephané pointed out it could possibly have been related to a bug in the issue tracker.
If there is anything else you come across or have doubts about please don't hesitate to ask - as you may have found out by now we're a friendly bunch of peole who're trying to help each other out.
Have a nice weekend and happy Umbracoing :)
/Jan
Thanks Jan. Actually it would be handy to knwo how to still be in debug mode, but also not see the borders as its changing the layout in areas where there's not an extra pixel space.
Thanks,
JJ
At the moment there is no way to disable the blue border around macros when in debug mode.
Although... your point about it breaking the layout is very valid. What better, non-intrusive way of highlighting macros could we imagine?
is working on a reply...