Hi,
I've been doing that (I use text/xml transormations, rather than ascx - as kentico support suggested I do). That is fine.
The problem is that I'm loading a list of report documents in a repeater, each report has a 'person' document ID (that links to another document on the tree) as a custom field.
So as the repeater goes through each report I can get the Document ID for this person, I would like to have a link saying -
<a href="<{% GetURLfromID(Person) %>">As written by{% GetDocNamefromID(Person) %}</a>
But at the moment I cannot get the name from just the ID using a macro in text/xml (or ascx for that matter).
So, if I could get that link AND name as a field within the transformation that would be great. At the moment there IS a function to get the link, which is brilliant. My problem is that there is no macro function to get the name and yes, I could write a custom function, etc, etc... But that's a lot of hassle for me (as explained above).
It's one of those situations where I'm so near, so so near and yet so far.
I wonder whether to think that this is a deficiency in kentico's list of macros (after all, if you are meant to write your own custom macros for this, then why is there a function that grabs the link so easily?) or if this is some kind of deficiency in me as a human being?
Yes, this CMS is beginning to engender deep existential thoughts within me. While I applaud anything that makes me scrutinise myself and my place in the world, I wish it was for reasons that were less... frustrating. Perhaps this frustration is an unavoidable precursor to questions about our own existence on this planet.