Page 1 of 1

CGBlog breadcrumbs not working

Posted: Sun Jan 06, 2013 6:30 am
by SimonJ
I have this running and as far as it goes no problems, can anyone give me some idea how I can create links back to the parent category from detail view?
I have tried using the CMS breadcrumbs without any success.

Any help gratefully received. :)

Re: CGBlog breadcrumbs not working

Posted: Wed Jan 30, 2013 11:57 pm
by Dr.CSS
If you get to the detail using a link in a page then you can use <a href="javascript:history.go(-1)">Go back</a>...

Re: CGBlog breadcrumbs not working

Posted: Thu Jan 31, 2013 4:24 am
by SimonJ
Dr.CSS wrote:If you get to the detail using a link in a page then you can use <a href="javascript:history.go(-1)">Go back</a>...
Yes thanks, but it doesn't have the category name which is what I wanted.

Re: CGBlog breadcrumbs not working

Posted: Fri Feb 01, 2013 6:44 pm
by Dr.CSS
Do you have a page set up for browsing by category, is it named using the category, maybe add the category call in a link to go to it...

Re: CGBlog breadcrumbs not working

Posted: Fri Feb 01, 2013 10:41 pm
by SimonJ
The problem is CGBlog handles all the category details internally, I use this

Code: Select all

{CGBlog action='browsecat'}
to show the categories, then you click one (I have added a back to root link here) and you then click the article.

At this point I can still link back to the root of the blog system but not back to the category as I can't find the category information from the article. It must be there as it displays it. The problem is it uses a category_id which must go through a sort of lookup system to get the name. So I need to extract the category_id and the process it to get the name. Then I can <a "link_to_category_id">category_name</a>.

Anyway if no-one has done this I am not going to pursue it, thanks for your time, I will live without it. :)

Re: CGBlog breadcrumbs not working

Posted: Sat Feb 02, 2013 5:33 am
by Dr.CSS
If you had a page for each category and named it the same you could use {$category.name} in a link to that page...

Re: CGBlog breadcrumbs not working

Posted: Sat Feb 02, 2013 6:43 am
by SimonJ
Yes, I see what you mean, but this does not allow for new categories or renaming categories.

It could work but it would need constant maintenance.