Welcome, Guest
Username Password: Remember me

content links loose itemid
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: content links loose itemid

content links loose itemid 3 years, 5 months ago #15260

  • mbrando
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Points: 80
  • Karma: 0
Hi,

After upgrading to 4.0.17 my content links in alpha content seem to have lost their itemid. I have advertising that is supposed to display around article content based on the URL itemid. the URL's used look something like this. I'm using Joomla native SEF URL's.



Now they look like this and doe not display modules assigned to the itemid.





Re: content links loose itemid 3 years, 5 months ago #15261

  • mbrando
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Points: 80
  • Karma: 0
Hi,

I was able to correct this by editing line 387 of

/components/com_alphacontent/views/alphacontent/tmpl/default.php

add the Itemid back to the URL. See before and after below.

Before:
$start_url_article = "<a href=\"" . JRoute::_( $listing[$i]->href.$url_article ) . "\">";


After:
$start_url_article = "<a href=\"" . JRoute::_( $listing[$i]->href.$url_article ) . "?Itemid=" . $menuid . "\">";


- Mike

Re: content links loose itemid 3 years, 5 months ago #15262

  • mbrando
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Points: 80
  • Karma: 0
Hi,

And the plot thickens. It seems to be smart enough to understand that ?Itemid=xxx on the URL is for the module menu display options, but it does not see that for the template selection.

#
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 0)
ORDER BY menuid DESC
LIMIT 0, 1


Note menuid here is 0 (zero) for both. Yet here:

SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 0
AND m.client_id = 0
AND ( mm.menuid = 127 OR mm.menuid = 0 )


It can see it for the module positions.

any thoughts on getting the theme selection set too?

- Mike

Re: content links loose itemid 3 years, 4 months ago #15611

  • Chacapamac
  • OFFLINE
  • Senior Boarder
  • Posts: 61
  • Points: 264
  • Karma: 0
Do you think this is related to that problem in this post?

componentheading still there after change menu



After visiting the directory, going to any other menu/page will bring the Alpha component heading and alpha patway in the new page/menu (not related to Alpha) — One refresh or visiting another menu will correct the behavior.

Going back to the directory bring back the problem —>

I really don’t understand what’s happening here and I need to deliver the site next week.

Any suggestion will be appreciated.....

Re: content links loose itemid 3 years, 4 months ago #15612

  • Chacapamac
  • OFFLINE
  • Senior Boarder
  • Posts: 61
  • Points: 264
  • Karma: 0
Curiously your change didn’t modify the url for me (with sef off)

Same for both.
zzzzzzzzzzzzzzz/index.php?option=com_alp...temid=52&lang=fr
  • Page:
  • 1
Moderators: flyman1664
Time to create page: 0.44 seconds
Goto Top