Linking to specific blog posts

5 posts by 2 authors in: Forums > CMS Builder
Last Post: March 1, 2010   (RSS)

By wadeos - February 24, 2010

Hi,

Not too sure if this has been mentioned yet but if someone could point me to a similar post or help would be good.

I am designing a blog with CMSB, I have the list page/detail page down the left column and I want to have a right hand column which shows up on each page with the Authors listed and a link from each authors name to a page which lists just their posts . . . .

AUTHORS
Author 1 [link to Author 1 blogs listings]
Author 2 [link to Auther 2 blogs listings]
Author 3 [link to Author 3 blogs listings]
etc

Sorry I am still relatively new with this so it may be something simple but can't seem to figure it out.

Cheers

Re: [wadeos] Linking to specific blog posts

By Damon - February 24, 2010

Hi,

Do you have an Author section setup in CMS Builder or are you using User Accounts for authors?

Can you post the code you have so far so I can take a look?
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [wadeos] Linking to specific blog posts

By Damon - February 26, 2010

You could change this code:
<a href="#">Author 1</a><br />
<a href="#">Author 2</a><br />
<a href="#">Author 3</a><br />
<a href="#">Author 4</a><br />

To this:
<a href="./blog.php?author=Author 1">Author 1</a><br />
<a href="./blog.php?author=Author 2">Author 2</a><br />
<a href="./blog.php?author=Author 3">Author 3</a><br />
<a href="./blog.php?author=Author 4">Author 4</a><br />

This would display only the blog post by the author you linked from.

You could also use this on the page to show the name of the author that was in the query string:
<?php echo @$_GET["author"]; ?>

Give that a try and let me know how you make out.
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] Linking to specific blog posts

By wadeos - March 1, 2010

Thanks Damon, will have a go and get back to you if I get stuck.