Quote:
Originally Posted by Ipuck
Hello AndrewD!
I would like to link (from a page outside of the forum) to a page showing just the link and the description and not a particular category. I tried using (for example) this: http://mysite.com/forums/local_links.php?linkid=867 but still show a category (The first category listed for that link). Do you know if there is a way to do that?
Thanks for your time
|
URLs of the form
http://site/forum/local_links.php?catid=MM&linkid=MM will take you to the category page but show you only the single entry.
Currently, there is no in-built way to display just the entry without the category information. You can achieve this by editing the links_main template.
If you take a look at that template, you'll find that it consists of several groups, which all follow the same structure:
[code]
<if condition="test">
display somthing
</if>
[code]
It should be fairly self-evident what each of these groups does - there's a category title, subcategory list, featured sites list, main entry list and category statistics, interspersed with some 'holding variables' which are used by extras to insert additional information into the page display.
By slightly changing the test, you can eliminate any of these blocks when showing only one entry. For example, the second block in the template (the first big block, for the category title) starts out
Code:
<if condition="$viewcatname">
If you change this to
Code:
<if condition="$viewcatname and !$viewlinkid">
then it will only be displayed when the user has not asked to look at a single entry. Then you can use the url given above.