• Home
  • Get help
  • Ask a question
Last post 4 hours 10 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67856
All time tickets 10487
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#756 – Viruemart Page Title tag

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 29 July 2015 11:39 UTC
capricorn
 Hi,

I'm running J 3.4.3, VM3, sh404SEF 4.6.0.2718.

I see that you have returned metas management for Virtuemart:
/components/com_sh404sef/meta_ext/com_virtuemart.php.
i.e. Page Title tag calculation.

I'm going to modify the Page Title - include SKU, Price etc. I think it's better to do it inside VM files. I know where. Therefore, I need that VM would control Page Title, not sh404SEF. sh404SEF should only in my case manage SEF URLs for VM.

What should I do - rename the file above or comment out some parts of it? Also, would it be possible to make the changes update safe?

Thanks



.
Wednesday, 29 July 2015 13:18 UTC
wb_dimitris
Hi,

You could comment out the relative parts of the file but this is not guarantied that will not be overwritten on the next update.

Regards
Wednesday, 29 July 2015 13:50 UTC
wb_dimitris
Hi,

The previous answer is about hacking either VM or sh404SEF or both, but here is a better way:
So best approach here, will be to write a plugin that will fire on the event "onContentBeforeSave", that way even VM files could be updated without any problems.
Also once you do the changes into VM and your own custom title is saved into VM database, then sh404SEF will recognize that and won't overwrite them.
In other words if you follow this path you won't need to change sh404SEF core meta_ext plugin for VM and thus you won’t have any problems on future releases of sh404SEF.

Regards
Wednesday, 29 July 2015 14:29 UTC
capricorn
Thanks, I will think about it.

So far I simply renamed sh404sef meta plugin for VM and will hack relevant VM files. Leaving aside update issue, please confirm that renaming (or deleting) of that file is OK for sh404SEF operation with VM. At the moment I don't see any problems.

Cheers
Wednesday, 29 July 2015 17:13 UTC
wb_dimitris
Hi,

Although a hack, it would work.

Regards
Wednesday, 29 July 2015 17:23 UTC
capricorn
Thanks.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.