Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change template variable instead of using custom templates #3

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Oct 11, 2021

Currently this extension requires you to use either the shipped templates - or you need to customise your existing templates, otherwise it will not work.

Instead of having to change the template, the extension can adjust the template variable, if applicable.

Note: in order to do this, I have created a NewsHelper class which extends from Contao\ModuleNews, so that the generateLink method is exposed, so we can still rely on this method to build the more template variable, with the different link text.

@fritzmg fritzmg changed the title Change template variable instead of using customt templates Change template variable instead of using custom templates Oct 11, 2021
@fritzmg
Copy link
Contributor Author

fritzmg commented Nov 3, 2021

Reminder @ngdot

@ngdot ngdot merged commit 0d23065 into ngdot:master Nov 3, 2021
@fritzmg fritzmg deleted the change-template-variable branch November 3, 2021 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants