I've got the following two vocabularies:
Categories, with items:
Big
Medium
Small
Make, with items:
Samsung
Whirlpool
KIC
I've then made a product content type, where these two categories are required.
My problem comes in where I want a menu (preferably using taxonomy menu and dhtml menu) so I can obtain the following menu:
Big
Samsung
Whirlpool
KIC
Medium
Samsung
Whirlpool
KIC
Small
Samsung
Whirlpool
KIC
How can I go about accomplishing this?
I know, normally it would be fairly easy if I made only ONE vocabularly, and for each taxonomy term, i add the make as sub-terms... but I want to do it my way, so that if a new make comes on, that I don't have to go add it to each category. Does that make sense?
Hierarchical Select is the best tool like that I've heard of, but it doesn't play well with two different vocabularies- the module needs the tiered relationships to be defined externally, either by a taxonomy hierarchy, Views, and so on.
I don't think the model of two separate vocabularies will easily be supported by any existing module. If one of the "categories" were presented as a series of nodes tagged by the first category, you might build something with Views & Hierarchical Select to achieve what you want.
Related
I am new to Silverstripe so am still learning the best way to achieve certain results.
I have the following website: http://i.imgur.com/HHHIlwA.jpg - that I have converted into a silverstripe theme etc. I have setup the front page as a HomePage.ss.
Now I want to be able to edit most parts of the page from the CMS. I have followed this tutorial on this website: http://www.silverstripe.org/learn/lessons/working-with-data-relationships-has-many - and have created a region under the "Articles" heading in the pic which comes up as a tab on the CMS in the admin panel. http://i.imgur.com/Gi7kZmq.png
My question is, is the best way to make parts editable to make them regions like what the video has shown etc? E.g if I wanted to edit the section in the pic that has the picture of the big ring and the text next to it, am I best to make this another region? What about for things like headings etc?
Thanks in advance :)
There are several possibilities to solve this problem:
either use several $has_many for each group if you have a fixed structure
if you need flexibile structure you can use one of the several 'block' modules like https://github.com/bummzack/page-blocks or https://github.com/NobrainerWeb/Silverstripe-Content-Blocks.
There are some more modules like this around, each have pros and cons, depending if you need reusable blocks, translatable blocks, want to save the relations with Versioned etc... #lerni made an overview about those modules.
I'm developing an online magazine, and am using Views to generate blocks for the homepage.
I am using a slightly customized Article as the content type for most of my data, with Views providing blocks with the necessary fields from those Articles. For example: the Latest Blogs View shows the Short Headline and Teaser fields, but the Top Headline View provides a block with the Image and Full Headline fields.
Right now I'm using Views to filter Article by tag, so Articles need to be tagged to show up on the homepage. Most of my blocks are lists and don't need the tightest sorting flexibility. However, some blocks are not lists, or it's important for the end user to have control over the display order of Articles in certain blocks. Is there a way to enforce site-wide 1:1 tagging for term:article relationships. For example, I want to ensure that only one Article is tagged top.news.1 (the first Top News slot), and likewise only one article is tagged top.news.2. When someone wants to add top.news.2 to an Article, the one Article that already has that tag will lose it. Or something like that.
I have played around with Views enough to gather that it is really powerful, so this level of microcontrol might not be necessary with the right configuration, but I think restricting taxonomy versus configuring Views filtration would address the problem more directly.
I've looked around the web and haven't been able to find anything really relevant. Sorry if I missed something obvious.
Thank you!
Is it correct that you (or your site editor) want the ability to:
spotlight a certain nodes
arbitrarily change the order of the spotlighted nodes, or add/remove a node from the spotlight while keeping the position of the other nodes?
If so, your best bet is likely Nodequeue, which does exactly that, and allows you to restrict the number of nodes spotlighted. It's very easy to use and our non-technical clients have no problems with it.
If your use case is different from that or requires more flexibility, Nodequeue may not be the right fit, but it works great for the specific example you're describing.
Is it possible in Drupal Taxonomy?
I've many pages related to consumer products to be in following vocabularies:
Electronics
Washing maching
TV
Mobile
Cars
Electrical
... all sorts of
Now Sony TV would go in TV and also in Electronics.
Is it possible to do it in Taxonomy ie to inherit from multiple parents which belong to different vocabularies.
Drupal 6 permits to set multiple term parents.
Adding multiple parents to a term will cause the segemntacaoTeste vocabulary to look for multiple parents on every term. Because multiple parents are not supported when using the drag and drop outline interface, drag and drop will be disabled if you enable this option. If you choose to have multiple parents, you will only be able to set parents by using the term edit form.
You may re-enable the drag and drop interface at any time by reducing multiple parents to a single parent for the terms in this vocabulary.
it is better to use other fields, e.g external Id, or rtid for referring to different vocabularies as compared to having multiple parents per term.
The drupal taxonomy system is not created to have terms that overlap each other. That would mess up the hierarchal order that terms are used for.
In your example, TV should be a child of Electrical, since all TV's are electrical.
I'm pretty sure, that author of this issue has found his answer, but in case if someone else still looking for such solution, this seems to be good start.
http://drupal.org/project/term_relations
I'm not sure how mature this solution is for D7, but if we want to avoid custom module creation, this should be best start.
I'm attempting to set up navigation withing a Drupal site and am having a bit of trouble.
I'm trying to have a series of pages that each have a set number of sub-pages. These pages will need to link to one another. All pages will contain similar content. For instance:
Page 1 will have sub-pages a, b, c, d, e, and f all with content related to the topic of page 1
Page 2 will have sub-pages a, b, c, d, e, and f with content related to the topic of page 2
I'd like these links to appear in a horizontal nav bar on each page.
Is it possible to accomplish this using the book module? I've also read some information about the taxonomy menu module that sounds promising, but I'm not really sure how that would work.
What route should I look into? Thanks for any input!
Oh, there are so many ways of creating this, it can easily be overwhelming, and the right one to choose depends on a lot of factors -- how the nodes will be created and maintained, level of technical skill, need for re-use, need for flexibility, number of items involved, etc. Both of the methods you mention are possible. There's also the node_hierarchy module.
You can also just create regular nodes, and use the regular menu system to create the hierarchy. Then use menu_block to split out the parts of the menu that you want to display separately, and place them in whatever region you want. A little CSS and you've got a horizontal nav bar....
As sprugman said (+1), there are many ways to do it, and we need more details to make a proper suggestion.
That said, my immediate reaction would be CCK modules nodereference fields - they allow you to reference (one or multiple) nodes from within other nodes. How these references are displayed is widely configurable, but they get displayed as links pretty much by default, so turning them into a nav bar should be pretty straight forward. If you are new to CCK, this step by step instruction might be helpful, but googling for 'Drupal CCK nodereference' should turn up quite some results.
The thing is that I have hundreds of nodes each with 4 to 12 images all of them around the same size in an imagefield but I want to order that so it looks at the end in a grid or something like that.
I know that panels and views are the answer but I think I've seen all of the tutorials available but nothing.
If anyone know where can I find something like I need, I'll be very gratefull.
Views is what you want. There are lots of good screencasts and tutorials out there, but you might not find one on exactly what you're looking for, because Views + CCK are uber flexible swiss army knife kinda tools.
You'll want to create a view of this node type with the images, change the view from nodes to fields, set the display to grid, and then add the imagefield as the field. Voila.