Jump to content

Peter Knight

Members
  • Posts

    1,419
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Peter Knight

  1. Because the site is in development. Top secret
  2. Hi guys I'm running PW on a VPS on Plesk for the first time and having some problems. The DNS hasn't yet kicked in so I have a funky IP address, port number and webspace name in the URL which aren't helping. I've obscured the real address here but you get the picture https://111.111.111.111:8443/sitepreview/http/mydomain.com/processwire/ I can load up the login page but the css isn't mapping correctly and looks like Is it the htaccess I need to edit by changing # RewriteBase / to RewriteBase /sitepreview/http/mydomain.com/ or something else? Currently above doesn't work. If I look at the source, the css is mapped as follows: <link type='text/css' href='/wire/modules/AdminTheme/AdminThemeDefault/styles/main-classic.css?v=12' rel='stylesheet' /> <link type='text/css' href='/wire/modules/Process/ProcessLogin/ProcessLogin.css?v=101' rel='stylesheet' /> <link type='text/css' href='/wire/templates-admin/styles/font-awesome/css/font-awesome.min.css?v=12' rel='stylesheet' /> <script type='text/javascript' src='/wire/modules/Jquery/JqueryCore/JqueryCore.js?v=183'></script> <script type='text/javascript' src='/wire/modules/Jquery/JqueryUI/JqueryUI.js?v=193'></script> <script type='text/javascript' src='/wire/templates-admin/scripts/inputfields.js?v=12'></script> <script type='text/javascript' src='/wire/modules/AdminTheme/AdminThemeDefault/scripts/main.js?v=12'></script>
  3. Hey - Glad you're getting there. No worries. The forums are full of helpful PW users. If you've any probs in the future, just shout.
  4. Have used the Dev on most of my projects without any problems. There's a great little Module called CoreUpgrade which allows me, within a few clicks, to upgrade my PW installations to the latest Dev branches. I know I shouldn't be so eager to have a site running several versions ahead of the Stable version but it's just too addictive.
  5. @Kongondo Thanks for the quick reply. I assumed the Date field was called date. As you point out, it's actually "blog_date". I've installed Somas Helper Field Links and this has made the field names more obvious. I'm not sure either. I don't do this in my current projects and I wondered if it was a legacy piece of code. Clearly just an error though. Yes, we use it for a tiny summary on the blog overview page. You probably have something like this native now but this is an older version of Blog Module I've yet to update. Also, wanted to apologise for the abrupt request for help in the original post. My client is presenting this at 10AM this morning and informed me 30 mins prior to the meeting that they needed the posts in a particular order. The order had been fine for the past few days. Anyway, thanks again.
  6. I have a series of blog posts on my blog.php. It's just rendering a preview image, date, title and summary. I want to control the order of the posts but neither sort=-date or sort=sort is working when added to my two selectors. <!-- CENTRE COLUMN - MAIN --> <div class="small-12 medium-9 large-9 columns "> <!-- START Nested Column containing featureimage and post-summary --> <?php $blogposts = $pages->find("template=blog-post"); foreach ($pages->find("template=blog-post,") as $b) { echo " <div class='row row-spacer'> <div class='small-12 large-6 columns'><img src={$b->blog_images->first()->url} /></div> <div class='small-12 large-6 columns'> <div class='posts-date'>{$b->blog_date}</div> <h3><a href='$b->url'>{$b->title}</a></h3> {$b->blog_summary}</div> </div> "; } ?> <!-- END Nested Column containing featureimage and post-summary --> </div>
  7. Have a look at Field-Name > Input (Tab) > Input Field Type There's a few options for handling tags. I found they're not brilliantly documented but worth a fiddle to see what they produce and how they handle text.
  8. Back up now. Looks well. In another life, I'd love to run a print gallery so I enjoyed looking through this
  9. Tara - when you create Alex as a child page, can you actually see a list of other staff members? I have a feeling that individual staff members are created somewhere else within the tree. Possibly theres a different folder for Chairman Board Senior Mgmt I could be wrong but thats worth a look.
  10. Currently showing Maintenance Mode for me. Have you taken it down?
  11. 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?
  12. 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.
  13. 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.
  14. @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
  15. 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.
  16. @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?
  17. Great to hear. What were you using before?
  18. 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
  19. 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
  20. Nothing of note. Optimizing those blog tables seemed to have an effect and it's noticably faster now.
  21. 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
  22. 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
  23. 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?
  24. 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?
  25. LOL. I'm on 2.5.15 I'm running out the door but THANKS! Will try this tomorrow
×
×
  • Create New...