Microdata & FlexiContent

More
11 years 1 month ago #43007 by dan
Microdata & FlexiContent was created by dan
Hi,

First off, I congratulate the developers of FlexiContent for coming up with the most versatile and most developer friendly CCK. I've tried almost all other CCKs, but due to one reason or another I had to drop them one by one, finally found FC which at first looks intimidating but after playing with for a day or 2 it looks quite developer friendly and host Soooooo many features to customize your application as you want.

I am working on a project which requires integrating MicroData or Rich Snippets of Products (product detail, rating and reviews).

I've been able to integrate product reviews code on item details page, but I need snippets for rating, product price, etc.

For rating I want total count and rating average figures, please let me know how to do that.

Also I want to know as to how I can fetch the contents of single custom filed on category and item details pages?

Thank you very much!

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #43013 by ggppdk
Replied by ggppdk on topic Microdata & FlexiContent

dan wrote: I am working on a project which requires integrating MicroData or Rich Snippets of Products (product detail, rating and reviews).

I've been able to integrate product reviews code on item details page, but I need snippets for rating, product price, etc.


which one did you integrate?
if you don't want to mention publicly then send me a PM

(we are thinking of making a FLEXIcontent Content type "Review" and relating it to other types via relation field)
but to support the above a couple of enhancements need to be done to the relation field

dan wrote: For rating I want total count and rating average figures, please let me know how to do that.


You want of all items
- in current category view (with filtering)
- in current category view (regardless of filtering)
- in current page only (e.g. current page has 20 items)

dan wrote: Also I want to know as to how I can fetch the contents of single custom field on category and item details pages?


have you looked in our FAQ ?
e.g. i think you need this
Example of calculating an aggregated field value for the items assigned to a category


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #43017 by dan
Replied by dan on topic Microdata & FlexiContent
Hi ggppdk,

I've been silently reading the forum threads for several days and I must appreciate your technical knowledge and support for resolving issue asap.

I am considering the following microdata on product details page:
Code:
<div itemscope itemtype="http://schema.org/Product"> <span itemprop="name"><b>Product Name</b></span> <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <u>Rated:</u> <span itemprop="ratingValue">4</span> / 5 based on <span itemprop="reviewCount">50</span> customer reviews </div> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <span itemprop="price">$50</span> <link itemprop="availability" href="http://www.products.com" />In stock </div> <u>Product description:</u> <span itemprop="description">This is the description of the product.</span> </div>

I don't know if it is necessary to put all the required info like product name, price, URL, description, aggregate rating in one place, as mentioned above.

I am thinking to fetch (if you can tell me a way to pull them from my custom fields, selectively from DB) product name, price, URL, description, etc. from my custom fields.

Aggregate rating figures from flexicontent_items_extravote table and reviews from JComments table, as I am using Jcomments for reviews.

I think now you have a fair idea of what I want to achieve.

Regarding what I've integrated is not a significant task, I am just using the following code in the file "modular.php" to fetch total No. of comments, which can then be used as review count, using the following snippet:
Code:
$reviews = JComments::getCommentsCount($item->id, 'com_flexicontent');

- in current category view (with filtering)
- in current category view (regardless of filtering)
- in current page only (e.g. current page has 20 items)

I guess, I would like to use the second option, i.e. "in current category view (regardless of filtering)" and on item detail page.


Thanks for posting the list of api code. Is there an easy way of calling field data on pages by just using variable names, as I used to do in AdsManager.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #43021 by ggppdk
Replied by ggppdk on topic Microdata & FlexiContent
Hello

I guess, I would like to use the second option, i.e. "in current category view (regardless of filtering)" and on item detail page.

Did you try the given above FAQ article ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #43145 by dan
Replied by dan on topic Microdata & FlexiContent
Hi,

Yes, thanks. I am working on it.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.367 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline