-
Posts
343 -
Joined
-
Last visited
-
Days Won
10
Everything posted by WillyC
-
[SOLVED] Trouble Comparing id Property of PageArray Objects
WillyC replied to Boost's topic in Getting Started
you showd 4 pageArrays.but what is value $page->author->id ? 1117, 1120 or mebe some thing else ? or go back .-.-.- why load.all author when u only.need 1 ? <?= $page->author->title ?> @Boost -
No user list in PW 3.0.226 with ListerPro 1.1.5
WillyC replied to update AG's topic in General Support
@update AG any js.erroros when reloado w/browser dev tools opens ? u try v.1.1.6 ? admins theme uikit ? willyc -
Weekly update – 28 October 2022 – TinyMCE Inputfield released
WillyC replied to ryan's topic in News & Announcements
@Cybermano inlines style from copypasta or.tinymce makes them ? -
Weekly update – 28 October 2022 – TinyMCE Inputfield released
WillyC replied to ryan's topic in News & Announcements
@Hackasacka u.uses custom json config settings there is 1 in module confedigurations screens and is an other in field.setting screen -
but a couple of modules that do fiddle around with user rights ( Admin Restrict Branch and Page Edit Per User). u.try disabble theese mods ( temproraley) to.see if is it?
-
ga beer -- u.try this in home.php ? if ( $input->urlSegment1 === 'files' ) wire404();
-
Art bot, Databass selector and.WireArray selector diffnt things and not do same thing .this is the way one.is airplane / other is tractor WireArray selector for any.things in memory : fields : templates : fieldgroupos : smogashsnags : ur own tipos : and if necessario - pages in memory { b.coz PageArray extendo WireArray } but u shlud use airplane for.pages not tractor WireArray selectors = genral purpoose for any things u can hold in WireArray in mem. ,, tractor Databass selector == more power ful and optimizely justed for.pages ,, airplane !!! if u using WireArray selector for |find|filter| pages then you are loaded pages u should not / not necessario / not fficent / donut push pages round in.tractor fly, $willyc
-
bern hard, https://processwire.com/api/ref/page/meta/ $bern_hards_datas = $page->meta()->getArray(); love $willy
-
art fulbot, usea that select-options field type.if you not want pages fer select opts. thats blog tut.very olden days, they are was not select-options type then {{ but I still like to uses pages most times }} for comment donut use pages 4 comments install ProcessCommentsManger module in Modules>Core>Process edit.comment field .. clicka Input tab .. choose "yes" for "use comment manger rather then in-page editor" for findning comment use comments find() methoda n.joy youwill or ask more love, $willy
-
not security hole files .in /site/assets/cache/HannaCode not web access-ible so no need to die()
-
donut worry. this.is stupid scam emails by kids playings on moms computer https://udo.net.au/The-We-Have-Hacked-Your-Website-Email-Scam~5776
-
@Matzn that not.how obj inheritennce work { .clsses inherit code not runs time valus } class A{public $foo;} class B extends A{} $a=new A(); $a->foo='Foo'; $b=new B(); echo $a->foo; // 'Foo' echo $b->foo; // emptys.. nothing modules work.same { .mabe.u want this in you TestModuleChild ? } >>> public function __construct(){ $this->setArray($this->modules->getConfig('TestModule')); }
-
Migrating website from dev server to live server.
WillyC replied to Siddhi Jagtap's topic in General Support
@Siddhi Jagtap u.file perms is no write. /site/assets/* need tobe readerable/writedable to.apache sound like apache .run as account that.not you - mabe find new web host that less truble or u.can find out.user what apache run as - "apache", "nobody", "buldnog", etc. if user "apache": https://processwire.com/docs/security/file-permissions/#determining-what-user-apache-runs-as chgrp -R apache /site/assets find /site/assets -type d -exec chmod 775 {} \; find /site/assets -type f -exec chmod 664 {} \; https://processwire.com/docs/security/file-permissions/#how-to-change-permissions-of-existing-files but also visitarlos cont'la lachpud may helper - https://processwire.com/docs/security/file-permissions/ -
Bern hard u.can does $wire->addHook('/mymodule/{foo}/{bar}(/{baz})?/', function($e) { return "<pre> foo: $e->foo bar: $e->bar baz: $e->baz "; }); @ bern berna hard @ @bernhard
-
how.abt u use $cache 2 do jus do it. 1once per hour ? echo $cache->get('topic-count', 3600, function() use($topics) { $str = ''; $strategy = pages()->get("template=genre, name=strategy"); foreach($topics as $topic) { $count = pages()->count("template=game, genre=$strategy, topic=$topic"); $str .= "<li>$topic->title: $count games</li>"; } return $str; }); also.2 make faster u better should uses "id" not name, so "topics" no 'topics.name' and "genre" not genre.name etc. othrwis pw have to look those up for u (?) every time of foreach @rjgamer
-
@MSP01 1.. pw cachis any.thing it load, so no.many how times u.cal $page->feld or $page->parent->smoga or $page->feld->bilpa --- it load feld or smoga or bilpa 1 time....... if autojoinin for.feld smoga or bilpa then it load it with th 1 queery that loader page 2) yes 1 sql to loader template=settings page and 1 sql to loader somesetting. ifs somesetting.feld is autojoinin then 1 sql for both. if u.cal eithers template=settings page agains or somesetting agains then alredy loadeded so no xtra sql unless u $pages->uncacheAll() whch clearys it all 3- may be. autojoinin can makes littel small faster but at cost of memry .use autojoinin only for.felds that u accessor on.evry load of $page. title good one to be.autojoinin ......most othrs not;;; body or images and most betters not autojoinin
-
Ajax help please - Correct way to implement an external php script
WillyC replied to Greg Lumley's topic in General Support
u.can do on anyee page template like .this if($config->ajax){ // u do.ajax $data=['status'=>'ok', 'massage'=>'hi whirld']; header('content-type: application/json'); echo json_encode($data); exit; }else{ // u.do html } -
super user.s required to create fielders y templatos purposefulness of super user this.is with out such purpose is not.super
-
no argumentas needeed what.u wants is event->return wire()->addHookAfter('Page::render', function (HookEvent $event) { $page = $event->return; });
-
$page->find()start from $page if $page != home { $page->find( 'parnet=/blog/' ) will.alwayse return NO things } so >>> u.must use $pages->find() noT $page->find() !! OAR u can.uses $pages->get('/blog/')->children( 'limit=3, include=all' ) if usesing $pages say shits bout array it mean yoU write-over it some where >>> u did a $pages = array some.where ! fix that.or u can uses wire( 'pages ')->find(' you.selectoro stuff here '); or functiones api pages()->find( 'selectros in this' ) amen
-
wire( 'sanitizer')->entities( $u->title ) => $url . $u->id, wire( 'sanitizer')->entities( $u->request_type->title ), wire( 'sanitizer' )->entities( $dog_ref->title ) => $url . $dog_ref->id, wire( 'sanitizer' )->entities( $mailer->name ), ... "<a href=''>Schváliť</a>", // u NO.entitties on this.ones
-
looks.ikes u w ant $table->setEncodeEntities(false);
-
u want.to set for.use serveors timezine no client not big prolem if.u set wrong
-
here.u go echo $pages("parent=/")->implode('<a href={url}>{title}</a> ');