Structuring content in Expression Engine - php

I need some help figuring out the best way to sctructure content using Expression Engine. I've red the documentation, looked at all information I could find but I haven't found the answer. I hope someone here could help.
What I want to create is a product catalogue that would look like this:
/bikes (product category, displays the product families, two-wheelers, three wheelers etc.)
/bikes/two-wheelers (product family, displays the products in the family)
/bikes/two-wheelers/red-bike (product)
/bikes/two-wheelers/red-bike/wheels (optional product details page)
I understand that EE URI's are template-group/template based and that the content is in channels. I'm not yet sure how categories can be used in this.
Essentially I would like to create "simple" parent-child relationschips between the entries and I found a plug-in called Structure that does something like that. Unfortunately, this project needs to be done without additional (payed) plug-ins.
Is it possible for the product to be the channel, and product-family and product-category to be attributes of the product in EE? Would that work? Is there a better way to structure that?
I realise that this isn't a straight-forward question, but I'm still hoping to be pointed in the right direction.
Thanks for reading!

Probably what you'll want to do is use categories to break your products up into families. You can nest the categories like so:
Bikes
Two Wheelers
Three Wheelers
Tall
You'd then assign your "Red Bike" channel entry the category of "Bikes" and "Two Wheelers".
For the extra product detail page, you could probably use related entries. Set up a channel called "Wheel Types", then publish entries for all the different kinds of wheels. Then use a relationship field type in your "Products" channel to associate a specific wheel type to your "Red Bike" entry. You can then link to that detail page using a related entries tag in your template.
The Structure module would really help you easily craft the URLs you are looking for, but if you can't use it then the Freebie extension should help. But of course the time it takes you to figure out how to use Freebie for your needs would probably be worth far more than the cost of a Structure license.

Related

Is it possible to have a custom category namespace in MediaWiki?

