Forum
Welcome, Guest
Please Login to access forum.
Re:Not get Itemid for com_tag (1 viewing) 
Go to bottom
TOPIC: Re:Not get Itemid for com_tag
#3706
Mikhail
Fresh Boarder
Posts: 6
User Offline
Not get Itemid for com_tag Karma: 0  
Good day!

After creating a site map for the tags, I can not specify the MenuID for this component.
Select "Manual menu item alias for SEF links" but not effect

It must be so: http://files/index.php?Itemid=471&option=com_tags&view=tag&id=163-izmeritelnye-datchiki-i-sistemy&lang=ru (it is without sef)

in sitemap: http://files/index.php?option=com_tags&view=tag&id=163:izmeritelnye-datchiki-i-sistemy&lang=ru

And also with sef not correct.

How merge Itemid? Maybe you can somehow through the SQL request? I badly to understand them.

Best regards,
Mikhail
 
Logged Logged  
  The administrator has disabled public write access.
#3707
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Not get Itemid for com_tag Karma: 79  
Hi Mikhail,

no the routing to the correct menu Itemid for the tags component is done by Joomla itself, for this reason specifying the 'manual itemid' has no effect.

To allow Joomla to properly route tags links to the menu itemid you need to have a menu item of type 'tagged items' and choose all the tags to be routed as visible in the image below.
The routing will be done automatically by the Joomla router to the correct Itemid affecting also the sitemap.

Best regards

John
 
Logged Logged  
  The administrator has disabled public write access.
#3708
Mikhail
Fresh Boarder
Posts: 6
User Offline
Re:Not get Itemid for com_tag Karma: 0  
Maybe can i just somewhere to manually set Itemid = 471?
I have a lot of labels and manually add very long.
Modet modyf can in some file or correct the sql query?

And if you add a couple of dozen more tags? automatically it is more convenient.
 
Logged Logged  
  The administrator has disabled public write access.
#3710
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Not get Itemid for com_tag Karma: 79  
Yes there is a way to force your specific Itemid directly inside the SQL query.

You must modify it and use the 'CONCAT' statement to specifcy your menu Itemid:

QUOTE:

SELECT
`#__tags`.`title`,
CONCAT(CONCAT_WS(':', `#__tags`.`id`, `#__tags`.`alias`), '&Itemid=471') AS `id`
FROM `#__tags`
WHERE
`#__tags`.`published` = '1'
AND `#__tags`.`access` IN {aid}
AND (`#__tags`.`language` = '*' OR `#__tags`.`language` = {langtag})
AND `#__tags`.`id` != '1'
ORDER BY
`#__tags`.`title` ASC
 
Logged Logged  
  The administrator has disabled public write access.
#3712
Mikhail
Fresh Boarder
Posts: 6
User Offline
Re:Not get Itemid for com_tag Karma: 0  
Many thanks for your help! excellent support!
 
Logged Logged  
  The administrator has disabled public write access.
Go to top