The easy Weblog and Wiki Software
[ start | index | login ]
start > category

category

Created by hkarl. Last edited by cgm, 3 years and 10 days ago. Viewed 3,096 times. #4
[diff] [history] [edit] [rdf]
labels
Parent:test category
Category:FAQ
attachments

How to introduce new categories

funzel wrote:
To get a category MyCategory add a snip with the name MyCategory to your SnipSnap. Then add the label TypeLabel with type Category to this snip. Now you have a category MyCategory in CategoryLabel.

How can I display all snips having a given category label?

funzel wrote:

{search:Type:Category} would give a list of categories,
{search:Type:person} would give a list of persons.
{search:Category:MyCategory} would give snips with name a Categroy:MyCategory label.

How can I add more than one Category Label to a Snip?

It is not possible by default but if you using my MultiLabel patch. ThoMo

Icon-Comment funzel, 4 years and 172 days ago. Icon-Permalink

We're writing one.

To get a category MyCategory add a snip with the name MyCategory to your SnipSnap. Then add the label TypeLabel with type Category to this snip. Now you have a category MyCategory in CategoryLabel.

Icon-Comment carsten, 4 years and 172 days ago. Icon-Permalink

Ah, ok. got it! thx

Icon-Comment carsten, 4 years and 172 days ago. Icon-Permalink

Hm, another question:

How can I display all the snips with label foo in another snip? I tried {index:foo}, but that is not working.

Sorry if I ask all the question you're already working on…

Icon-Comment funzel, 4 years and 172 days ago. Icon-Permalink

There is no such macro yet. Take a look at the bugtracker and add a feature request, if there is none yet. Fulltext search on labels schould work though, like "Category:MyCategory"

0.5.1 might be early, 0.5.2 could then include this macro. But it's quite easy, you could write it on your own, take a look at the Category Label for an example code.

Icon-Comment carsten, 4 years and 172 days ago. Icon-Permalink

Hm, maybe I take a look at the Macro Tutorial tomorrow. A quick hack didn't work, so I have to take a deeper look.

Icon-Comment funzel, 4 years and 172 days ago. Icon-Permalink

Then better wait 2 weeks and get the feature from us? :-)

{search:Type:Person} might work.

Icon-Comment carsten, 4 years and 172 days ago. Icon-Permalink

Yep, that gives me a list of categories. But {search:Type:Category:foo} is what I want. Well, I'll go for it tomorrow. Thanks anyway.

Icon-Comment funzel, 4 years and 171 days ago. Icon-Permalink

No, {search:Type:Category} would give a list of categories, {search:Type:person} would give a list of persons. {search:Category:MyCategory} would give snips with name a Categroy:MyCategory label.

Icon-Comment hotmaz, 4 years and 165 days ago. Icon-Permalink

I do the follow-up job and copied all the points of the comments to the original snip.

Icon-Comment hotmaz, 4 years and 165 days ago. Icon-Permalink

I can only assign one CategoryLabel to a snip. Why this? (the function is add Label)

I want to mark all snips that are currently under work with a category named 'in progress' and have a search macro showing me all snips that need my attention.

But for other reasons the snips should also have another categories like (development, java, etc.)

Is CategoryLabel the right approach? or do I need another magnifician technics?

What are the meaning of SnipLabel? Boolean? How can I search for them?

Icon-Comment carsten, 4 years and 98 days ago. Icon-Permalink

Back again for Categories… When I create a snip with the link new and give it the {weblog} macro, can I use the snip as a Category too?

Icon-Comment urs, 4 years and 95 days ago. Icon-Permalink

The yellow bar with: [add label] [add file]

appears on the right side and overwrites "Logged in users" and "Recently changed:". If I add labels the list grows and hides even more. I think it should appear in this (left) column of the screen - like it is above. How can I change this? I have looked into the "snipsnap-portlet-1" but there is nothing to change??

Icon-Comment jsawers, 4 years and 95 days ago. Icon-Permalink

@urs you need to edit the CSS for those chunks, it contains position information, you want the class "snip-label" or "snip-meta" which is in snip.css. I'm not sure exaclty what to tweak, but that is where to look.

Icon-Comment b2men, 4 years and 94 days ago. Icon-Permalink

i do as you advised

then when i use 'search:Category:MyCategory', it finds the labelled snips, but adds 'There is no snip with Category:MyCategory, would you like to create Category:MyCategory?'.

how can i avoid this?

Icon-Comment phobia, 4 years and 94 days ago. Icon-Permalink

Icon-Comment b2men, 4 years and 92 days ago. Icon-Permalink

->phobia: thanks

Icon-Comment velociraptor, 3 years and 323 days ago. Icon-Permalink

What is the difference between CategoryLabel vs. TaxonomyLabel? (An example w/context would be helpful.)

TIA.

Please login to post a comment.

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13712 Snips. Installed 5 years and 363 days ago

Logged in Users: (2)
… and 27 Guests.

snipsnap-changed for older changes.

< July 2008 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST