You can just create a page like: vehicles.cars.porsche.
This means that you have a page called porsche, with a parent called
cars and a grandparent called vehicles. The pages "cars" and
"vehicles" do not exist, but that is not necessary if you want to use
tricks with the hierarchy. For example, you can create a custom skin
for your site for all "cars". You need to create a page called:
"code.vehicles.cars.skin". Then, the "cars" page and every child uses
this skin. So you can create "vehicles.cars.bmw" and
"vehicles.cars.opel". The page "cars" still does not have to exist.
I do not know what you exactly mean by namespace. In C++, this means
every reference to a function is automatically sought in the namespace
- so you do not have to specify the namespace with each function you
call. Coming back to the "vehicles.cars.bmw" example, you can replace
it with "..bmw" or "{p1}.{p2}.bmw". The {p1}, {p2}.. etc variables get
replaces by the name of the level of the hierachy (vehicles, cars).
That is the best thing I can make of your namespace question - but I
think this is not what you are looking for.
For categories (tags) there is a plugin avaible I believe (I think the
"store plugin" has this functionality). However, you could also try
the following. Imagine you have a page called "apple" and you want the
categories "healthy, food, fruit" on them. This is what you need to
do:
* create a Data-variable called "categories" (use the data-action for
this).
* set the value of "catagories" to "healty,food,fruit"
Now, you page is "tagged". If you want to retrieve every "fruit", you
can use a search. You would need to retrieve the data variable, check
with inlist whter fruit is in the catagories. Or maybe you can store
the categories on the page as a comment: /* [#categories] fruit,
healty, food [#end] */. You can retrieve the [#categories] section (it
is a anchor, use something like: "apple#catagories") and search in
this section for tags.
I hope this points you in the right direction. I or somebody else can
look the search/inlist/etc part up for you and type it all out.
cheers,
Mark
On Jul 27, 11:34 am, Vivek Sharma <[email protected]> wrote:
> Hi,
>
> how to start a page with some hierarchy, or How to start a new
> hierarchy. And how to add a page to a hierarchy.
>
> how do you add a categories or namespace.
>
> thanks.
> vks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---