Fordson v1.5.9 Marketing Spot link on the image

Fordson v1.5.9 Marketing Spot link on the image

by Franky Vallori -
Number of replies: 2

Hi,

I would like the URL link not on the button, which I have already hidden, by modifying the "/classes/output/core_renderer.php" file, but clicking on the Spot Marketing Image

Thanks,

Francesco


Attachment Immagine02.jpg
Average of ratings: -
In reply to Franky Vallori

Re: Fordson v1.5.9 Marketing Spot link on the image

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

What version of Moodle please?


Forum rules
In reply to Franky Vallori

Re: Fordson v1.5.9 Marketing Spot link on the image

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

You'd have to really change the function and then the template to do so.  At first glance it doesn't seem very easy if you are new to coding.

Here is where the button and URL are created:

https://github.com/dbnschools/moodle-theme_fordson/blob/master/classes/output/core_renderer.php#L572-L578

Then in the template the button is displayed within the tile:

https://github.com/dbnschools/moodle-theme_fordson/blob/master/templates/fpmarkettiles.mustache


This will break the multi-functionality of the marketing tiles to do both text and photos.  You'd also have to maintain any changes moving forward with each upgrade.