Questions tagged [frontend]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
81 views

How to prevent non-image files being uploaded through frontend form?

Is this possible? At the point of upload, the entry field isn't checked so anything can be uploaded, which is a bit worrying. Then again, if it's an Amazon S3 bucket, does it even matter? It won't be ...
Clive Portman's user avatar
2 votes
1 answer
655 views

How to output first segment title/channel name of entry?

For example, I have channel entry https://site.dev/news/2017/test and I would like to output "News" section name on entry page.
curious's user avatar
  • 383
1 vote
1 answer
232 views

Simple category-entry search filter

I'm trying to figure what would be the simplest way to do such filtering: I would like to make it in that way that selecting one of "Specialities" category would limit results from the selected "...
curious's user avatar
  • 383
1 vote
2 answers
535 views

Issue with uploading files from frontend

I'm currently trying to implement a simple file-upload form with CraftCMS. However, even though there are no errors on submitting the form, no file actually seems to get uploaded. This is the form: ...
justussimon91's user avatar
2 votes
1 answer
237 views

Can't include relative JS file from layout

I'm trying to include the videojs.thumbnails.js file in my layout.html: <script src="./videojs.thumbnails.js"></script> It's located at the same level. I am getting the following error: ...
Molly Harper's user avatar
2 votes
1 answer
415 views

Does a up to date boilerplate for Bootstrap 4 with live reload, sass and js build exist?

I'm pretty new to Craft, and a noob when it comes to build tools. Coming from WordPress I've been using Roots/Sage which is a starter theme with liveReload(browserSync), Bootstrap 4, SASS and JS ...
Simen's user avatar
  • 21
1 vote
1 answer
771 views

How to implement radiobuttons field on frontend registration form?

I want to add a question to a frontend registration form. The radiobuttons are just 'Yes' or 'No'. I've created a radiobutton field and added that to users > fields. If I add this option to the form,...
user avatar
2 votes
1 answer
790 views

Front end assets uploading, does not appear to be a an image error

I have a front end form for entries. All other fields are working fine however my assets keep throwing errors. My assets location is set to 'Images/{slug}' in the CP. Server info tells my ...
shorn's user avatar
  • 438
2 votes
1 answer
538 views

How to modify entry with a users field in the front-end?

Is it possible to modify an field of an entry within the front-end? Something like this with an action URL: <a href="{{actionUrl('save/entry', {userfield:user.id}) }}">add user to userfield of ...
Maarten Heideman's user avatar
1 vote
1 answer
496 views

Reuse chosen dropdown field value on frontend

