creating interface for adding n number of products to a category using umbraco - content-management-system

I know this question has been asked many times i went through all of them but couldn't find the right solution hence writing my problem here may be again...
I want to create CMS for category-Products solution..i think the name itself is quite explanatory..
Every category can have n number of products in to it.
but i couldnt get how can i do this via umbraco.
i know, i can access child not via inline razor macro but how to access child node contents ...or may be some other right way!!
Please dont give me links to Run away modules..i have already visited them ...and could understand very little...
Any suggestion will be helpful.

Create (if you haven't already) two different document types; one called Category, the other called Product. (You'll also want to add the appropriate properties.) In the Structure tab of Category, be sure to allow Product (and don't forget to allow Category under whatever type it will live). From here, you should be able to create Category nodes, and then beneath each of them, Product nodes.

Related

Making a cart in unity?

I am trying to make a cart that checks if the right item have been placed inside. I dont know how i would build this the best way. The way i would build this is by making the cart check for gameobjects names and then check if its the right one.
The result of doing it the way i would have done it, Is alot of werid names and also making it hard to add more items due to it almost being fully hardcoded.
First i thougt of using tags but i already use them for my pickup system and since you cant have more then one for some reason i cant.
You can try storing the products in a List. Each product would (inherit maybe) from the a Product.cs and each time you add one product in the cart, update the List.
Also you can check if is the right one before calling the cartList.Add() based on a string field(or int maybe?) in the Product.cs.
You can also store all the Product.cs in the Start method, either in a List or a dictionary, and check if it’s the right one before adding to cartList.
Sorry for the vague answer, I fast-typed on my phone. I hope this helps.

Is there a way to permanently add a box displaying points of students in the navbar

So I am working on a project that awards points to students for submitting assignments or participating in forums, these points are then exposed as an Http resource using Flask.
The points are calculated by looking at the events triggered for each student.
One of the requirements right now is to add a box next to the student's name that shows the total amount of points they have. I have two ways of accessing the points, either by an http request from moodle or by storing and retrieving the points from moodle's database.
My question is what is the best approach of creating this "box", I have tried using moodle blocks and hacking the code but nothing seems to be working. Is creating a plugin for this the only solution or is there a simpler way to do it (if it is even possible)?
To answer your question properly you should have provided at least the theme and the Moodle version you work with. Should this box be displayed everywhere? Is the score calculated for every course individually?
Two proposals that came into my mind:
You could create a custom plugin of type block. There you can display the score of the user of the session and the top ten for example (If the score is calculated for each course individually). A disadvantage is that every teacher of a course could remove that block easily, if he or she wants to.
If the score counts system-wide you could put that box at the start page of your Moodle website, where only people with higher rights will be able to remove it.
If you use boost you could display the score in the navbar right next to the users name. For that you will have to create a new child theme of boost and overwrite navbar.mustache of theme_boost which get's it's information from columns2.php because it's included into columns2.mustache. In this PHP file you can include your logic and display it with the HTML which you put into navbar.mustache.
Of course these are not really simple ways to do that. But at the moment I doubt that an easy solution exists for this problem.

Repeatable data content in umbraco

I am just wondering is there any plugin to create dynamic content for a page i.e something similar to a data repeaters in .net. To make it simple it should be a section that should contains 5 to 6 fields/property like
heading
heading 2
image
content - rich text editor
info
This must be in repeatable control so that the editor can add any number of these section a page and all these should be displayed in a single page.
Is there a plugin for the above functionality or what is the best way to achieve this.Any help would be greatly appreciated.
Thanks
Aneesh
You can achieve this without any plugins.
Create your repeatable section (containing the relevant fields) as a document type, and then use the multi-node picker in another document type to select one or many of the sections.
So for example, I could have a FAQs page (which uses a document type called "FAQs Page"), and I want to be able to add multiple question and answers to this page. I could set up a document type called "Question". This will contain two fields: Question and Answer.
On the "FAQs Page" document type, I would add a multi-node picker field called "Questions". This way, an author could select multiple "Question" nodes to appear on the FAQs page.
You would obviously need the code to output this, and also you would create a data type that inherited from multi-node picker, so that you could limit the selection to only Question nodes.
There is also the Repeatable Custom Content datatype which works well but does not support all data types. But it does support all the ones you need for your stated purpose (textstring, media picker, richtext area, etc).
You can find it here: http://our.umbraco.org/projects/backoffice-extensions/repeatable-custom-content I've used it a few times and it works really well in certain situations (e.g. where the items will not be shared across different pages of your site).
If you are sharing content components across multiple pages then #Digbyswift's solution is perfect.
I've always Digbyswifts method, but whilst looking for an alternate solution tonight I found this plugin, which is excellent for those situations where creating lots of widget nodes feels like overkill. It's licensed but the free older version is also available.
http://inaboxdesign.dk/blog/widget-builder-for-umbraco/

Do I need to create a module for: A user account, to create and save custom "objects" made of choices from a form

I used Drupal for 2 years, building some quiet "standard" sites (mainly "static content", no user logging etc.)
I always found the modules I needed for what I was expecting for (Views, Slideshows etc….)
In the next weeks, I have to build a little more complex project and I wonder if I can achieve it quiet easily with Drupal.
Until yet I never been through the drupal API, neither did I create a module.
But I'm a C++ developer, and I think there is no problem for me to learn rapidly how works an API.
I've been through the Drupal.org tutorial on how to create a Module (module "current_posts"), and I understood the global mechanisms
In the next weeks, I have to build a site with a little more complex parts, and I wonder how to achieve it with Drupal:
The site is compound of:
a "classical section", with contents, videos, etc…
a user section
The user section give a user the possibility to:
Create an account
fill a form to create an custom "object". The object is compound of 5 parts for example. And each part as several possibilities.
Example: Part 1 -> Options A, B, C, D, E, Part 2 -> Option aa, bb, cc, dd etc...
save his object to a collection
fill a second form to give extras infos about the object he has just created
save these extras infos
get some custom infos "built" upon the choices he made in section 2) and 4)
relog later and reload the objects he built previously
I wonder if:
it can be achieved only with existing modules?
…or do I need to develop a custom module?
Do i need although to create some custom Tables in the DB,
…or is it possible to deal only with content types
Do I need to "design" the tables interactions on a paper, like a real DB developer ;).
Is there some special things I should be careful with? Do you have some clues about how to realize this?
And does it seems feasible in a short delay?
And last but not least;) Is Drupal a really good solution for such a project?
Thanx in advance for your help!
Drupal is great for such a project. And you don't need too much extra modules, just core modules.
1) Core user module is fine.
2) Node type A. Create the node with the described fields and a user Role that will be able to add new A nodes as also as edit/delete own A nodes.
4) Node type B. Just add relationship for the Node type A so users can make the connection. Use the EntityReference module here. Similar user role permissions here.
6) This needs more information but it seems you need to use Views module to achieve this.
7) Welcome to Drupal! This is a core functionality also.

