Add a new client field to admin panel and manage it - craftcms

I'm new to Craft CMS and yii. I just want to add a new (clients) field to craft 2 admin panel. This field must have the option to add edit delete a client, form fields are (name, account_id etc.). Currently, I'm following the tutorial https://docs.craftcms.com/v2/#who-it%E2%80%99s-for. How to build this, anyone knows please help me to solve this. If the custom plugins are the only way please give me some step by step procedure to solve this, thank you
Now I'm trying to create a new custom plugin, but I don't know is that a right way to solve this issue
Expecting some step by step procedure to solve this

You can create your own plugins. Refer this URL's
https://pluginfactory.io/ and https://github.com/nystudio107/generator-craftplugin.
If you are not following these tutorials, then you can create your own plugins but that will be more time-consuming.

Related

OrangeHRM Custom Fields

I am trying to change the number of custom fields I can create in OrgangeHRM PIM section.
I have found a few articles on this site that say what part of the code to change but non saying where to find the file where the code is stored is in.
If anyone can help then that would be great.
I am running version 4.0 of OrangeHRM.
Thanks
orangeHRM have slots for custom field (i dont remember, but i think 10 slot in orange 4.0), you can use this for put what you need.
Out the box, you can follow guides for add more custom or pre-format fields, but not is more recomendable, this can make broken code.
meanwhile, you think work out the box, remember orangeHRM is a symfony based software, if you know how work symfony (MVC framework), work it whit OrangeHRM is more easy
good luck

Can not edit foreign key field in Django admin and pop-up form is not really popping up

I am using Django-suit for admin panel. My 'user' model has 'address' and 'contact' fields as foreign key. When trying to change the user's info, the address and contact fields has change/edit and add new options beside them. But the change/edit option remains disabled (see image).
Besides, when I click on add new icon, a new form window is supposed to pop-up. But instead it take me to the form in same browser tab. Any insight for solving this problem?
After getting question from #Efi MK, I tried once again to dig into the problem, and found my mistake with the help from this post (Django admin add related object doesn't open popup window?).
The main project was previously implemented using Django-1.6. I was extending the project by adding some new features using Django-1.11. The problem is, the static files I was using for Django-admin, were from previous version. The 'collectstatic' command didn't replace those files from previous version which has same name as new version. Unfortunately, I didn't notice that.
I deleted whole 'static' folder, ran 'collectstatic' again, and both of the problems mentioned in the question were solved. Thanks, Efi for asking :)

Create state for object in Rails

Firstly I'm sorry for my english. Ha ha
So, I'm learning to create sites with Ruby on Rails so I started with that framework. I stuck for a few hours because I do not find the right method for something that I try to do.
I try to create a crowdfunding site. I have successfully installed and configured ActiveAdmin and configured it to create projects. I would now like to add a condition into these projects. I would like 4 states: "Empty" when the project is created, but not all features are filled. "Upcoming" when it met all the requirements. And then when it is ready it should get "Upcoming" state. I want my project management panel to be represented on activeadmin. I have a select box that would change the project status to "Validate" or "No validate".
So I thought to simply use the tool 'if condition' to do the above, but my problem is I have no idea of ​​where I should put it. If I put it into the active admin controller, a controller would be created for projects or in my project model? Should I create a method and if so when to call it? Maybe do something else? I struggle to see clearly the whole picture.
Thank you in advance for your suggestions!

TFS - WIT Customization - Define a custom action

I'm working with TFS 2013 and VS2013 to modify a work item template but there are some issues I cannot resolve.
I want only the person who is assigned to a work item to be able to modify this. Is there any opportunity to set a general rule for this? I already tried to set each field readonly if the authorized user is not equal to the assigned user. But that didn't work for me, I suspect this is because of the difference between display name and system user (domain).
I also want to create a custom action, which automaticly changes the "assignedTo"-User. Unfortunatly I didn't find any proper guide how to define a custom action. Most guides explanes where an action is refered in a transition, but not where it is defined. Do you have any suggestions where to find such kind of guide?

in orchard why does manually adding entries to the database not work?

I am using the Advanced Menu for Orchard, I have alot of duplicated content to add to multiple menus so was trying to do this directly into the database.
The problem I had was when I add items to the database the items don't show up and the CMS breaks and doesn't allow items to be added (this causes a duplicate primary key error).
Can anyone tell me why this is, and what I would need to do if I wanted to add entries manually?
Not knowing how you've tried to add them, it's hard to say. Maybe you've created part records without content item records, making them orphans? But again, I'm just guessing, as I have no idea what you tried to do.
For manual entries you might be better off using the command line utility. see http://www.orchardproject.net/docs/Using-the-command-line-interface.ashx
Or the import/export functionality (which I think just runs the command line stuff)
If yo want to know more follow piotr's blog. It's full of great stuff!
http://www.szmyd.com.pl/

Resources