I would like to choose entry values from a frontend dropdown and reuse the chosen value directly. {% set entries = craft.entries.section('mountainbikes') %} <select name="year"> {% for entry ...
TomS's user avatar
  • 213
0 votes
1 answer
2k views

Update a user image on the front end using Vue.js and Ajax

Following on from this question I am now looking at adding, deleting and updating a user's image on the front end using Vue.js and vue-resource. I have the delete functionality working no problem but ...
Gareth's user avatar
  • 1,605
10 votes
5 answers
17k views

Updating a user on the front end with Vue.js and Axios

I currently have a working profile update form using purely craft but I would like to now enhance that using Vue and Axios to update via Ajax. I may well submit a couple of questions rather than put ...
Gareth's user avatar
  • 1,605
2 votes
1 answer
707 views

Correct way of showing errors when editing profile via front-end form?

I've been looking at the following resources: https://craftcms.com/docs/templating/user-profile-form Allow user to change or delete their photo for their profile from the front end Front end edit: ...
Robert Tolton's user avatar
0 votes
2 answers
166 views

How to stop a Slider [closed]

We've got a HeroSlider on our website, and I no longer wish for the slider to slide (if that makes sense?). Currently the homepage is 3 slides, however when I remove the 2 slides I don't want, the ...
Jacqui's user avatar
  • 1
1 vote
1 answer
788 views

frontend form action: save as draft or publish

in my frontend entry form I have a "save as draft" submit button. The current action for this form is the following, which saves the entry submitted through the form as a draft (status: disabled): &...
user5991's user avatar
1 vote
1 answer
298 views

UX issue with new email verification link

I'm working on a profile management form for a site with public registration enabled. I'd like users to be able to change their email address. I've got it working as Craft intended -- they enter their ...
Mike's user avatar
  • 21
2 votes
1 answer
321 views

Front End Asset Management - Upload New Photos without Deleting/Overriding Existing

I'm trying to create a front end system where users can create and manage listings with multiple photos. Everything saves as a draft until approved by an admin. In the front end edit page, uploading ...
Aaron Ransom's user avatar
1 vote
1 answer
158 views

Tags via AJAX actionTrigger

I pretty much followed this and the answer there really helped me a lot so far. Currently I'm stuck with either a 500 (Internal Server Error) or a 400 (Bad Request) Error. My craft/storage/runtime/...
Eternal Black's user avatar
3 votes
1 answer
2k views

How do I export search results as a csv?

I have set up a custom search of entries on a page in my Craft site which includes filters to filter the results. I would like to be able to export these results (filtered or otherwise) as a CSV ...
user5824's user avatar
1 vote
1 answer
113 views

Entry not saving when date isn't changed using frontend form

When editing an entry (actually it's a product within Craft Commerce but everything seems the same) with a pre-existing date, the field looks like this: <input name="fields[date][date]" value="06/...
Clive Portman's user avatar
1 vote
2 answers
64 views

Frontend form database error with empty Users field

Within a frontend Add Product form (using Craft Commerce) I'm having problems with a database error whenever a Users field is left empty. Here's the field: {% set teachers = craft.users.group('...
Clive Portman's user avatar
3 votes
2 answers
1k views

Send activation mail from front end

I am building a site where all the content (and users) are being managed using the front end. The site owner needs to invite customers to the site but would like to control the time when that customer ...
Marcus Scheller's user avatar
2 votes
0 answers
121 views

How can I validate/make a matrix field required on the front-end?

I am displaying inputs on the front-end of my form that are populating a matrix within the CP. Overall everything is working fine. The problem I am having is validation. I've got the field marked as ...
Damon's user avatar
  • 4,706
9 votes
3 answers
5k views

Use Vue.js with Craft

I want to build my first website with Vue.js but have difficulties how to start. Craft and Vue.js both use {{ }} as delimiters, but I found out that I can change this for Vue. So to start, I tried ...
obs's user avatar
  • 509
0 votes
1 answer
478 views

Front-end entry field validation problem

I have this simple code: <form method="post" accept-charset="UTF-8"> <input type="hidden" name="action" value="entries/saveEntry"> <input type="hidden" name="redirect" value="...
Christian Steger's user avatar
1 vote
1 answer
705 views

get post data after submitting User Profile Form for success message

After a logged-in user updates their profile on the front end, I'd like to redirect them to the same page but show a success message. I believe I can do this with craft.request.getPost() but it's not ...
Ryan's user avatar
  • 1,952
1 vote
1 answer
528 views

Front end user profile: update password

Typical scenario: users log in on the front-end and have a profile page where they can update their info, including changing their current password. I have referenced this article from 2014 but it's ...
Ryan's user avatar
  • 1,952
4 votes
2 answers
957 views

Using Craft CMS with Foundation 6 (for Sites)

So I finally am climbing on board the Craft CMS train, but I have a quick question about how some of you more seasoned Craft-users do things. I do a lot of my work using the Foundation framework (by ...
alexandersix's user avatar
3 votes
1 answer
1k views

Access data when posting to controller from front-end

I'm writing a plugin to notify authors when a Disqus comment is posted. There is a Disqus JS callback you can use to hook into this, so I'm doing the following on the front-end: this.callbacks....
Trevor Davis's user avatar
0 votes
1 answer
62 views

User specific entries (relations)

Does anyone know how I can show a specific entry to a user (frontend)? My user field is called "gebruiker". {# Get current member e.g URL /members/1/ #} {% set currentMember = craft.users.id(craft....
Sophie's user avatar
  • 111
1 vote
0 answers
215 views

Uploading a user picture on registration

I would like to make an image upload field so new members are required to upload a picture. I'm new to Craft (I've been a Drupal Front End developer). Other custom fields are working perfectly, and I'...
Jan's user avatar
  • 363
0 votes
1 answer
696 views

The smoothest way to store JSON object to an entry?

I'm creating a page where I have a bunch of entries I want to populate with jquery drag and drop boxes. It's for the arrangement of songs, just as a tool. And I want to store the position of these ...
Kenny Bones's user avatar
1 vote
1 answer
213 views

Log in as different users in backend front end at the same time?

Is it possible be logged in with different users in frontend and backend, and if so, how do I do that? It would be very convenient being able to test logging in/out different users in frontend, ...
CodeMonkey's user avatar
1 vote
1 answer
538 views

How to make a sortable table in frontend?

I need to display a sortable table of organization member records in frontend, preferably with pagination. Before I start coding this from scratch, I want to ask: Does anyone have some ideas on how to ...
CodeMonkey's user avatar
0 votes
2 answers
1k views

How do I properly access plugin controllers from the front-end?

I'm building a plugin, and it all worked just fine until I decided to change the front-end form submission to use AJAX instead of submitting directly. I have a form on the front-end with this action: ...
GTerrill's user avatar
  • 311
4 votes
1 answer
909 views

How to use select dropdown with entries/saveEntry for an entry field?

How to use select dropdown with entries/saveEntry for an entry field? I have an entry with a field that is another entry, which I want to update with a form: <form method="post" accept-charset="...
Marion Newlevant's user avatar
2 votes
1 answer
1k views

Error when submitting Date Field from the front-end: cannot be blank

Am using the Pikaday datepicker to add a Date field to the front-end of a Craft site: https://github.com/dbushell/Pikaday This is for integration with the Formerly add-on and the date is set to ...
Cole Henley's user avatar
  • 1,741
2 votes
2 answers
1k views

Using the CP login session expiration for the frontend

I love the session handling on the backend CP. The prompts that come up on session expiration after setting 'userSessionDuration' => 'PT5M', in config/general.php are exactly what I want to use on ...
Merlin's user avatar
  • 173
0 votes
1 answer
697 views

Allow a dropdown custom field to be edit from a front end form

I want users to be able select their own name prefix/title (Mr, Mrs, Dr. etc) as part of front end form that allows them to update their user details. I have created a custom dropdown field and ...
JackO's user avatar
  • 133
3 votes
1 answer
636 views

Get draft content in front end form

I have a live entry with an 'eventTime' text field having the content '2pm'. I also have an unpublished draft saved for that same entry with the 'eventTime' field having the content '3pm'. I use the ...
user avatar
8 votes
1 answer
471 views

Using Commerce to pay for posting entry

I'm trying to figure out how to do the following: Person registers as new user User creates a new entry with a front-end entry form Entry is saved as disabled so it's not publicly visible User has ...
Cavell Blood's user avatar
2 votes
1 answer
275 views

Get data from another loop from outside the current loop

Sorry the question title is so random - feel free to correct it to something more succinct if you can think of one. Related question: How to query for multiple relations with SuperTable I have a ...
darylknight's user avatar
  • 3,290
0 votes
0 answers
309 views

How can I enter data in a matrix field with a front-end form? [duplicate]

I want to use a front-end form for certain users to post entries. However, the entry layout contains a Matrix field. How can make a field where people can enter content in a matrix row? Suppose I have ...
Bart Rylant's user avatar
2 votes
2 answers
692 views

Call to Craft Users Login Function from Plugin

I am migrating a 15,000+ users from a site's old CMS (WP), and have them set to Pending. All of their user information will be created and on Craft CMS, except their passwords will not be set, as ...
taylor's user avatar
  • 1,128
3 votes
1 answer
1k views

Managing Frontend JS for Matrix Fields

What is the best course of action to allow the creation/deletion of matrix fields in front-end. For context this in a Commerce Order Field. JS is mess right now, any underlying Craft JS libraries I ...
Dale Inverarity's user avatar
0 votes
1 answer
115 views

Front end authentication on an entry and its related entries

I am looking to implement a website where access to pages and their related pages is restricted to certain users. How I thought it might work is that a user (or users) would be assigned to the entry. ...
Kyle's user avatar
  • 65
0 votes
1 answer
79 views

How to update different parts of the same Entry by different Users

I'm trying to work out the best way to administer this. The point of the system I'm building is as follows: A front-end system which contains Events, Partners and Users Each User is associated with ...
darylknight's user avatar
  • 3,290
1 vote
1 answer
582 views

Front end registration form, no errors

I'm using the following modified version of the user registration form for the purpose of a user updating their details. <form method="post" accept-charset="UTF-8" enctype="multipart/form-data" ...
user avatar
3 votes
1 answer
344 views

Saving asset title in frontend form

I have a frontend form to save an entry which includes a file upload input field: <input type="file" name="fields[newsFile]"> The upload works fine, but is it also possible to set the title of ...
fingerfood's user avatar
2 votes
1 answer
1k views

Add, remove, and append entries to an entries field via frontend form

I'm making a one-button form, to add an entry to an entries field. Adding seems pretty straightforward, but it overwrites any previous entry that occupied the entries field. How would I append an ...
Chase Giunta's user avatar