Jump to content

Module: MarkupBrowserUpdate


mr-fan
 Share

Recommended Posts

So here i'm starting.

This is more a little snippet than a whole module.

On frontend before the </body> tag the script from

http://browser-update.org/

is working - nothing fancy here.

Download Github:

https://github.com/mr-fan/MarkupBrowserUpdate

my todo for this is:

  • make it a clean module
  • make use of the settings from browser-update.org so you could define these in PW backend
  • get the backling for PW

best regards mr-fan

post-2327-0-03655400-1433542095_thumb.jp

Edited by mr-fan
  • Like 6
Link to comment
Share on other sites

Here we are with the first "real" version.

First post edited.

Name was changed in the right manner i think since it changes Markup it is a MarkupModule so no name confrontation with the HelloWorld modules on this front.

@MOD/ADMIN please change the name of this topic to

Module: MarkupBrowserUpdate ..cleared

thank you

Please test if you like the module.

I'll try to get a backlink from browser-update.org for PW.

regards mr-fan

Link to comment
Share on other sites

@BernhardB

In this case checking for the template should be enough as everything you navigate to in the backend is most likely a process module with the admin template (I'm not aware of any exceptions). It's only if you call pages by the api where you need to check by has_parent. E.g. when you edit an user the users page is of the template user, but the rendered page is actually an admin template with the module ProcessUser running. So you're not accessing other templates directly, but through process modules.

  • Like 2
Link to comment
Share on other sites

i'd take this line from the hello world module.....so i think it will do the job.

....i wouldn't name this a "real" module...one simple hook and some configurationfields but with PW fortunately it is so simple...;)

But it is a good exercise to start with easy tasks....and if i've luck we get a backlink from browser-update.org for PW!

But it is a good exercise to start with easy tasks....and if i've luck we get a backlink from browser-update.org for PW!

just looked into github....and found

https://github.com/browser-update/browser-update/commit/9a781c48f7931d473be3bfaab4a61d12c9288da3

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...