Questions tagged [custom]

The tag has no usage guidance.

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

Custom Clickable Image

I've been using Craft CMS for a while, but haven't seen any way to get the following done: Looking to create a page with a large image on it. The image would be overlayed with buttons that pop-out a ...
1
vote
1answer
223 views

Updating craft user fields from plugin

I have 2 forms on my site, one that registers for the WHOLE site and one that registers for just the downloads on the site. I wrote this custom function to change the user group if the email existed. ...
2
votes
1answer
104 views

Separate User Groups / forms

I have two forms on my site, one that you can use to sign up as a registered user that allows you to view content through out the site and participate in steps (tests) etc. The second form is a form ...
1
vote
1answer
90 views

Displaying entries from a specific custom date year

I've a list of entries, all with custom dates. Is there a way to show entries from a specific year, just using the custom date rather than the posted date? Any help is much appreciated!
0
votes
0answers
24 views

Editing Entries In-line In Admin Area

Has anyone made it possible to edit entries directly in the admin area (i.e. /admin/entries/{section}) without having to go into each individual entry? I've built a voucher system that the users need ...
1
vote
1answer
41 views

Custom Pluging Entries FieldType

I have 2 plugins I created that store similar data: Plugin 1: id, name, panel_id, price Plugin 2: id, name, test_id, price I want to attach my plugin data to an entry, and I need to make sure they ...
0
votes
1answer
47 views

How do I add a tab to my home page

I have created a page for our website, but I do not know how to add it as a tab on the home page. How do I do that?
1
vote
1answer
111 views

no element type exists with getCriteria and custom element type

I am working on a plugin using the getCriteria function, but for every Element Type I put, I always get an error: No element type exists by the type “Comerce_Group”. $criteria = craft()->...
2
votes
2answers
360 views

Using getCriteria with a custom element type

I've setup a custom element type for badges for a system I'm building, but I've run into some trouble trying to query for badges using craft()->elements->getCriteria(ElementType::Badges_Badge);, ...
6
votes
2answers
4k views

How do I add class to redactor format list?

I understand that to add a "note" class to the redactor text editor drop down, I need to use formattingAdd. But each iteration I've tried does not work. The example is: https://imperavi.com/redactor/...
1
vote
0answers
124 views

Table attributes not customisable for nested entry sources [closed]

Using a plugin, I have added some nested entry sources to some of the default section entry sources in my site. For example: 'section:6' => [ 'label' => 'News', ... 'nested' => [...
2
votes
1answer
381 views

Custom static assets

I would like to let my static assets (JS, CSS and images file) close to my templates files. public/ templates/ css/ images/ scripts/ template.html Until now, I didn't find a clean ...
2
votes
1answer
184 views

Upload Image Custom Field

Is there any "Upload Image" custom field in craft so that I will be able to make my images editable. Thanks for the answer.
1
vote
2answers
161 views

Extending UserController

I'm trying to extend the Craft UserController class, in order to add some extra validation to the actionSaveUser action, before the rest of the code in that function executes. I've got no problem ...
0
votes
1answer
1k views

Error - Unable to resolve the request

I've created a 'controllers' folder within the 'plugins' folder and a php file within that following the documentation I've also created the following form: <form method="POST" accept-charset=...
3
votes
2answers
83 views

How do I insert a special entry into a sections list?

I want to apologize if I'm not asking the question correctly, but basically this is what I want to do: I have this craft.entries: {% paginate craft.entries.section('example').limit(10) as ...
1
vote
1answer
98 views

How to save extra data when I save an entry

I am trying to understand if it is possible to do a hook on an entry save without creating a plugin. This is what I would like to happen: - In my entry, I have some address fields (street, city, ...
2
votes
1answer
493 views

Replacing core services

I'm relatively new to CraftCMS, so feel free to smack me upside the head if I'm missing something obvious. We have an ElasticSearch provider that I'd like to use instead of Craft's default search. ...
1
vote
0answers
383 views

Is it Possible to Connect a Custom Stylesheet to Redactor via the Config? [closed]

I am running into an issue with Redactor in Craft and I am wondering if anyone can help me sort it out. I am trying to set up multiple rich text fields with different stylesheets connected to each. I'...
6
votes
2answers
1k views

Sort entries by most popular

I'm in charge of creating a website with a 'most popular' section. I was wondering if there was any native way/plugin that lets me sort craft entries based on most popular? I know Expression Engine ...
5
votes
2answers
556 views

P/T ContactForm Retrieving Custom fields Value after submitting form

I'm trying to retrieve custom fields value after submitting a form. Trying to access the custom fields through the message element after the form is submitted always throws an error that the custom ...
6
votes
2answers
1k views

Can we define routes (non-CP) in plugins?

I don't suspect it's currently possible but I would be pleasantly surprised to find that it is. I'm going to use an example from Django because I've seen it used there and a similar implementation ...
22
votes
3answers
3k views

How can I route a specific entry in a structure section to its own template?

While setting up a site recently I wanted to route a specific entry in a structure section to its own custom template. Using a dynamic route sounded like the right option until I remembered that it ...