Peter Knight
Members-
Posts
1,384 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Peter Knight
-
NP. Assuming the page which lists staff is called "Our People", find that in the tree of pages. Click the Edit button to the right of the Our People page. Once you're in edit mode, look for the Settings Tab and there should be a Template field listing the template used. Hmm, this might be a problem. Templates in PW are often PHP files and usually live on the server itself. They're not usually directly editable within the PW admin. Do you have FTP details to the server or some way of connecting? The only alternative I can think of is to install a Module called Template Editor (link) which will allow you to at least copy and paste the code here. By the way, I can see on your site that there is code being generated for the new staff member (beside Steve) but there's no content being outputted. Are you sure you're updating the right part of your site?
-
Here's a nice little PW story. Working on a large-ish PW site at the moment. I'm not dealing directly with the business owner right now. Rather, my contact & client is a friend of the business owner. Having provided him with login details and a PW admin account, we agreed that the business owner should not yet be given login details. We've a few months before training is supposed to begin and site needs a little back-end housekeeping. IE fields need to be labelled correctly templates named more sensibly etc. I discovered recently that the business owner had prematurely been given login details and is already making content changes. This is so contrary to my client experiences with other CMS's that it's cheered me right up. Normally, even after extensive training, clients can choose the wrong templates have problems uploading and adding images generally have *some* issues adding content This is not a fault of the client but rather a problem with the CMS thats built for technical end-users instead of content editors. It just confirms to be completely why PW is the right CMS for this site. And BTW, the business owner isn't very tech-savvy and has never used a CMS before.
-
Hi Tara Welcome to the PW forums. What template is actually displaying the list of people on the front-end/ public website? The code generating the template above could be set to only display X members of staff or people. If you had access to template and pasted the code here, we could confirm.
-
@Kongondo Can confirm I meant blog-post.php. IE The template files. Best thing for me to to is grab some time and actually try it
-
One of my clients has some pretty specific layouts in mind. I feel more comftrable creating the layout directly inside my own templates. What I had in mind was to replace the various blog php templates with my own code.
-
@Kongondo If there was acase where we were using completely all our own templates, do you think the Blog Module still has benefits? I know the dashboard is very useful ... is that the main feature we'd still use?
-
Great to hear. What were you using before?
-
Ftill looking into this. Might be next week before I can really dig in but I'll report back. Thanks for the great tips. My own feeling is this is the result of cloning another localhost site and changing some hostname settings and database stuff. I've a *feeling* PW admin is hanging somewhere in the background as a result of a bad config. Should know next week
-
Are you using DSM 5.1? Synology have a few options for you. 1. Backup to Amazon S3 2. Cloud Sync to G Drive, DropBox, Box, etc
-
Nothing of note. Optimizing those blog tables seemed to have an effect and it's noticably faster now.
-
Yep - am talking about the admin / backend and not the front end. I do have Debug Mode Tools enabled. If I look at the Timers accordian for example, here's my output. These don't seem excessive and if I add them up, don't reflect the true sluggish nature of the site. boot 0.5370 - includes all boot timers boot.load 0.4946 - includes all boot.load timers ProcessPageEdit.execute() 0.4698 page.children(parent_id=3, check_access=0, sort=sort) 0.2274 - 5 page(s): /processwire/page/list/ ... /processwire/page/image-crop/ boot.load.fieldgroups 0.1840 boot.load.modules 0.0718 boot.load.fields 0.0585 boot.modules.autoload.ready 0.0189 boot.load.pages 0.0181 boot.load.templates 0.0155 page.children(parent_id=22, check_access=0, sort=sort) 0.0152 - 11 page(s): /processwire/setup/template/ ... /processwire/setup/batcher/ ProcessPageView.getPage() 0.0113 - /processwire/page/edit/ page.children(parent_id=2, check_access=0, sort=sort) 0.0108 - 5 page(s): /processwire/page/ ... /processwire/blog/ boot.modules.autoload.init 0.0067 pages.get(path=/processwire/page/edit/, status<9999999) 0.0064 - 1 page(s): /processwire/page/edit/ pages.get(name=page-publish, sort=sort, parent_id=31, templates_id=5) 0.0023 - 0 page(s) boot.load.permissions 0.0022 page.children(parent_id=28, check_access=0, sort=sort) 0.0022 - 3 page(s): /processwire/access/users/ ... /processwire/access/permissions/ boot.load.users 0.0007 boot.load.roles 0.0006 boot.load.fieldtypes 0.0005
-
What's the best way to diagnose this and is there anything I should be looking for? I have a Diagnostics module installed and have a few notifications about optimizing blog tables. 9 seconds to expand one of my trees which has just 3 child pages. Saving, opening or editing a field or template takes between 5 to 9 too. Background / tech info The site is a duplicate of a previous site I completed so initially I wondered if there were any corrupt modules or templates etc. Having had a check, all the original modules and templates are installed fine. It's a 2.5.15 site running locally on PHP 5.6.2. I know it's Friday and my Mac and I are tired but 9 seconds is taking the biscuit
-
Time machine to the rescue 100% of the time, I'm just applying the field to a single template but this sounds like an interesting challenge. I won't have a chance next week but shortly afterwards, I'm definitely interested in wireframing up some options. Would they be best uploaded here or PM'd to you or Ryan?
-
Add Adrian's ProcessTemplateFieldCreator for quick access to create new fields in ProcessTemplate. Add new InputfieldIcon module, which enables visual selection of font-awesome icons. You'll see this used in both ProcessField and ProcessTemplate (advanced tabs). I figured there will be plenty of other use cases for this too, like the icon selection in AdminThemeReno and SystemNotifications modules, among others. Agh. Just tried an upgrade and hosed my site. I'll have to come back to this. So it sounds like we can setup new fields when creating a template? What about the opposite - assigning a template when creating a field?
-
LOL. I'm on 2.5.15 I'm running out the door but THANKS! Will try this tomorrow
-
Still thinking this is badly missed from PW. When creating a field, it's natural to want to assign it to a template. @apesia is right that we'd need to consider the field order.
-
Cheers Ivan. I'll try it that way. I got used to doing one way and then they changed it ...
- 2 replies
-
- Foundation
- SASS
-
(and 1 more)
Tagged with:
-
I noticed an echo statement was coded incorrectly and yet it still worked Any ideas why the project_managers field outputs properly ... <?php if ($page->projects_managers){ echo "<strong>Project Managers:</strong> $page->projects_managers </br>"; } else{ echo ""; } ?> ...when it should probably be as follows (concatenated) <?php if ($page->projects_managers){ echo "<strong>Project Managers:</strong>" . $page->projects_managers . "</br>"; } else{ echo ""; } ?>
-
Does anyone here use Foundation 5 and CodeKit 2 and SASS? Things have changed since v5 was released and I wanted to sanity check my setup and my understanding of it. In CodeKit 2, I've created a Foundation project and pointed it at a folder called Foundation within my site/assets/scripts directory. _settings.css (foundation > scss) This is the place to make fundamental changes to the framework. IE change the background color or base font size. This is then compiled by CodeKit 2 into a file called: app.css (foundation > css > css) This file should be referenced in my HEAD as follows (your paths may differ) <!-- Foundation 5 --> <link rel="stylesheet" href="<?php echo $config->urls->site; ?>assets/scripts/foundation/css/app.css"> Previously I'd created a file called foundation-custom.css at the end of my HEAD and used that for custom over-rides. With Foundation 5 and the _settings.css, is this bad practice or no longer necessary or not important?
- 2 replies
-
- Foundation
- SASS
-
(and 1 more)
Tagged with:
-
I caved and ordered that DS415+. Ouch but YAY. Can't wait to try it. Love Plex too btw.
-
For the synology fans out there, the new DS415+ has much better specs. Better CPU and a healthy amount of RAM. https://www.synology.com/en-global/products/DS415+ I'm sorely tempted to Amazon uk one over here but the Euro to GBP conversion isn't great right now. Still I've added and removed it from my basket about 10 times this week. Must be driving their analytics and cart usability analysts nuts.
-
Mate, you're the one that started most of that back chatter I was talking about
-
@dazzyweb Exactly. Glad I'm not the only one. There's been a few PMs doing the rounds on various industry topics. I've been involved in a few but heard of others so there's clearly an appetite for it.
-
Any thoughts on having a private general discussion area on the forums for members that meet certain conditions? For example, members with 200+ posts etc? It could be called Private Pub or something. It's not so much for PW questions but general industry chat which you don't want public on the forums. Use case: I had a general client/freelancer question today which I didn't want to be public. That type of thing...
-
When you say "button" are you referring to a button on the front end of your site? I'm assuming you have multiple buttons and each button is related to a category? Probably a question for the Dev forum but here's a jQuery example of what I think you're trying to do. http://isotope.metafizzy.co/filtering.html