i am not that much export in Joomla. and i stuck at one problem.
i want to add some custome fields in article manager page when we add / edit article from admin side. just like wordpress when i add some function in function.php page it reflacts on wp-admin side.
also i want that selection to be effect on front side.
can some one show me is there any way i can add a function in my theme which will show a custome selection fields on admin side and based on that front page changes.
i am using Joomla 3.4
Thanks in advance
You need to write a plugin to add this functionality. There is a recipe here. In the example they are using the #__user_profiles - table, which might be okay, but adding your own table might be more flexible.
This here might also be a useful link.
Related
I need your help. Its my first time when I use woocomerce in WP and I don't know how to add custom button. On public product view I must add button with link to selected wikipedia page. On private admin product view I need custom url or text field in (wp-admin->product->add product).
Okey now I create custom field and taxonomiex but I don't know what next.
I tried to find some tutorials but I did not give advice.
I also had a similar situation like this. I purchased a plugin to fix it due to tight deadline. You can do it using below methods:
1) By using ready to use plugins
https://wordpress.org/plugins/woocommerce-custom-product-data-fields/screenshots/
(Free one)
https://codecanyon.net/item/woocommerce-custom-fields-product-addons/11332742
(Paid one)
2) You can also create a plugin by yourself
Basically a plugin will allow you to modify the site as you require without modifying the wordpress core. Learn about Hooks and Filters.
I would suggest you to go with 2nd option, learn to develop plugins so that it will be helpful for you in the long run. Read the documentation https://codex.wordpress.org/Plugin_API. It will take some time but it is worth it.
I have been looking for a solution to display custom field tabs in the Joomla
front article edit page.
http://www.aixeena.org/extensions/aixeena-easy-cck
Aixeena Easy CCK
I installed the plugin of aixeena, two custom field tabs: the Extra content and Extra content 2 are displayed in the backend admin article edit page, which is great. But we also need to let regular edit their article and enter values in custom fields under those two tabs. Any idea how to achieve this?
I tried a couple of other sites posting the solution of adding custom fields in article, such as Rating region described in the site:
https://docs.joomla.org/Adding_custom_fields_to_the_article_component
I was not able to make the Rating tab displayed in the front end article edit page neither.
I tried the fieldattach, it does supports custom field tab ( which is the group name of custom field), the list field type only contains static values, we have to define fieldset and field type through xml file.
Any help is greatly appreciated.
I just finished writing a couple pluginsto do this similar thing. I wrote my own plugin to add the extra fields - but it looks like the one you've already used is very similar.
I had a really hard time figuring out how to add the fields for frontend editing as well. But I finally figured it out.
First, you're going to need to copy the com_content form edit.php into a template override (/templates/your_template_name/html/com_content/form/edit.php).
In that file, add the extra fields you have. You'll need the name of the field that you put in the xml file for your plugin you already have. Add them right before/after the fields that are already in the file, that you want your fields to appear before/after. Example:
<!-- CUSTOM begin custom fields -->
<?php echo $this->form->renderField('video_url', 'attribs'); ?>
add all your fields in there - replacing 'video_url' with your own field name. The plugin you already have already saved these fields to the 'attribs' part of the article, so you can leave that there.
The plugin that I used to create the fields for the backend is a really simple one based off of this tutorial https://zunostudios.com/blog/development/203-how-to-add-custom-fields-to-articles-in-joomla
What I'd suggest is to go ahead and create that plugin too. Except in the zfields.php file, change "$app->isAdmin()" to "$app->isSite()" - make sure the xml files have the same names as your other plugin xml files, so they save to the same place, and you're done. The fields will show up on the frontend edit form now.
What I'd really recommend is to get rid of the Aixeena plugin, and just make that easy plugin using the tutorial above - it's super easy. When you make it, duplicate the "if ($app->isAdmin())" section, copy it right below it, and change "isAdmin" to "isSite" - and now you've got the entire thing, all your custom fields, both frontend and backend, all in one place. Now just do the edit.php template override, and you'll have them displayed in both the front and backend. I hope that helps - if you need I can upload more example code.
I am making an ecommerce website using magento.. I want to know if i can customize the back end as per my requirement.
Example : In the manage products page i want to create a custom page and give the admin users the option to easily add the products (Most of the values will be taken by default) and some will be chosen by user (I want to change the default UI and functionality for the admin users)
Is it possible ?
Yes, it is possible. You can develope a simple module or a simple php one-file-script and add products easily using Magento API. You can set default values to some attributes inline.
I found a blog post, I don't recommend to use that code because it looks messy, but it will give you a hint;
http://magentocoder.jigneshpatel.co.in/automated-quick-simple-product-creation-in-magento/
Also, there's a non-free module in magento connect named "Quick Product Add". It looks like what you need but I didn't test it and this is not a recommendation. You can find it here;
http://www.magentocommerce.com/magento-connect/quick-product-creation.html
There are many tutorials to adding extra tabs to the product page but I am struggling to find information on how I can create tabs on a new form from scratch. I have looked at the following resources but the information presented doesn't seem to be very clear or my magento isn't good enough to understand it yet:
http://www.excellencemagentoblog.com/module-development-series-magento-admin-module-part3
how to create multiple tab in magento custom module?
I am trying to emulate the tab system that runs vertically down the left side of the product section but on a custom form.
Are there any references out there on how this should be done (similar to the official magento one explaining how to create an admin module)?
p.s I haven't posted code as anything I have is directly from the tutorials.
I ended up working through the excellencemagentoblog version and have successfully got tabs working. The examples given aren't exactly straight forward unless you understand the magento structure really well but the information within the article is adequate enough to work through.
Let's say I'm making a blog in Drupal 7, and I want my end user to see a link: "Add Post", and when he clicks on that link he can add a new content. But instead of the default administration page, is it possible to create a new one, which has just the post title, tags, message and etc?
I've been searching for 2 days now, founding nothing about where to start/how to start a specific administration page instead of the default one.
You will have to create a specific module for that which will:
define the blog post editing form you want to have
define a page through a hook_menu function that includes the form
define a menu entry for it in the administrative menu
etc.
You should really get a little more into extending drupal by reading some pro drupal 7 book.
At least start reading http://drupal.org/node/1074360
Another very good starting point is the drupal "examples" module, which provides example code for most things your modules need to do:
http://drupal.org/project/examples
You could probably do all you need to by adding a template for the blog posting page to your theme. This lets you customise the display of the form, without needing to get too deep into Drupal programming.
Alternatively, you could create a module to replace the default blog submission form with one if your own design.
The theming and module design guides on the Drupal website give lits if detail on both these approaches.
James
you can have a different theme for management section, you can have multiple permissions depending on role, you can customize any page using ***node.tpl
Every add/content_type is a form. Forms can be altered with hook_form_alter or hook_form_id_alter.
If you want to have different fields that are shown for different roles, first see if it could be done on the admin/people/permissions page, if not write extra if conditions inside the form_alter.
e.g. check user role:
global $user;
// Check to see if $user doesn't have the administrator role.
if (!in_array('administrator', array_values($user->roles))) {
// Alter the form
}
You can check the form variables with dpm($form) when the Devel modules is enabled.