Frequently Asked Questions v2 |
FAQ Main / Answer Detail |
How do I link a Index view to show the items in a Full Text view
Author: Mitra mitra@earth.path.net |
|
The right alias is _#ITEM_ID#.
For example, to show an item in a full text view, the view.php3 script should get the parameters like:
vid=110&cmd[110]=i-110-2548e4b7ae7b8874ee4a4bf
( the 'i' command to view.php3 script takes as argument unpacked (long) item
id)
So if we pass the vid parameter directly in fulltext.shtml page:
fulltext.shtml:
<!--#include virtual="/aaa/view.php3?vid=110"-->
Which then needs us to pass the cmd parameter through url:
<a href="fulltext.shtml?cmd[110]=i-110-2548e4b7ae7b8874ee4a4bf"> fulltext </a>
So we can generate this by placing in the Odd rows field of an index view
<a href="fulltext.shtml?cmd[110]=i-110-_#ITEM_ID#"> fulltext
</a>
If you want to link to a view appearing in the same place on the same page (as for the main index going to a full text), then if your Index view has vid=109 then the URL should be:
"?cmd[109]=i-110-_#ITEM_ID#"
which will redraw the same screen, replacing view 109 with view110, for the item specified.
|
Last Edit: Aug 17 2011
<aafaq id=1740> ~ToDo: 1740 How do I link a Index view to show the items in a Full Text view </aafaq>
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 |