Taxonomy and Prototype in Spree - spree

I want to know briefly few spree terms like Taxonomy , Prototype , properties, and option type .
Consider If I am making website for ordering food online , than Taxonomy can be "Chinese","Italian","indian"..etc...what should be prototype ? and properties or option type is possible...
Also I want to create a side menu look like this
Grab by chinese
-Noodles
-mamos
Grab by Indian
-Dosa
-bread
So What should be taxonomy and prototype here in this case ? also how to achieve this type of thing using admin Gui in spree like creating taxanomy...than ..... ?

"Chinese" and "Indian" would be the taxonomies, while "Noodles", "Mamos", "Dosa" and "Bread" would be taxons nested inside those taxonomies.
For more information, please read the "Taxons and Taxonomies" section of the Products guide.

Related

Camunda custom candidate task property

I am new in Camunda.
Could you please tell me whether it is possible to add custom property 'camunda:candidateUsersReadOnly' something like:
<bpmn:userTask id="Task_1eqdx5t" name="task name" camunda:candidateUsers="IC754VBA08D5UC93XE,IC754VBA08D5UC93ZC" camunda:candidateUsersReadOnly="IC754VBA08D5UC93XE,IC754VBA08D5UC93ZC">
and then call getTaskService().getIdentityLinksForTask(taskId) to get ids defined in 'camunda:candidateUsersReadOnly' ?
Thanks!
Pretty sure you can't use a custom camunda: namespace attribute. But maybe you could achieve your goal by using extension elements.
You can add them on the "extension" tab of the properties panel in the modeler.
See Extension Elements for documentation and samples.

How to use > and < operators in SharePoint search API?

I am using SharePoint Search API and referring link SharePoint Search REST API overview. I want to use property operators. Please refer 'Property operators that are supported in property restrictions' section in link Keyword Query Language (KQL) syntax reference
I am forming query as http://server/_api/search/query?querytext='AmountCurrency > 10.50'&selectproperties='Title,Author'
Similarly http://server/_api/search/query?querytext='AmountNumber < 20.50'&selectproperties='Title,Author'
In above queries AmountCurrency and AmountNumber are managed properties for Currency column and Number column respectively. But search api not returing any row. For me : and = operators are working fine. How to use greater than and less than operators in search API?
Make sure the field name you are using is defined in the Managed Properties in the Search Schema.
Or you can build the query using SharePoint Search Query Tool.
Got it. It is due to the managed property type. Following are the available types when we create managed properties.
Text
Integer
Decimal
Date and Time
Yes/No
Double precision float
Binary
When managed property gets created automatically for site columns, the default type is Text. While creating managed property manually only Search Service Application administrator can choose any type. All other users can choose either Text or Yes/No.
I am not SSA Administrator. So I have used default unused managed properties. Please refer https://technet.microsoft.com/en-us/library/jj219667.aspx#Anchor_8. Used RefinableDecimal00 and RefinableDecimal01 and mapped appropriate crawled property to them. Now everything is working fine

Get all wikipedia category list with each language using api?

I want get all wikipedia categorys name with api.
i search it and find some way like dumb data or sql data but i want make it this with wikipedia api. Also i found it some great link for wikipedia tools like wmflabs.org but this tools not have my need.
i want use wikipedia api and result json data and get english wikipedia category name list. All categories content is here-> https://en.wikipedia.org/wiki/Portal:Contents/Categories
i need same style category name lis data all other languages.
i find it some query but not enough like(find subcategorys in weapons category)-> https://en.wikipedia.org/w/api.php ?action=query&list=categorymembers&cmtitle=Category:Weapons
Is any solution have for this situation?
All the categories belong to the Category namespace, that has id=14, so you can use allpages API and filter by namespace using the apnamespace parameter. Here's an example query.

Liferay - how to get assetentry subtype in velocity template?

my asset publisher is displaying two types of Web Content Article Subtype (asset publisher->configuration->asset selection->asset type->web content article subtype->select more than one...).
I need to get subtype of asset entry to create a right structure based on entry subtype, something like:
#if (!$entries.isEmpty())
#foreach ($curEntry in $entries)
$curEntry.getSubtype()
#end
#end
Is it possible?
Thanks.
You can use liferay services in VM like example in below link
http://www.liferay.com/community/wiki/-/wiki/Main/Access+to+Liferay+services+in+Velocity
Go through Asset Publisher Portlet -> configuration_dynamic.jsp it has the code which gets the subType you require i.e. Structure created in webcontent.
Other way to get the structure for webcontent is using DDMStructureLocalService it has getStructures() method where you can pass webcontent (i.e. journal class id)
Hope it gives you the direction to achieve what you are looking for.

Getting error while reading salesforce custom field type Rich Textarea

I am using salesforce.cfc (downloded from Riaforge) to integrate coldfusion with salesforce.
<cfset latestProductList = salesforce.queryObject("SELECT Id, Name, Description__c, Price__c, ProductImage__c FROM Product__c") />
I have created one custom object named "Product__c". This object have one custom field "ProductImage__c" type "Rich TextArea". When i an trying to get product without this custom field it is run, but when i am trying to get product with this field i am getting below error:
"INVALID_FIELD: Name, Description__c, Price__c, ProductImage__c FROM Product__c ^ ERROR at Row:1:Column:44 No such column 'ProductImage__c' on entity 'Product__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. "
But i have this field. attached screen image of salesforce below.
Thanks,
Arun
A quick look at Salesforce CFC shows that it hasn't been updated in a while. The file SalesForce.cfc is pointing at:
https://www.salesforce.com/services/Soap/u/11.1
That's version 11.1 of the API, which is quite old and is long before rich text fields came into existence.
You might be able to fix this issue by simply updating the reference in SalesForce.cfc to the latest version of the API by changing
https://www.salesforce.com/services/Soap/u/11.1
to
https://www.salesforce.com/services/Soap/u/28.0
in that file, although there's a pretty good likelihood that that will break something else, since version 28.0 will have lots of new stuff that SalesForce.cfc is not coded to handle.
In any case, your problem is in fact the API version that you're using. In cases like this, when a field type did not exist as of a certain API version, then that field is invisible for that version. In your case, your rich text field is invisible for your API version, 11.1.