On Thu, Jan 22, 2009 at 4:11 AM, Martin <[email protected]> wrote:
>
>> So that's the direction I'm heading with my next blog script. I'd be
>> curious what you were thinking though about how to use this for
>> tagging... Esp as I'm working on that right now.
>
> In a blogging solution you would take the h1 and switch that
> automatically into an url by replacing the spaces. For SEO you would
> better use a - than an underscore: Great-article-about-whatever.
I didn't know that. I can change to hyphens.
> For the tagging solution you would take an expression with one or more
> words and turn that into an url. Many CMS use an underscore here,
> because when you show the tag links with underline, the underscore
> would not be visible.
But then you can't change the tags, because it would break all links.
Using the info approach should be better.
I just posted a new solution page: infotags.
I'd still consider it a beta release, as I can think of a couple
things still I want to add... But it's fast, comparable to putting
directly in the urls...
> About info: May we have some simple examples how to use that? There is
> nearly no info on info yet.
Yes, I suppose we need some documentation. Wish we had some people
who could scan the code on these kinds of things and put up some
documentation. I'd be happy to look over stuff, but hard to find time
to do all the writing.
For an info function/command, the main fields are
field, value, and target. Field is the label (often {p}). Value is
what's put there. And target is the page. By default it should be in
the info* hierarchy, else you will need to set different
site.auth.info settings.
You can also put special command names in the first parameter position
($args[''][0]). Core functions include: delete (a field), count (some
base page name), sum (some base page name), list (all fields, csv, for
use in list function...), and counter (+1 to field).
That's most of the code right there.
Oh, to add a custom extension--like tags or tagcloud, create a
function called BOLTinfoTags($info, $args) or BOLTinfoTagCloud. Info
is the f:v array of target page. Args anything passed to the function.
The infotags script is a good example. There are more in the infox
plugin, but haven't tested them since the upgrade. They may work just
fine as is. Don't know. They look ok...
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---