Page 1 of 1

CGBlog - HELP! - A couple of things

Posted: Sun Oct 18, 2009 6:26 pm
by katea
Hi guys,

I've opted for CGBlog instead of the blogs made simple, but there are a couple of things I'm having trouble with regarding linking pages to each other.

1) Categories don't seem to be showing ... This could be me being silly.. I have general as the defailt and 3 other blog categories along with it .... I just figured that the other 3 categories would become part of the general and link to each other accordingly.

Yep, me being silly inserted

Code: Select all

{CGBlog action="browsecat"}
at the bottom of my page and I have the categories.

2) In the summary page, which shows the blog entries lovely. It shows me what category the blog entry is in, but I'd like that to be a link to that category, and for that page to show all the blog entries for that ategory, much like the summary page does.

Thought this might work, but alas no:

Code: Select all

<a href="{$category}" title="{$category.name}">{$category.name}</a>
I can get yto a particular post using:

Code: Select all

<a href="{$entry->detail_url}" title="{$category.name}">{$category.name}</a>
But all the variations i've tried:

Code: Select all

{$entry->category_url}, {$entry->category.url}, {$entry->categories}, {$entry->category}
And so on, just don't seem to work ...


3)  On each details template I'd like a RETURN link ... Going back to the summary or category

4) Tried placing the breadcumbs in, but they don't seem to work.


All these functions are already active in BlogsMadeSimple ... But in CGBlogs it seems to be a nightmare to get them to work. I've tried copying some of the code from the other blogs, but I can't seem to get them to work.

Someone please help me!! ;o)

Re: CGBlog - HELP! - A couple of things

Posted: Mon Oct 19, 2009 9:25 am
by katea
No-one know anything about this?

Surely there must be someone who's ran into this problem before?

Re: CGBlog - HELP! - A couple of things

Posted: Mon Oct 19, 2009 4:07 pm
by Peciura
Is here something you would like to do at your site?

I use a bit outdated system:
cmsms   1.6.3 mle
CGBlog 1.3.1
CGExtensions 1.15.3
CGSimpleSmarty 1.4.3

Code:

Code: Select all

{$entry->category_url}, {$entry->category.url}, {$entry->categories}, {$entry->category}
And so on, just don't seem to work ...
To make sure variables you are using do exist use tags:

Code: Select all

{get_template_vars}
{dump item=$entry}
{$entry|print_r}
Edit. Sometimes i use UDT "var_dump"

Code: Select all

if (!empty($params['var'])){
echo '<pre>';
var_dump($params['var']);
echo '</pre>';
}
Usage

Code: Select all

{var_dump var=$entry}

Re: CGBlog - HELP! - A couple of things

Posted: Mon Oct 19, 2009 7:57 pm
by mbvdk
I have been attempting to make something like the exapmle in your link, Peciura, but have been unable to make a page with the blog post and an input form to post comments. I have tried using the action=fesubmit option but this just makes a new blog entry, witch is not what I want.

In addition I would like the option to let only registered users post comments to blog posts, but as soon as the comment option is working, I believe the user filtering via the Fronenduser module is a minor matter.

I'm using:
CMSMS 1.6.6 "Bonde"
CGBlog 1.3.1
CGExtensions 1.17.4
CGSimpleSmarty 1.4.3

Re: CGBlog - HELP! - A couple of things

Posted: Mon Oct 19, 2009 8:01 pm
by calguy1000
use CGFeedback for the commenting portion.

Re: CGBlog - HELP! - A couple of things

Posted: Mon Oct 19, 2009 8:28 pm
by Peciura
@mbvdk
First of all you better listen to calguy  ;) ;
Second i will install CGFeedback in 2-3 month when site is rebuilt, so take my excample with grain of salt.

Code: Select all

{assign var='temp' value=$entry}
{cms_module module='comments' modulename='CGBlog' pageid=$entry->id dateformat='Y-m-d H:i' lang=$lang emailfield='1'}
{assign var='entry' value=$temp}
These two "assigns" normaly are not used, but i use them to prevent "$entry" from being overwritten.

Re: CGBlog - HELP! - A couple of things

Posted: Tue Oct 20, 2009 12:56 pm
by mbvdk
Thanks, testing it now and it seems to work like I want it to. So now I'll just have to cosumize it for the site.