Tagcloud News URL Problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
8bits
Forum Members
Forum Members
Posts: 11
Joined: Tue Apr 01, 2008 7:54 am
Location: Australia

Tagcloud News URL Problem

Post by 8bits »

Hi there,

I'm trying to configure the Tagcloud plugin (2.6.2) with CMS 1.5.1.

It all works how I want it to with the exception of the URLs it lists on the search results page for any content that resides in the news module.

What it does is leave out a piece of the URL, so when a user clicks on it, they get a 404.

For example, clicking on the word 'Health' in the tagcloud yields a list of results, including content from within the news module. So, one of the results that comes up is 'Australian Health Care' and the URL looks like this: /news/38//Australian-Health-Care/

If I use the search module to search for the term 'Health' I get the same results, but the URL works properly: news/38/21/Australian-Health-Care/ (as you can probably see, the tagcloud results have omitted the /21/ in the URL).

This seems to be an odd problem, as the tagcloud plugin uses the search module to display it's results. Has anyone else had a similar issue, and found a solution?

Thanks,

Nick.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Tagcloud News URL Problem

Post by Dr.CSS »

Did you do an upgrade?... did it work before under what ver. of cmsms when installed? did you just install it thru Module Manager?...
User avatar
8bits
Forum Members
Forum Members
Posts: 11
Joined: Tue Apr 01, 2008 7:54 am
Location: Australia

Re: Tagcloud News URL Problem

Post by 8bits »

Hi Mark,

Thanks for your reply.

It's a new install, still being developed. It's not the tagcloud module, (this isn't compatible with 1.5.1) it's the tag/plugin function.tagcloud.php.

Thanks,

Nick.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Tagcloud News URL Problem

Post by Dr.CSS »

OK how about turning off the pretty url stuff and see if the link improves, then I would go thru the PHP file and start marking spots in it to find what does what and then find where it's not calling the 22...
User avatar
8bits
Forum Members
Forum Members
Posts: 11
Joined: Tue Apr 01, 2008 7:54 am
Location: Australia

Re: Tagcloud News URL Problem

Post by 8bits »

Thanks Mark, good suggestion.

Tried it with mod_rewrite turned off, and when I clicked on the link in the search results it took me into the admin and threw this error message: string(43) "Smarty error: eval: missing 'var' parameter"

My PHP knowledge is pretty rudimentary, so I'm not really sure what to look for in the plugin. By the look of the error code it seems to be a missing variable that Smarty requires. The message is a bit vague, as it doesn't say which file is throwing the error.

I'm sure it must be a trivial problem, but finding the cause is always the killer!

Nick.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Tagcloud News URL Problem

Post by Dr.CSS »

What did the link say?...
jo_hann
New Member
New Member
Posts: 7
Joined: Sun Feb 24, 2008 3:26 pm

Re: Tagcloud News URL Problem

Post by jo_hann »

The problem regards the return id. Obviously you got some problems with that. The code uses the default id (by default), which means you have to define one page in the admin area as default page. Normally that should be the case, if I remember right cmsms handles your first added page as default page. Then the return id will be mapped to that page. Otherwise you should also test the parameter

Code: Select all

returnid="ID"
in your tagcloud. That will map the return id to the id of the calling page....

Regards
Johann
Post Reply

Return to “Modules/Add-Ons”