Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi,

any idea why this isn't working ?

Code: Select all
<cms:form 
    masterpage=k_template_name
    mode='create'
    enctype='multipart/form-data'
    method='post'
    anchor='0'
    >
   
<cms:if k_success >   

        <cms:db_persist_form
            _invalidate_cache='0'
            k_folder_title='frm_folder_title'
           
        />
                       
     
       
        <cms:set_flash name='submit_success' value='1' />
        <cms:redirect "<cms:link 'companies.php'/>" />
    </cms:if>

    <cms:if k_error >
        <div class="error">
            <cms:each k_error >
                <br><cms:show item />
            </cms:each>
        </div>
</cms:if>


<label>Company name</label>
<cms:input type="bound" name="k_page_title"  />

    <label>e-mail</label>
    <cms:input name="company_mail" type="bound" required='1'/><br/>
   
     
                     
    <cms:input type="dropdown"
    name="folder_title"
    opt_values=" <cms:folders masterpage='companies.php'><cms:show k_folder_title/> | </cms:folders> "
     />
                   
     
  <cms:dump />
   
<button type="submit">Submit</button>
</cms:form>


I try to post a page to child folder of <cms:template title='Companies' clonable='1' commentable='1' dynamic_folders='1'>
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
Hi Tom, please try the following changes:
Code: Select all
<cms:db_persist_form
    _invalidate_cache = '0'
    k_page_folder_id = frm_folder_id
/>
Code: Select all
<cms:input
    name = 'folder_id'
    opt_values = "<cms:folders masterpage='companies.php'><cms:show k_folder_title/>=<cms:show k_folder_id/> | </cms:folders>"
    type = 'dropdown'
/>
Hi Cheesypoof,

Thanks! didn't figure out that I couldn't pass k_folder_title to the database.
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
3 posts Page 1 of 1
cron