Search

Can anyone point me in the right direction for allowing the creation of entries on the front-end? I want to use this as a way for unique visitors of a site to create dynamic content that gets stored and posted as an entry. Any help would be great, thanks.

It looks like I may be able to make something similar to the 'save-messages' event that exists for contact emails. Is this probably the best route to go?

Yup, simply create a section and then an event.

Just as a random question thats related. What’s the difference between the “Save Message” event, and the “Save Comment” event?

The default installation has a “Messages” section – this is where the “save message” event will save the POST data. The “save comment” event saves to the “Comments” section.

Thanks for the confirmation.

What about passing the user on to the entry just created. I see that you can use

<input name="redirect" type="hidden" value="http://somedomain.com" /> 

to send the user to a new domain. However I would like to send them to the newly created page. I assume I just need to format the title field into a url safe string and include it in the above input field, but I'm not sure. Any ideas?

@chadspen I’m not sure but I think that will be something like this:

<input name="redirect" type="hidden" value="http://somedomain.com/articles/{//new-entry/post-fields/title}"/>

Thanks @rainerborene. I can't seem to get it to work, here is what I currently have. The field name is actually 'statement'.

<fieldset>
            <input name="redirect" type="hidden" value="{$root}/statements/{//new-entry/post-fields/statement}"/>
            <label class="required">Statement <input name="fields[statement]" type="text" /></label>
            <input name="action[save-statement]" type="submit" value="Submit" />
        </fieldset>

I should also mention that I'm filtering by system-id, so my urls get published as http://domain.com/statements/1345/. Not sure if this makes a difference.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details