Best Product Listing Option for Concrete5

I'm going to be creating a Concrete5 website that will feature product listings. The listing system must offer all your typical ecommerce features, minus the ability to purchase items. It's strictly for browsing purposes only.
For example:
- Browse by category
- Search products
- Listings/results page with thumbnails and brief information (title, description, price in US/CAD, manufacturer, maker, etc.)
- Products single page (with detailed information, attributes and gallery/images)
All the things you'd expect to find in a listing system.
My issue is I can't find a specific add-on for something like product listings. This leaves me thinking that it may be best to use the e-commerce add on and do my best to hide anything related to the cart/payment process. That way it could just be used for everything else it offers.
What are your thoughts on this? Is there a better option?
Thanks for the advice!
Use the page list block. It has everything you need except for searching. But, in essence, that's what your requirements call for -- listing of pages.
Create a page type for your "product". The "brief information" can be in the Content block, or you can set as attributes. You'll probably want to make some minor changes to the block's view (by creating a new template) that displays the image as you want, the proper attributes, etc. Something similar to http://www.concrete5.org/documentation/how-tos/designers/styling-the-page-list-block/
There are several adanced page list blocks in the marketplace. You might want to start with those.
Right creat Page type.
After creat Page attributes.
Add a block page_list create a template for it and filter by attributes.
You can even use ajax to filter.
http://www.weblicating.com/doku/doku.php?id=cheatsheet/#.UbR7P0BmiSp
U can find here about page_list or read documentation Concrete5.