Guest
20 May 2013 11:24

I ahve a records title in my homepage here

http://174.132.147.254/ ~sarteano/it/

I just noticed that if clicking one of the displaied record titles the record is being opened in the site homepage, while I should be redirected to the record

this module is latest version; I have Cobalt 8.96

the code whcih is generating the clickable titles is the below one

<h1>

                    <?php if($params->get('tmpl_core.item_title')):?>

                        <?php if(in_array($params->get('tmpl_core.item_link'), $obj->user->getAuthorisedViewLevels())):?>

                             <a <?php echo $item->nofollow ? 'rel="nofollow"' : '';?> href="/<?php echo JRoute::_($item->url);?>">

                                <?php echo $item->title?>

                            </a>

                        <?php else :?>

                            <?php echo $item->title?>

                        <?php endif;?>

                    <?php endif;?>

                    <?php echo CEventsHelper::showNum('record', $item->id);?>

                </h1>

Last Modified: 02 Mar 2014


Guest
21 May 2013 07:43

I noticed the following:

in that module the URL to records are something like

http://174.132.147.254/ ~sarteano/it/component/cobalt/voce/35-news-e-eventi/7-titolo-lorem-ipsum-dolor-sit-amet?Itemid=101

while they should be

http://174.132.147.254/ ~sarteano/it/1/voce/15-a-piedi/16-evento-e-soggiorno-lorem-ipsum-dolor-sit-amet

the

?Itemid=101

is what is causing this issue... how can i do to remove it?

thatr module display contents from a category, in that category settings for "menu itemid" the choosen value is "inherit" - and in the main section settings no value as been choosen at all for "menu itemid"

the same for the type used for those contents, no value as been choosen at all for "menu itemid"

even if

http://174.132.147.254/ ~sarteano/it/component/cobalt/voce/35-news-e-eventi/7-titolo-lorem-ipsum-dolor-sit-amet

(without ?Itemid=101) redirect to the correct page, taht URl is still different from

http://174.132.147.254/ ~sarteano/it/1/voce/15-a-piedi/16-evento-e-soggiorno-lorem-ipsum-dolor-sit-amet

thus creating a duplicated URL issue, how can solve also this?


Guest
21 May 2013 07:46

SOLVED

ok I solved this by selecting the correct menu item for the main section "menu itemid" settings

for all the other elements (type and category) I didn't choose anything for "menu itemid" setting

Powered by Cobalt