I've recently added custom fields to the article component using the documentation in the following url:
http://docs.joomla.org/Adding_custom_fields_to_the_article_component
Now this adds the custom fields defined to every new and existing article. Is there a way to define custom fields for specific article layout overrides.
Example:
If I have custom layouts for the category blog, (news, portfolio, events) can I define different custom fields for each category when creating a new article?
Kind of the way custom post types work in wordpress, or the way k2 component works, can this be done in joomla alone?
This is considerably easier to manage in K2 since the functionality is built in to do specifically what you want. It is trivial to assign extra fields to each category without having to go through the much more complex process described in your link.
However, if you want to stick with com_content, then you will need to create alternative layouts for displaying each category. You will still have all of the custom fields show up in the admin, but you can control the display on the front end with the alternative layouts. Here is the documentation (it's the same for 2.5) - http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6#Introduction_to_Alternative_Layout_Feature_in_Version_1.6
Related
I'm trying to create a WFFM form and I need to set one of two fields to be required. Do I need to create custom fields? Or is this something that I can achieve with the module itself?
You could possibly use the Morph module, which you can download from the Sitecore Marketplace.
From it's description:
Selection-dependent inputs require users to enter additional
information related to an initial selection before they can complete a
form. In almost all cases, it allows making web forms simpler and more
responsive to user actions and personalizing forms depending on
visitors’ features.
If memory serves it uses the Sitecore Rules Engine to decide which fields to show/ hide based on inputs. However, I'm not 100% sure whether you can use the Required checkbox there, but worth a try.
No custom field types are needed. The WFFM Form Designer has a Required checkbox for each field row and most standard fields support this along with a custom validation message.
I'm a little confused on how to get this working. Simply put, I want to replicate the functionality found here: http://codenegar.com/woocommerce-ajax-product-filter/shop/
Specifically, I want the ability to filter products using a range slider -- just like price -- but with my own custom attributes.
I've looked into using the YITH WooCommerce Ajax Navigation plugin -- but it only allows lists, colors, and dropdowns (no range sliders)
This codenegar plugin is exactly what I want -- but it seems it's no longer available for purchase.
I also looked at the default Layered Navigation Widget -- but to no avail.
What gives? Is there any commercially available plugin I can use?
For what it's worth -- I'm using the Sistina theme from http://yithemes.com/
Thanks! -Josh
You can try this one - https://wordpress.org/plugins/woocommerce-ajax-filters/
It is well supported and updates are often.
Features:
No reloading, only ajax
Slider, radio or checkbox
No spamming with widgets in admin, 1 widget - multiple instances
Filter visibility by product category. Different categories pages = different ( + global ) filters. One shop for everything
Filter box height limit with scroll themes
Working great with custom widget area
Unlimited filters by product attributes
I'm also looking for this plugin, I think it will have to be built manually.
This looks like something similar, however there is no demo, so we cant be sure it does what it says.
http://www.diczo.com/product/woocommerce-ajax-product-filter-wordpress-plugin
I'm trying to get my head around Joomla 3.2's new framework and develop a capability/feature in a custom component (lets call it com_custom) that can load com_content's category blog view within com_custom's view, using the category blog's menu item id!
There are quite a few codes that I saw here and around the web that only load the default view of the 'imported' component, rather than the view specified in the imported component's assigned menu parameters. Also, most of these codes use deprecated functions, so I'm quite lost now.
So what I need to be able to add is:
Include a category blog view (say from menu item id 223) within com_custom's current view.
It should import all of the parameter setting of the category blog's menu item.
It should not be in an iFrame
Any help is much appreciated!!!
You can't include com_content because it makes use of the JPATH_COMPONENT constant in 14 different places, most notably in content.php (the main file that's loaded, even before the controller) and in most views, in order to load helpers.
These are the first two ways that come to mind to overcome this limitation:
Instantiate the articles model, load the data, and use your view to display it; you'll need to dig into the menu table to find the params related to your menuid; Bewre: Search engines might consider the duplicate content as spam.
Insert a jquery ajax call to get the url of the menuid adding &tmpl=component i.e.
index.php?option=com_content&view=category&id=13&Itemid=522&tmpl=component
The latter will be much easier to implement. Search Engines will NOT see the different content under different urls, since it's ajax.
Regarding the limitation, see also this question:
Joomla how can i create model from other component
I created a Create Article menu Item Type and need to apply an alternative layout to all article created using this frontend form. But Joomla not provide this option. How can I do that?
It's basically a business decision what fields to allow or not allow to be modified from the front end but in general the thinking is that too many complex choices in the front end is not a great idea, but for your business logic that may make complete sense. Take a look at how the display of image and links fields in the front end are turned on and off. You could override the edit layout and bring some more fields forward probably.
I'm begginer in the Orchard CMS.
I would like to create Content Type composed from different parts and fields which I know before. I want this content type to be enumerable ie I use content part List, I want to list it using telerik components.
For example my content type is Product and I specify its fields: Price, SKU apart from default: user(who created it) and creation time fields. Moreover the product contains also image gallery, ie image gallery content part.. I want the list of products to be shown using Telerik component Grid, including creation time and user name.
Is it better to create the whole module specifying all its fields(price,SKU) and its templates or is there any way to just take what has been already created in orchard as a content type and display it different way(using telerik)..
thanks for any advice ;)
Tomas
It appears this topic was moved and answered here:
http://orchard.codeplex.com/discussions/371276