5 votes
Accepted

before_channel_entry_save hook

This was driving me insane but I've figured it out. You need to edit the $entry object (1st parameter of the function) in order for this to work. You can, however, use the 2nd parameter, $values, for ...
Kieran McClung's user avatar
3 votes
Accepted

Channel Entry Model Not Saving Custom Fields

You may be using the incorrect field name. You can't access it via its short name, it has to be by it's field_id. Here is an example of how I do something like this: // these are usually set at the ...
jrothafer's user avatar
  • 5,900
3 votes
Accepted

Method to add multiple fields to a channel entry

Easy, I'd create a grid field with Date | Time | Location | Price. For ease of management I'd create a separate channel for locations (manage all locations separately to stop typos and misspellings ...
stuartmcd69's user avatar
  • 3,163
3 votes
Accepted

Select with Field

You are using this inside a channel entry loop, correct? If not, you need to be. And you might also try using the other field segements: {exp:channel:entries channel="...
jrothafer's user avatar
  • 5,900
3 votes
Accepted

How to list all members and their custom member fields?

Please see this thread: Display members in group in template You will probably need to use an extension or plugin to do this easily. Something like solspace User or another plugin that will allow you ...
pixldev's user avatar
  • 589
2 votes

How get the particular part for a string?

Use the PHPStringFun add-on and use regX either with substr or str_replace. Alternatively you could use Low Replace or MX Jumper. Or you could even activate PHP on the template and post parse. All ...
Peter Lewis's user avatar
  • 5,353
2 votes
Accepted

How can I tell if a fieldtype is in use?

This MySQL query should give you a list of fieldtypes which are not currently in use as Channel or Grid fields: SELECT name FROM exp_fieldtypes WHERE (SELECT COUNT(*) FROM exp_channel_fields ...
Derek Hogue's user avatar
  • 17.4k
2 votes
Accepted

When viewing entries in CP, can I view custom fields?

Yes you can use Zenbu. really nice addon suite https://devot-ee.com/add-ons/zenbu
Jelle Dijkstra's user avatar
2 votes

Channel entries search by custom field

The channel entries call you are using to retrieve the custom field would need some more parameters to work - you need to give it some sort of channel or entry information for EE to work out what ...
JCOGS Design's user avatar
  • 3,587
1 vote

Possible to 'build' a field tag with a var?

There is a way to do this that would appear to be quite a bit less complicated, and possibly helpfully, does not require the use of either stash, inline php or embeds... What you need to do is exploit ...
JCOGS Design's user avatar
  • 3,587
1 vote

Possible to 'build' a field tag with a var?

I ran a quick test with a dropdown field, where the value of the drop down was {body} (a field in another channel I have). I believe the following should work to do what your looking for. {exp:...
Tom Jaeger's user avatar
1 vote

Can I make a multi-select custom member field?

Both good options, above. I did something perhaps creative, perhaps stupid, but definitely desperate: Because checkboxes are binary selections, I used a Select Dropdown for each "checkbox" with a Yes/...
jphansen's user avatar
  • 627
1 vote

Can I make a multi-select custom member field?

You can go for Smart Members PRO which allows you to create custom members field like Date, Text Input, Textarea, Select Dropdown and many more. I hope this plugin will fulfils your all requirement of ...
Harsh Barach's user avatar
1 vote

Can I make a multi-select custom member field?

The options for custom member fields are currently fairly limited. I believe that in time improvements to the member features of EE will appear, and possibly when they do this constraint will go away....
JCOGS Design's user avatar
  • 3,587
1 vote

Setting up Fields and Logic

If you are using EE5 then one solution would be to use a Fluid field. Set up the Fluid field to allow the user to pick one of three fields (one for each of your cases) and then in your template you ...
JCOGS Design's user avatar
  • 3,587
1 vote
Accepted

Api_channel_fields - cannot add group id

As far as I know there is no way to do this using API. I think you should try with EE Model. You can easily create new field using the Model. And Model is most effective way to handle all these core ...
Harsh Barach's user avatar
1 vote

How to change other entries values when an entry is saved/updated

Can you explain further why you need to accomplish this? It seems like an odd functionality to implement. Could you just make one entry sticky at a time? You could create an extension, and I can ...
jrothafer's user avatar
  • 5,900
1 vote

How can I sort entries by ascending integers?

I cannot replicate your results. Created a new channel "test" with a single field "counter" set to Text with field entry set to "integer". Built template with this code: <h1>Sorting Test</...
JCOGS Design's user avatar
  • 3,587
1 vote

How can I sort entries by ascending integers?

I think the Custom field sort_order may have value in string format. That's why it is not working.You need to convert it into integer format then try with it. You can convert it by making small pi....
Harsh Barach's user avatar
1 vote

Custom Fieldtype: How to check save($data)

I received some help in the slack forum for this one. Short answer is I was not providing a name for my fieldtype during construction. I assumed this was auto-generated by EE due to back end ...
W3bGuy's user avatar
  • 1,610
1 vote
Accepted

Find sperator in field

You can use a wonderful EE utility called Streeng to do this (and lots of other things). Streeng performs a broad variety of manipulations on the tag outputs, including stripping out some or all of ...
JCOGS Design's user avatar
  • 3,587
1 vote

EE cuts the content of a big field

you may want to check your field settings for any character limits. Specifically check that the field Maxlength, Default Text Formatting, and Field Content settings are appropriate to what you need. I'...
pixldev's user avatar
  • 589
1 vote

How to list all members and their custom member fields?

I've also been working on attempting this today, and have found that the ExpressionEngine Member data tables have changed a bit. The custom Member Field data is now stored in a separate Table for each ...
IC360 Oliver Cannell's user avatar
1 vote

Creating a featured channel entry

Yes, It is possible for sure. Follow the steps. 1) create a checkbox field named "featured" and pass the checkbox options i.e, "yes". 2) check the checkbox in entry which you want to set as featured....
Mufi - Amici Infotech's user avatar
1 vote

Freemember and custom member fields

Are you running the latest version of Freemember? Are you sure your custom field names are correct? Your code? Ok, your code was not formatted properly.. {exp:freemember:register form_class="form ...
lincolnpixel's user avatar
1 vote

Comma in Text Input

"My database is full of the strings like this" - so you already have the values correctly stored in EE entries? Or are you referring to a different database? "I set the fields Field Content to All." -...
Peter Lewis's user avatar
  • 5,353
1 vote
Accepted

add/publish new field data for existing channel entries

You'll have to run a query on the database to set the past entries' values for this new field: UPDATE exp_channel_data SET field_id_XX = 'YES' WHERE field_id_XX == '' AND channel_id = X; Just ...
Derek Hogue's user avatar
  • 17.4k
1 vote
Accepted

How to get Calendar and Event data from Solspace Calendar?

Highly suggested reading to distinguish Calendar tags: https://solspace.com/docs/calendar/getting_started/ {exp:calendar:cal} is usually used when displaying a list of events in a chronological order....
Solspace's user avatar
  • 6,139

Only top scored, non community-wiki answers of a minimum length are eligible