ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to place url_title in custom category?

June 09, 2014 10:31am

Subscribe [1]
  • #1 / Jun 09, 2014 10:31am

    gbederson

    92 posts

    Using safecracker to create a new entry on the front end I need to fill in the content of a custom category with the url_title of the current entry…. Can’t figure out how to make this work!

    Below is as far as I’ve gone, with the custom category called “custom_category” and it’s id is 214.

    Thanks,

    Geoff

    {exp:safecracker channel="explore" return="kiosks/{segment_3}" }
    <input type="hidden" name="url_title" id='url_title' value="" > 
    <input type='hidden' name='coursename' field_id="155" value='{segment_3}' /> 
    <input type='hidden' name='custom_category' field_id="214" value='{url_title}' > 
    <input type="hidden" name="allow_comments" value="y" />  
    ...
  • #2 / Jun 11, 2014 10:18pm

    gbederson

    92 posts

    Looks like I got it to work. I don’t know why, but it does! The hidden url_title line and the custom field has to be together in the same input:

    <input type=“hidden” name=“custom_category” field_id=“214” name=“url_title” id=‘url_title’ value=”” />

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases