I want to tie a user to an entry by creating/editing an entry with the title and url_title “user{member_id}”
Here’s the code I’m using:
{exp:safecracker
channel="portfolios"
url_title="user{member_id}"
return="user/portfolio/user{member_id}"
datepicker="no"
author_only="yes"
}
<label for="title">Title</label>
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100">
<label for="url_title">URL Title</label>
<input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">
<input type="submit" name="submit" value="Submit">
{/exp:safecracker}This doesn’t seem to be working. It does work if I type in manually url_title=“user1”.
Am I going about this the wrong way? Shouldn’t this work?