-
Posts
802 -
Joined
-
Last visited
-
Days Won
6
Everything posted by benbyf
-
Happy Christmas everyone! I had a bit of time to add tot his module It now has textareas (thanks @tpr) in it's config which means it can now add as many icons and field and/or template pairs as you like. This means you could add one icon for pages of the template basic-page, and also add another icon for all pages with a counter etc... Also... I've added a third textarea, allowing you to add a list of fields to show the data for IN the pagetree itself (see image below). In my example below I am able to show in the page tree by each page if they have a counter what the data is and whether the page has a field exclusive and its data. Thanks for peoples help and hope it is useful. (updated on github)
- 28 replies
-
- 5
-
- icon
- fontawesome
-
(and 2 more)
Tagged with:
-
not really sure how to make this happen... repeater? Anyone point me in the right direction to creating multiple additional fields to the module settings? so the module can have as many icon and template or field pairs as you want...?
- 28 replies
-
- icon
- fontawesome
-
(and 2 more)
Tagged with:
-
Pretty much exactly what I offer as a web designer -> look at wix or sqaurespace and if you want to do something more interesting in functionality or design then come to me and I'll make up a PW site with the extra requirements. I like working on new and interesting projects not just banging out the same site again and again, so PW works well for me. Plus the community are super helpful! I never enjoyed the swamp of wordpress and drupal modules and forums
- 10 replies
-
- 7
-
Updated and works well (needed to delete the extra fa- in the html as the icon selector adds the complete fontawesome name). Only thing I would change but unsure is whether you can have or selector somehow as it currenlty only adds icons to the selectors found pages not a template or a field for example. i.e. for mulitple selectors.
- 28 replies
-
- icon
- fontawesome
-
(and 2 more)
Tagged with:
-
couldnt work it out, just gave me a field for searching the pages on the site but not selecting them... and it wouldnt show templates or fields. I was able to use select multiple instead thought. For example: $f = $this->modules->get('InputfieldSelectMultiple'); $f->attr('name', 'template'); $f->description = $this->_("Template or templates of pages to trigger bulk email to users after new page published"); $f->addOption('', ''); foreach($this->templates as $template){ $f->addOption($template->name, $template->title);
- 28 replies
-
- icon
- fontawesome
-
(and 2 more)
Tagged with:
-
this module still working with Mandril? I'm trying it on the mailchimp trial. cannt seem to get an emali sent after setting up their DNS settings and using the example wireMail() example im getting 0 for $count = $mail->send()
-
Sure, how does one do that
- 28 replies
-
- icon
- fontawesome
-
(and 2 more)
Tagged with:
-
MarkInPageTree New module which does what it says in the title. It adds an icon to a page on the page tree if -> a specific field is true and / or is a specified template. For example I'm using it to add an icon to any page that has a checked (checkbox) exclusive field. This helps with admin clarity as you can see instantly which pages of the same template have differing content (i.e. are exclusive or not). https://github.com/benbyford/MarkInPageTree
- 28 replies
-
- 10
-
- icon
- fontawesome
-
(and 2 more)
Tagged with:
-
Work in progress modules Subscribers / WireMailChimp
benbyf replied to benbyf's topic in Module/Plugin Development
I've been able to start adding some text to the Readme's for these two now. Please get involved if you're interested in helping with these two specific modules as im still relatively new at it.- 18 replies
-
- 1
-
- users
- subscribers
-
(and 1 more)
Tagged with:
-
I keep getting very strange results every now and then after hard refreshes, but doesnt seem to be any consistancy. think there's some issue with the video poster image not being full width, but not really sure what can be done with this as its an attribute added to the <video> element. very strange
-
Thanks @Mike Rockett Works really well for me now! I changed Position to Fixed so it would stay there on scroll and I kept in my js so that it would resize well on window resize (as before it was not covering the window on resize). here is what I had on the js: var innerW = window.innerWidth; var innerH = window.innerHeight; function adjustVideo(){ var videoW = $('.video-bg').width(); var videoH = $('.video-bg').height(); innerW = window.innerWidth; innerH = window.innerHeight; if(videoW < innerW){ $('.video-bg').width(innerW); $('.video-bg').height('auto'); } if(videoH < innerH){ $('.video-bg').height(innerHeight); $('.video-bg').width('auto'); } } adjustVideo(); window.addEventListener("resize", adjustVideo);
-
Please see previous post
-
think i've got myself into a muddle here but i've got each template as a section in my homepage, when I go to each page they work fine (as they wrap the _main page content after), but on the homepage template I want to get all children and rendren the retun from JUST the template itself i.e. getting all the $content returns. Any way of doing this, not somthing I would normally do, just don't want to basically replicate each template into my homepag template as they may go out of sync. Thanks
-
Sorry guys think the project owners are getting confused over their DNS settings. you should be able to find it here: http://www.fabricacapital.co.uk/ MIKE! yes help please! I'm finding it near impossible to get a good solution to kepping the video always fullwidth using <video>, css, and a little javascript to check window width and set video width to it or wndow height which even is bigger... but still isnt perfect and im not sure why. Most of the design is on http://crookdesign.co.uk/ or the client and I could only compremise so much.
-
New website for Fabrica Captial – Commercial Real Estate Investment http://fabrixcap.com/ (previously at http://www.fabricacapital.com/) Design by http://crookdesign.co.uk/
-
Is there a set of best practise for avoiding n+1 queries in Processwire, or is this something that is negated by the core? e.g. https://secure.phabricator.com/book/phabcontrib/article/n_plus_one/
-
Thought I'd show some work in progress modules. Subscribers https://github.com/benbyford/Subscribers has functions for logging in new users, added with new subscriber role bulk export the subscriber users to comma delineated SubscriberList (submodule) module adds an admin page to view your subscribers and page through them, or export WireMailChimp https://github.com/benbyford/WireMailChimp (though I need to change the name on github) Implements https://github.com/drewm/mailchimp-api adds any user save to a mailchimp list settings for API and List id only adds users that have a checked email_subscribe field to true
- 18 replies
-
- 13
-
- users
- subscribers
-
(and 1 more)
Tagged with:
-
how do you pass variables between modules?
benbyf replied to benbyf's topic in Module/Plugin Development
Think i mainly needed a good grounding in HookEvents, and I've now read this (which is ace): https://processwire.com/api/hooks/ I'm using your method above of public functions to access my variables and works well, thanks @horst -
how do you pass variables between modules?
benbyf replied to benbyf's topic in Module/Plugin Development
added modules to github. Module 1 - subscribers module with userSaved function - https://github.com/benbyford/subscribers Module 2 - mailchimp with hook - https://github.com/benbyford/PWmailchimp -
how do you pass variables between modules?
benbyf replied to benbyf's topic in Module/Plugin Development
adding the magic __get() gives me lots of errors in the rest of my code to do with variable becoming null objects.I can no longer use $this->user for example within a function. -
how do you pass variables between modules?
benbyf replied to benbyf's topic in Module/Plugin Development
Think I fundamentally don't really understand how hooks operate. I now hav this in module one: private $userName = ""; public function ___register($input){ $this->userName = $input->post->name; } and module 2: public function init() { $this->addHookAfter('Subscribers::register', $this, 'userSaved'); } public function userSaved($e){ $name = $e->userName; $log = wire('log'); $log->message($name); } but still cant get anything printing out. and its extrememly hard to test this in working as teh hook happens andI have to catch it somewhere but I cant do var_dump etc when it all happens in teh background... -
how do you pass variables between modules?
benbyf replied to benbyf's topic in Module/Plugin Development
cant say I really understand yet, sorry. Will keep trying and see if I can crack it -
how do you pass variables between modules?
benbyf replied to benbyf's topic in Module/Plugin Development
thanks @horst. I'm trying to access both a varible set in the hooked function and the varibles passed to the first function, so will $vars = $event->arguments[0]; work for both? i.e. get $vars and userSaved? -
How would one pass a variable set in one module to another module via a Hook? e.g. module 1. public function ___saveUser($vars){ $userSaved = true } module 2 public function init() { $this->addHookAfter('module1::saveUser', $this, 'userSaved'); } public function userSaved($e){ $userSaved = $e->userSaved; return $userSaved; // true? }