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 Doug,
I have just installed ImageGen and was reading through your documentation to get an idea of how to use it. I tried the first 'Umbraco Template' example:
<img src="/ImageGen.ashx?text=<?UMBRACO_GETITEM field="pageName"/>" alt=<?UMBRACO_GETITEM field="pageName"/> />
However, this did not work for me. I have changed it to be:
<img src="umbraco/ImageGen.ashx?text=<umbraco:Item field='PageTitle' stripParagraph='true' runat='server'></umbraco:Item>" alt="testtext" />
This works for me. Is this the correct syntax?
Thanks
Ruth
Yes, that's the correct syntax.
I'm working on ImageGen 3 and it will include the umbraco 4 syntax throughout in the documentation.
cheers,doug.
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
Documentation out of date
Hi Doug,
I have just installed ImageGen and was reading through your documentation to get an idea of how to use it. I tried the first 'Umbraco Template' example:
<img src="/ImageGen.ashx?text=<?UMBRACO_GETITEM field="pageName"/>" alt=<?UMBRACO_GETITEM field="pageName"/> />
However, this did not work for me. I have changed it to be:
<img src="umbraco/ImageGen.ashx?text=<umbraco:Item field='PageTitle' stripParagraph='true' runat='server'></umbraco:Item>" alt="testtext" />
This works for me. Is this the correct syntax?
Thanks
Ruth
Yes, that's the correct syntax.
I'm working on ImageGen 3 and it will include the umbraco 4 syntax throughout in the documentation.
cheers,
doug.
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.