I have worked out how to put static links onto the index page by using the ' Act as link ' option on the edit category section in admin
So for example I have a url called marbella-villa-rentals.htm
How do I get the listings for that category Id to dynamically show on that page?
One way that I do it on another site is to do an sql query to list recordsets of a particular Id on that page
Is this the way I would do it, or is there another method that I can use to pull up all the records for that category? and display them in that url
I am guessing here, but is it the case of dropping in the ' Show links in catergory.tpl ' into the marbella-villa-rentals.htm url and setting some sort of conditional statement to show a specific category ID?
You seem to be talking about static pages, and then asking how to show dynamic content on them. If a page is static then by definition it can't be dynamic.
I have worked out how to put static links onto the index page by using the ' Act as link ' option on the edit category section in admin
So for example I have a url called marbella-villa-rentals.htm
Paul in the admin section you can edit a category to act as a link see my example above and perhap my example should have been with a php extension
How do I then get to show a list of links on that page lets say where the category id is 2
I have other sites where I have a php page called lets say marbella-rentals.php and then I can run a sql query to call all records up where the catid=2
What I am trying to achieve is have a hard link on the homepage and when someone clicks on it they are taken to the page which displays all of the listings in catid 2 for example
I've no idea what you mean by "hard link" (a hard link is the Unix filesystem method of having two inodes point at the same data, achieved with the ln command), but it's absurd use a redirect to go to a category and if you want to display WSN Links data the page obviously needs to be a part of WSN Links (unless it's a javascript export or RSS situation, but those are for external sites to use, pointless for your own site). The "act as link" is for linking to external websites.
If you're trying to do search engine optimization or something, use rewriting in the SEO settings.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Static links on index page
Member
Usergroup: Customer
Joined: Dec 16, 2006
Total Topics: 9
Total Comments: 29
Hi Paul,
I have worked out how to put static links onto the index page by using
the ' Act as link ' option on the edit category section in admin
So for example I have a url called marbella-villa-rentals.htm
How do I get the listings for that category Id to dynamically show
on that page?
One way that I do it on another site is to do an sql query to list
recordsets of a particular Id on that page
Is this the way I would do it, or is there another method that I can use
to pull up all the records for that category? and display them in that url
I am guessing here, but is it the case of dropping in the
' Show links in catergory.tpl '
into the marbella-villa-rentals.htm url
and setting some sort of conditional statement to show a specific
category ID?
Thanks - Mel
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You seem to be talking about static pages, and then asking how to show dynamic content on them. If a page is static then by definition it can't be dynamic.
Member
Usergroup: Customer
Joined: Dec 16, 2006
Total Topics: 9
Total Comments: 29
Hi Paul,
I have worked out how to put static links onto the index page by using
the ' Act as link ' option on the edit category section in admin
So for example I have a url called marbella-villa-rentals.htm
Paul in the admin section you can edit a category to act as a
link see my example above and perhap my example should have been with
a php extension
How do I then get to show a list of links on that page
lets say where the category id is 2
I have other sites where I have a php page called lets say marbella-rentals.php
and then I can run a sql query to call all records up where the catid=2
What I am trying to achieve is have a hard link on the homepage and when someone
clicks on it they are taken to the page which displays all of the listings in
catid 2 for example
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I've no idea what you mean by "hard link" (a hard link is the Unix filesystem method of having two inodes point at the same data, achieved with the ln command), but it's absurd use a redirect to go to a category and if you want to display WSN Links data the page obviously needs to be a part of WSN Links (unless it's a javascript export or RSS situation, but those are for external sites to use, pointless for your own site). The "act as link" is for linking to external websites.
If you're trying to do search engine optimization or something, use rewriting in the SEO settings.