Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi everyone.
There's a nice helper method that outputs paging markup:
paging.cshtml
@helper RenderPaging() {
doing some magic...
}
How do I call the @RenderPaiging in another macro products.cshtml?
@paging.RenderPaging() should do it. Assuming this helper lives in App_Code the "class name" is just the name of the file.
Andy
Andy,
Super! It works, thanks!
Hi Ivan,
Where did you find the helper you're referring to?
-Amir
Hi Amir.
It has been written by our company and has nothing to do with standard Umbraco components.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Share helpers across several macros
Hi everyone.
There's a nice helper method that outputs paging markup:
paging.cshtml
@helper RenderPaging() {
doing some magic...
}
How do I call the @RenderPaiging in another macro products.cshtml?
@paging.RenderPaging() should do it. Assuming this helper lives in App_Code the "class name" is just the name of the file.
Andy
Andy,
Super! It works, thanks!
Hi Ivan,
Where did you find the helper you're referring to?
-Amir
Hi Amir.
It has been written by our company and has nothing to do with standard Umbraco components.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.