Drupal views structure - php

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.

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".

Joomla 3 custom Template

I'd like to achieve the following content structure but no template I know fits it.
Can you advice me from what Template to start modifying? I thought of "Category Blog".
I'm currently planning to integrate the years by adding categories that contain categories with caption/description containig articles I want to be shown completely in this view.
In addition I'd feel grateful to you providing me sources to learn more about how to get the data I need (categories with description, articles with headline and content).
I until now just did CSS adjustments for Joomla based websites and therefore don't know that much about how to actually reviece data from the DB.
PHP and MySQL aren't a problem though.
A bit fuzzy maybe because I don't exactly know where to start but I'm hoping the best.
Thanks a lot :)

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.

Structuring content in Expression Engine

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.

PHP Detect Pages Genre/Category

I was wondering if their was any sort of way to detect a pages genre/category.
Possibly their is a way to find keywords or something?
Unfortunately I don't have any idea so far, so I don't have any code to show you.
But if anybody has any ideas at all, let me know.
Thanks!
EDIT #Nican
Perhaps their is a way to set, let's say 10 category's (Entertainment, Funny, Tech).
Then creating keywords for these category's (Funny = Laughter, Funny, Joke etc).
Then searching through a webpage (maybe using a cUrl) for these keywords and assigning it to the right category.
Hope that makes sense.
What you are talking about is basically what Google Adsense and similar services do, and it's based on analyzing the content of a page and matching it to topics. Generally, this kind of stuff is beyond what you would call simple programming / development and would require significant resources to be invested to get it to work "right".
A basic system might work along the following lines:
Get page content
Get X most commonly used words (omitting stuff like "and" "or" etc.)
Get words used in headings
Assign weights to different words according to a set of factors (is used in heading, is used in more than one paragraph, is used in link anchors)
Match the filtered words against a database of words related to a specific "category"
If cumulative score > treshold, classify site as belonging to category
Rinse and repeat
Folksonomy may be a way of accomplishing what you're looking for:
http://en.wikipedia.org/wiki/Folksonomy
For instance, in Drupal they have a Folksonomy module:
http://drupal.org/node/19697 (Note this module appears to be dead, see http://drupal.org/taxonomy/term/71)
Couple that with a tag cloud generator, and you may get somewhere:
http://drupal.org/project/searchcloud
Plus, a little more complexity may be able to derive mapped relationships to other terms, especially if you control the structure of the tagging options.
http://intranetblog.blogware.com/blog/_archives/2008/5/22/3707044.html
EDIT
In general, the type of system you're trying to build relies on unique word values on a page. So you would need to...
Get unique word values from your content (index values or create a bot to crawl your site)
Remove all words and symbols you can't use (at, the, or, and, etc...)
Count the number of times the unique words appear on the page
Add them to some type of datastore so you can call them based on the relationships you're mapping
If you have a root label system in place, associate those values with the word counts on the page (such as a query or derived table)
This is very general, and there are a number of ways this can be implemented/interpreted. Folksonomies are meant to "crowdsource" much of the effort for you, in a "natural way", as long as you have a user base that will contribute.

Categories