Frequently Asked Questions v2 |
FAQ Main / Browse by Category |
One Note on 'Related Item Window' - in fact it is the only one option to use if you want to use the field as 'Related Item' because other options shows all slice items on one page, which is usually too much. Another feature of 'Related Item Window' is, that it is possible to add items not only to the written item, but you can add '2 way relation' between items - written item (say 2) is not only related to assigned item 1, but the item 1 is then related to item 2 then.
The next problem is, how to display the related items on webpage.
** Output (1) - Standard use of views
This is the way, how to create link to related item view and also this is the way, how to create link to fulltext view
For related item however we expected another behavior. We want to display related items under the fulltext of the item (or directly under each item on index page). That's why we introduced 'view as alias feature':
** Output (2) - view as alias
steps 1) - 4) is exactly the same as in Output (1)
Output (2) describes how to create view alias. With such alias you can work as with any other aliases.
Tip:
In step 6) of Output (2) we used field content as list of displayed items:
vid=110&cmd[110]=i-110-_#this
In some cases we may want to switch between the views depending on field content. Then you can use parameter like:
vid=110&cmd[110]=v-_#this
or more complicated:vid=110&cmd[110]=i-_#unspecified.....-_#this
Then the fields <this> in example a) or unspecified..... in example b) should contain the ids of view to show (112, 113...).
How do I create a View which indexes all items that relate to that item.
An example might help..
I have two slices 'authors' and 'articles'.
In articles I have a field 'author' which relates to the slice 'authors' (in
it is stored ID or IDs of author/authors of the article).
So in articles on the web is displayed information from the 'authors' slice.
But now I would like to show references to articles on the pages of their authors.
And I don't want to make it by a new relation field in the slice 'articles',
because I would have to after addition of a new article go to the slice 'authors'
and edit the author's profile - make a relation to the new article.
Do you have some idea, how to display the information from the slice 'articles'
in the slice 'authors' if the relation field is in the slice 'articles'?
Yes, it should be possible to display author's articles, because there is the
"relation" field for Author (the created_by.....1 in your case) in
the Article slice. There are the ids of 'Author' records (items) stored in this
field. So, it is possible to create view (say number 123) in 'Article' slice
where the first condition will be
Author =
Then, you just create the page which includes the view:
---author.shtml ---
<!--#include virtual="/aaa/view.php3?vid=123"-->
The link to this page then should look like:
author.shtml?cmd[123]=c-1-5254422456eab4763bea34
where 5254422456eab4763bea34is item (=author) id in Author slice. Such link can be generated automaticaly Index - Odd row (for example):
<a href="author.shtml?cmd[123]=c-1-4f35cd6ab328690caffbe7d646eded78">_#NAME####</a>
This FAQ interface was developed by Jason at Commons.ca
|
APC
ActionApps is a free software content management system initiated by
the Association for Progressive Communications (APC) APC - Internet and ICTs for social justice and development |