php - Add 1 hit to article on click function joomla -
Hi guys, I have some trouble here.
& lt; A class = "anything" Href = "other / website" & gt; Take me to this product & lt; / A & gt; This button or link has been added to every article in my Joomla site here and I have created every article to display different products, and link me to my webshop Will take in for the product.
My problem here needs to be a toplist on my site based on article article hits.
Basically, I want to add that link to a specific article in which onClick
You can display text in the module . - Article class module
- Articles - NewsFlash module
Both have the option of order results url part from module output by hit you have to open the module code and press Which is & lt; A & gt; ... & lt; / A & gt; part An example would be:
& lt ;? Php $ pattern = "/<a.*? And gt; & lt (*.); \ / A & gt; /"; Preg_match ($ pattern, $ string, $ url); // $ string contains module output print_r ($ url); ? & Gt; This tutorial can also help you:.
Comments
Post a Comment