abdus
Members-
Posts
743 -
Joined
-
Last visited
-
Days Won
42
abdus last won the day on October 19 2017
abdus had the most liked content!
Contact Methods
-
Website URL
https://abdus.co/
Profile Information
-
Gender
Male
-
Location
Istanbul, Turkey
-
Interests
Web development, gymnastics, photography
Recent Profile Visitors
5,458 profile views
abdus's Achievements
-
PW3 include&bootstrap: undefined function wire()
abdus replied to mav_medved's topic in General Support
Change this line to <?php namespace ProcessWire; With v3.0, all global functions are now under ProcessWire namespace, so you need to either declare namespace at the top or prefix function calls (\ProcessWire\wire() for instance)- 2 replies
-
- 5
-
- wire function
- include&bootstrap
-
(and 1 more)
Tagged with:
-
[WIP] ProcessMailer - A module for managing and sending newsletters
abdus replied to abdus's topic in Modules/Plugins
Not yet, I'll update the post once I get the alpha version ready. -
Ideas and best practices to secure a member registration system
abdus replied to modifiedcontent's topic in Security
There's invisible recaptcha that only shows up in case of suspected bot activity https://developers.google.com/recaptcha/docs/invisible- 10 replies
-
- 3
-
- no subscription detected
- not recognized
-
(and 4 more)
Tagged with:
-
Use $e->object->hasPage property // Inputfield.php * @property null|bool|Fieldtype $hasFieldtype The Fieldtype using this Inputfield, or boolean false when known not to have a Fieldtype, or null when not known. #pw-group-other * @property null|Field $hasField The Field object associated with this Inputfield, or null when not applicable or not known. #pw-group-other * @property null|Page $hasPage The Page object associated with this Inputfield, or null when not applicable or not known. #pw-group-other
-
[WIP] ProcessMailer - A module for managing and sending newsletters
abdus replied to abdus's topic in Modules/Plugins
That would be up to 3rd party services (almost all services support some type of tracking) or developer (by creating trackable links, 1x1px tracking gifs etc) -
Hook: Check field data and prevent page from being saved
abdus replied to Susticle's topic in API & Templates
Hook into Pages::saveReady instead and throw error inside checkMethod() -
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
abdus replied to David Karich's topic in Modules/Plugins
Enable debug mode in site/config.php. You're probably getting an error that's preventing PW to complete page render. -
Keep it simple. There are dozens of JS libraries out there that generate table of contents for you. Google "jquery toc"
- 14 replies
-
- 2
-
- table of content
- anchor
-
(and 1 more)
Tagged with:
-
If you can find a .edu email, you can use it for free.
-
I'm not sure if your editor highlights variables inside strings, but PhpStorm, for instance, makes it really easy to spot the difference. Check your editor/highlighting settings, there might be an option to enable it. And yeah, tunnel vision is definitely real.
-
I may be wrong but the problem is most likely due to this line. With single quotes, $evName is interpreted literally, so you get errors trying to create the same page again, and don't notice it because you probably have the debug mode off as @Robin S pointed out. Also, <?php namespace ProcessWire; foreach ($events as $event) { // you don't have to manually clean up strings to create page names, just use $sanitizer $evName = $sanitizer->pageName($event['name']); $p = $pages->get("/events/$evName/"); if (!$p->id) { $p = new Page(); $p->template = 'basic-page'; $p->parent = '/events/'; // $p->name = '$evName'; // single quotes -> interpreted as literal string $p->name = $evName; } $p->of(false); $p->title = $event['name']; $p->save(); } ?>
-
Possible to add an "select" text option to a template select at the top?
abdus replied to Juergen's topic in General Support
Ok, so if I understand it right, you want to force user to pick a template. I'm not sure if this fits your needs but with a bit of JS and hooks you can remove default value and set the template select required (with `required` html attribute), such that you cant get to the next step without deliberately picking a template wire()->addHookAfter('ProcessPageAdd::buildForm', function (HookEvent $e) { /** @var InputfieldForm $form */ $form = $e->return; $form->add([ 'type' => 'markup', 'value' => '<script>document.querySelector("[name=template]").selectedIndex = -1;</script>' ]); $template = $form->getChildByName('template'); if ($template) $template->attr('required', 1); }); -
Assuming _func.php is under templates folder, you need to include _func.php in your hanna code like this: <?php include_once $config->paths->templates . '_func.php'; echo "<div class=\"grid_xs-1\">"; foreach ($pages->find("template=property") as $properties) { // ...
-
Displaying the most recent blog posts using different layouts for each
abdus replied to mike62's topic in Getting Started
https://processwire.com/talk/topic/6196-easy-search-on-pw-forums-with-google/?tab=comments#comment-60632 https://processwire.com/talk/topic/6196-easy-search-on-pw-forums-with-google/?do=findComment&comment=153343