I'm currently setting up a Wiki for a friend of mine and me with the purpose of a centralized collaborative music system with tabs, lyrics, connections etc.
Categories for songs, albums, interprets etc. are very helpful here (and we don't want to miss them), but we are continually facing the problem of longer and longer internal links and a decreasing readability, because we have to suffix every song with "(Song)" and every album with "(Album)" etc. The reason for this is the existence of ambiguities between songs, albums and interprets, like when a song has the same name as the album it is in.
I also stumbled across namespace aliases, but this doesn't solve the ambiguities. The same applies to all extensions available here.
What I would like to do is creating a new namespace ("Album" for example), so I can get rid of the suffixes. I am aware of how to add namespaces etc. as described here, here and here, but I didn't find any information on having them behave as if they were categories, i. e. putting [[Album:Whatever]] at the end of a page Song:Whatever would have the song included in the category Album:Whatever and if I want to output the category Link without the prefix, I would type [[:Album:Whatever|Whatever]].
Does anyone know a way of adding a custom namespace "derived" from the category namespace like above? Any help would really be appreciated. Thanks in advance.
Maybe I'm not completely getting you, because this sounds to me like an overcomplicated way of doing things. Why not simply use a template?
You can have a template named "Album" (or "Albumcat", or something similar) that looks like this:
<includeonly>[[Category:Album:{{{1}}}]]</includeonly>
Then you can simply include it on the article page:
{{Album|Urban Hymns}}
...and the article will categorized as "Album:Urban Hymns".

Same sku in different categories - woocommerce

I was wondering if anyone can help me with this head scratcher. I am trying to assign different categories to the same SKU in woocommerce.
You might be asking yourself, why does this idiot want do that?
There is a simple reason for that… I know that the categories one assigns to a product SKU determine the navigation to that SKU/Product.
The example that I will be using:
Lets pretend that the SKU is A95845 (Red Ridding Hoods red juicy apple – included in the basket choices below)
Baskets->Wooden->Varnished
Baskets->Wooden->Unvarnished
Baskets->Plastic->Red
I would like the user to get to the product A95845 for each instance. It is like Red Riding Hood taking alternate roads, but getting the happy ever after regardless of which road she chose. (Well that is my opinion. And a way better interactive experience for the user.)
Now for your opinions…
You are hundred percent correct Steve. What I did wrong was the way I imported the categories. I used csv import and did not separate subcategories. This should have looked like this.
Baskets->Wooden->Varnished|Baskets->Wooden->Unvarnished|Baskets->Plastic->Red

Create objects instead of articles in joomla?

Im trying to make a web in joomla kind of:
http://www.cuevana.tv/#!/peliculas
It will not be about, films nor online streaming, but im thinking in have "objects".
I have checked that site and i notice that the films are kind of objects, they have:
Genre, Language, Actors, Title, Category etc etc.
In joomla i have the option to make only articles, but with articles i can't have attributes.
Any idea on how can i achieve this ?
I'm not sure what you mean exactly but with Joomla 3.1 you can assign tags. I'm not sure though what you mean by saying that articles don't have titles... articles and all content items in the core have titles, images, links, keywords, teaser text, and in 3.1 tags.
I'm assuming you want to be able to search based on these attributes so really I think nested tags are going to help you and you may want to use plugins to extend the tags api. Also Smart Search maps will possibly be helpful.
What you need is a 3rd party component to extend Joomla and provide CCK capabilities.
Look for Zoo, K2, SobiPro, Fabrik.

How to match similar products for a price comparison website

I am working on a small price/product comparison website, it's a niche website related to laptops and tablets, built in php.
My problem/question is how to do the following :"matching similar products from different merchants". I mean, when the product has EAN/ISBN, a simple %LIKE% can do it. But the datafeeds I get have a lot of products missing the ean or any other unique ID. How do price comparison websites deal with this?
I'm thinking of searching for string similarity between products names, but I don't want to match : Acer iconia tab a500
and acer iconia tab a500 case as similar products. any ideas?
Thank you !
To implement the comparison you have to put some tags for the products.And when a person search for a product, list the other products which have the same tag.
eg: for a laptop tags are like laptop, acer, 14", 500$(price), etc.
So when someone search laptop, list all the laptops. so that he can choose 2 of them. and make comparison.
Hope you got the concept.
I faced a similar problem. There are different solutions.
You can find similar items with some search technology (full text search engines can be helpful) or by using some data mining methods (have a look at named entity recognition for recognizing brand, model, color..etc. and especially machine learning methods for text mining). Latter can be much more accurate if you do it well.
In both methods, then you can use some additional fuzzy logic for string comparison of the words that can be written in different ways. and general predefined rules to eliminate wrong items. for example, considering the prices can differentiate an item and its accessories although they have very similar titles.

Drupal views structure

i've a Drupal theory/strategy related question. First i want to say that i'm very new to the drupalling world, so this question can be quiet stupid. I'm trying to develop/make a part of a site that has the following structure:
(level one) virtual_exhibitions: shows an overview of exhibition categories.
(level two) themes, places, people: which is an exhibition category.
(level three) love, belgium, napoleon: which are exhibitions, every one of there will give a list of photos related to the exhibition subject.
now i created a new node-type: virtual-exhibition.
and i created a vocabulary: exhibition-categories.
now to create the structure i used views:
one view to list all the nodes from a selected category with a link to the node.
one view to list all the categories.
now i was wondering if this is the drupal way to do this, or are there better alternatives. This is working, but i'm not sure if this is the right way.
Another question related to this, i want to use clean urls:
virtual_exhibitions
virtual_exhibitions/themes, virtual_exhibitions/places, ...
virtual_exhibitions/themes/love, virtual_exhibitions/places/belgium, ...
The first one is easy, i can configure this in the views UI. The second one is a bit harder because the categories can have special characters like a ' or a , etc. So i need a raw version (as can be used in path auto) in fact it would be best that my default link of the vocabulary term redirects to this view. because the url of the vocabulary term is very easy to configure using path auto and then i can just use the vocabulary term url in stead of always building it manually.
The reason why i'm using a view for the second level is because it needs a custom layout and as far as i know it isn't possible to style a vocabulary-term of a specific vocabulary. When you style it this style will be used for all the vocabulary-terms.
i hope my description is a bit clear and that somebody can give me some remarks on how i best do this.
I think you might want to take a look on views arguments.

Categories