OK, it's a little tricky. But consider our page naming structure. {p1}.
{p2}.{p3}...
They have many benefit on the 1, 2, 3, position. If I have a name like
this:
books.science.children
This is a hierarchical category no problem, but I can consider the
name not only category but also data. And p1 is the field name, books
is the value.
In this case we use {p3} to retrieve the 3rd value from a page name.
But p1, p2, p3 are nothing but position indicator, right? Yes it's
position but also we can "give meaning" to the position. We don't
really need to give different field name to each position. We only
need to know what position meaning what for us.
This is what I think about the info vers. Now the info vars only
support one position. If we have more position, data1, data2, data3...
Maybe we can retrieve them by {info.vars::{p}:{d1}}, {info.vars::{p}:
{d2}}, {info.vars::{p}:{d3}}...
We don't really need to give every field a different names.
Cheers, linly
On 3月30日, 上午8時21分, The Editor <[email protected]> wrote:
> Can you give me exactly what you have in mind Linly? How the stored
> data would be stored, and the syntax with which it would be retrieved.
> For an info var you would have to specify page, field, and position.
> Can't just use {d1}, etc.
>
> I'm sure we could work up an info extension function if needed.
>
> Cheers,
> Dan
>
> 2009/3/26 Linly <[email protected]>:
>
>
>
> > This looks interesting. Some times ago I've suggest that the info vars
> > supporting the format data1.data2.data3...
>
> > So we can specify the certain position, say, {d1}, {d2}, {d3}... Just
> > like {p1}, {p2}, {p3}...
>
> > Cheers, linly
>
> > On 3月27日, 上午2時03分, Martin <[email protected]> wrote:
> >> I switched to the faboulous csv plugin, which gives way more
> >> flexibility to store content bits than info (if you do not want to
> >> count or sum).
> >> And it is still utf-ready.
>
> >> There is even a trick to get specific columns out of a csv table by
> >> using a dot that simulates a page name.
>
> >> A csv list like:
> >> Name.,Name,Country,etc
> >> Bond.,Bond,GB,...
> >> Soros.,Soros,US,...
>
> >> returns the whole first column with:
> >> [(list page=... fmt='{+p1}')]
>
> >> Makes a nice select pull down in a form. Just for info.
>
> >> Greetings, Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---