Hi

As we can see there is a helper function nodereference_url_create_link(...) for themers to easily create a link. But we need also to pass additional parameters to URL, for example URL part for prepopulate module to handle other fields.

I suggest to add this option to widget configuration form (after Link title: and Link hover title: ) "Link url additional params" or as additional parameter for mentioned function. It will provide generic method to manipulate link url.

(Sorry for my bad english and maybe unclear explanation).

Comments

quicksketch’s picture

I'd be happy to add it as an additional option to the nodereference_url_create_link() function, but I probably won't be adding more options to the already confusing UI. If you'd like more advanced links, you can use the Custom links module.

hayk’s picture

Hi

Adding it to nodereference_url_create_link() function is enough.
Thanks

quicksketch’s picture

Status: Active » Postponed

If you'd like this feature, please provide a patch. Otherwise I'll just close it after a lack of activity, assuming that no one is interested in this functionality.

likewhoa’s picture

Version: 6.x-1.6 » 7.x-1.x-dev
StatusFileSize
new1.48 KB

I wanted this feature but got as far as setting the extra url parameter but then it breaks with '[]' charactors in url inside the nodereference_url_get_nid() function. I didn't have time to look into it further but attached is what I got so far and hopefully someone that knows this function betters can find the bug.

This patch applies on the d7 version, therefore I am upping the issue to that.

likewhoa’s picture

Status: Postponed » Needs review

please review and fix.

likewhoa’s picture

StatusFileSize
new1.58 KB

UPDATE, please review this. WFM.

quicksketch’s picture

Hi @likewhoa: I don't think I'm interested in adding this as an option in the UI (as I said in #1). I'd be happy to add it as option to nodereference_url_create_link() though, as @hayk asked for in #2.