Peter Knight
Members-
Posts
1,377 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Peter Knight
-
Should clarify that removing the body field worked. I wasn't sure how to get your own github version running. Tried manually adding your changes and that didn't work.
-
Hey hwmaler That works so I can confirm it's an issue with recursive Body fields.
-
Jason Coward (lead developer) has published some info on Medium within the last few weeks. I believe things are ramping up again and taking direction.
-
Just happened to me when I opened the Admin in a new browser. Normally it resets randomly when installing modules. Interestingly, uninstalling Reno via Modules and reinstalling has no effect. :-/ Scrap that. The other browser had opened a test server.
-
Are you running the beta Config module by any chance?
-
Just wondering about the overlap with other crop modules? Are there plans to integrate these Image cropping modules? Maybe have a list of pre-defined crop sizes available in a drop down. Crude mockup attached. See top right of the image.
-
Briefly tried it. No issues and beautifully implemented. I have an OCD issue with the title of the modal window being upper-case. Same in ListerPro too. But realise thats off topic
-
Here's the Git issue BTW https://github.com/ryancramerdesign/ProcessWire/issues/905 Still having issues with this on latest Dev branch. For me it happens mainly when I install a new Module.
-
I didn't know there was a PW group. Spot on re. friends being notified everytime we post. Would you lose the / any SEO benefits though by going private?
-
Think I've finally gotten to the bottom of this. MAMP Pro was using 80 , 443 and 3306 as ports for Apache, SSL and MySQL. Setting it back to the defaults of 8888,8890 and 8889 increased speed and page refreshes from 9+ seconds to 2-3 seconds. I also wonder if the port 80 was clashing with Skype. Just glad to have a platform I can now work on locally.
-
Yes. One of the first things I checked too after making that error last time I'm going to deconstruct things tomorrow. Start off with calling just a single field in a basic template. Will report back
-
Your code outputs It's 9 teams ...which is the correct amount BTW
-
That correctly displays within HannaCode itself (Save and Test) and counts 9 teams. Once the HC tag is added to the Body field, I get a single team biography. No name or job role either. I've seen this on peoples code samples before and always wondered why they were using this. Thanks for the tip
-
I have this really odd HannaCode bug which I've been trying to fix for about a day now. I think it's finally beaten me get-team-management is a simple loop through some team pages and outputs their name, job role, body and photo. <?php $teams = $pages->find("template=team_member,limit=10"); foreach ($teams as $team) {echo" <div class=\"team-wrapper\"> <h2>{$team->title}</h2> <h3>{$team->team_role}</h3> {$team->body} </div> ";} ?> Hitting Save and Test on HannaCode displays the content perfectly. Great ! Next it's time to add my HC tag within body field. I'm adding it after a small piece of dummy intro text as per screengrab. The resulting output is single team biography (body field) from a single team member. There should be 8 team members outputted and the dummy text before my HC tag has vanished too. There should be a small intro paragraph followed by each team members title, role, body. The next logical step is to embed my PHP directly in the template and bypass HannaCode. This works in that each team member has all the info required. Any ideas where to look on this one? I'm running the latest Dev 2.5.17. My first thought was to check the team members were all published and all had the correct template (team_member). They do. Next step was to try placing my echo directly into the template. That way I'd know if it was perhaps/or not HannaCode at fault.
-
Cool book. Really loved the illustrations and commentary Thats a very diverse bunch of clients. Architect project sounds great. Lots of nice, massive images?
-
My weekly Friday pub question What are you all working on at the moment in PW? Tell us a bit about it, what it does, who it's for and how it works. I'm currently building 2 sites for a UK company in the broadband performance/ analytics space. The main corporate site is about 20+ pages. Nothing too fancy-pants happening but apart from looking great, it needs to be speed optimised to within an inch of its life due to the industry the company is in. There'll be some integration with SalesForce, a blog and some login/registration areas connecting the two. What about you?
-
Good to know. I saw Integrity constraint violation and Wire->runHooks('savePageField', Array) and assumed the worst.
-
Hi guys. Just received an automated email from PW regarding an error on my guest account. I wondered what the message below meant. IE someone trying to login or run some API scripts or a hack attempt? There is a guest account in my install but no one has been assigned to it. Page: http://www.test-domain.com/http404/ User: guest Error: Exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41-0' for key 'PRIMARY' (in /var/www/vhosts/test-domain.com/httpdocs/wire/core/FieldtypeMulti.php line 261) #0 [internal function]: FieldtypeMulti->___savePageField(Object(User), Object(Field)) #1 /var/www/vhosts/test-domain.com/httpdocs/wire/core/Wire.php(365): call_user_func_array(Array, Array) #2 /var/www/vhosts/test-domain.com/httpdocs/wire/core/Wire.php(320): Wire->runHooks('savePageField', Array) #3 /var/www/vhosts/test-domain.com/httpdocs/wire/core/Pages.php(1275): Wire->__call('savePageField', Array) #4 /var/www/vhosts/test-domain.com/httpdocs/wire/core/Pages.php(1275): FieldtypeNotifications->savePageField(Object(User), Object(Field)) #5 [internal function]: Pages->___saveField(Object(User), 'notifications', Array) #6 /var/www/vhosts/test-domain.com/httpdocs/wire/core/Wire.php(365): call_user_func_array(Array, Array) #7 /var/www/vhosts/test-domain.com/httpdocs/wire/core/Wire.php(320): Wire->runHooks('saveField', Array)
-
This is such a cool feature and beautifully implemented. I'd love to eventually see something like this where you can check multiple templates field could be applied to ...which reveals the list of fields incl. sorting I guess its a mix of @Ryan current work and @LostKobraKai idea earlier in the thread.
-
Sounds great. Just out of interest, when something is committed to the Dev branch, is there an additional step(s) needed before it's available for the masses? My CoreUpgrade module isn't showing any updates yet and I'm running 2.5.17.
-
I use a mix of upper and lowercase for my field names. I should really settle on lowercase, I guess.
-
@Adrian - you just beat me to it Thats how I fixed too.
-
I have some very simple Hanna Code placed in a body field. It gives very mixed results. This works and I've no opening or closing PHP tags. The docs say I dont need them. $suppliers = $pages->find("template=brfs-suppliers-detail"); foreach ($suppliers as $supplier) { echo " <div class=\"small-12 medium-6 large-4 columns partner-wrapper\" > <img src=\"{$supplier->supply_partner_logo->url} \" class=\"partner-thumb\" > {$supplier->title} </div> " ;} I now need to top and tail that block with an opening and closing div. To do this, I have to reinstate the opening and closing PHP tags as follows <div class="row"> <?php $suppliers = $pages->find("template=brfs-suppliers-detail"); foreach ($suppliers as $supplier) { echo " <div class=\"small-12 medium-6 large-4 columns partner-wrapper\" > <img src=\"{$supplier->supply_partner_logo->url} \" class=\"partner-thumb\" > {$supplier->title} </div> " ;} ?> </div> This gives me an error Currently, line 3 is blank due to formatting. I also tried placing all the code on the same 2 lines and I still get an error re. Line 3. Do you think this is a general bug or a bug in HC 0.1.9? I'm running PW 2.5.17.
-
I looked at my database and there was no field called Supply_Partner_Logo But there was a supply_partner_logo (lower case). Having updated the field name to lower case, I can now see the Crop button.
-
Hi Horst I'm running CroppableImage on 2.5.17 for the first time. I've created a field Type of CroppableImage and set Input Type to CroppableImage too. When I set the Image name and dimensions in Crop Settings, I get the following error Table 'brfsel_prowire.field_Supply_Partner_Logo' doesn't exist SELECT pages_id,count(pages_id) FROM field_Supply_Partner_Logo GROUP BY pages_id ORDER BY pages_id