Peter Knight
Members-
Posts
1,384 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Peter Knight
-
Next / Prev link with thumbnail error
Peter Knight replied to Peter Knight's topic in General Support
Solved with the help of Tom's question in 2012 I adapted it slightly to <?php if ($page->prev->id) { $prevThumb = $page->prev()->Images->first()->getCrop('articlesquare'); echo " <h3>Previous Article</h3> <figure class='uk-overlay'> <img src='{$prevThumb->url}' /> <div class='uk-overlay-panel uk-overlay-chevron-left'></div> </figure> <a href='{$page->prev->url}'>{$page->prev->title}</a> ";} ?> -
Hi I have a series of child pages with Next and Back thumbnails under each page. Parent - Child 1 - Child 2 - Child 3 - Child 4 I want Child page 1 to know it's the first page and not try to render a thumbnail. Likewise, I want Child page 4 to know it's the last page etc... My code works when I am not trying to call a thumbnail but as soon as I try to check for the existence of a previous or next page, my check fails. <figure class="uk-overlay"> <?php //get the cropped thumbnail from the previous page $image = $page->prev->Images->first()->getCrop('articlesquare'); // if there is a previous page, show a thumbnail if($page->prev){ echo "<img src='{$image->url}' alt='{$image->description}' class='art-prev' />"; } else { echo "";} ?> <div class="uk-overlay-panel uk-overlay-chevron-left"></div> </figure> <a class="<?=$page->prev->id ? 'previous' : 'no-before'?>" href="<?php echo $page->prev->path; ?>"><?=$page->prev->title?></a> Should I in fact be approaching this differently as the page is first looking for the existence of a cropped thumbnail?
-
Nice idea. I was looking into something similar today.
-
PW 3.0.4: Repeaters Revisited + ProFields Matrix
Peter Knight replied to ryan's topic in News & Announcements
There aren't enough Like buttons for this! -
isn't the default url domain.com/wp-admin.php In PW I can only setup page urls like this domain.com/wp-admin/
-
@benbyford I got a little lost in the Docs and found them hard to follow. Eventually I reverted to a Plesk extension which did the hard work for me. Which part are you stuck on? I found that the default PW .htaccess was preventing the installation of the extension and had to temporarily rename it.
-
I have HootSuite running for social media management. One thing I like to do is have separate streams running for various CMS I have an interest in. This means I can quickly see all posts mentioning CMS A, CMS B, CMS C etc in a dedicated stream. Makes it easy to follow community topics and product developments etc. But it also makes it easy to gauge social media chatter in relation to a CMS. One thing I've always noticed is how few mentions and tweets PW gets compared to other CMS. IMHO we have a very active and enthusiastic community (as evident from the forums) but a relatively quiet community when it comes to Twitter and Facebook. I'm guilty of this myself but the same thing occurs to me every time I see those three social media streams lined up side by side. Why is it that users of CMS B and CMS A are so vocal on twitter, google plus etc and quick to promote their CMS when PW gets a mention or re-tweet only every second of third day? Incidentally, the 2 other CMS I follow are not huge platforms where you'd naturally expect thousands of tweets a day in comparison to ProcessWire. Anyway, the above occurred to me again after reading Ryan's roadmap post where there was specific mention of This was followed by mention of : curiously there was no mention of social media. Is there an unintentional prejudice against Twitter, GooglePlus and Facebook etc that we're not aware of? Ok, it's an odd question but I thought it'd be worth a check. ProcessWire is growing in userbase, the forums are attracting new members weekly, the CMS itself is a work of art, we have wonderful blog updates on a weekly basis and we have Teppo's PW Weekly too. That energy and excitement seems to ripple out so far and then stop when it reaches an invisible social media force field...
- 9 replies
-
- 1
-
-
- marketing
- social media
-
(and 1 more)
Tagged with:
-
Image field UI and general tidy up
Peter Knight replied to Peter Knight's topic in Wishlist & Roadmap
This post has had an inexplicable surge of Likes over the past few weeks so there seems to be quite a bit of interest in this 7 months later. I've been unable to follow these concepts up with the time they deserve but those interested in an mage field tidy up can see Toms own beautiful work mentioned on the Dec 18 blog post. Furthermore, Ryan mentioned in today's Roadmap blog post that these (Tom's) designs are already being worked on by LostKobrakai. Exciting stuff! -
So.. My first newbie question to the community
Peter Knight replied to Zislatik's topic in Getting Started
Never used the delayed output method. Wondering if it's the best method to start with or does it increase the learning curve. Welcome to PW -
Yippeee. I did it See last line of this code. <?php $articles = $pages->find("template=articles-post"); //find all posts based on this template foreach ($articles as $article){ // these are this $audience = $article->articles_tag_audience; echo " <div class='small-12 medium-6 large-4 columns masonary-brick'> <div class='article-wrapper {$audience->implode(" ", "title")}'>
-
Thanks - will try. At the moment I don't need to (don't know how to) sanitize page titles because they'll always be 1 word titles determined by me. But I like the idea.
-
Hi I'm trying to inject a list of tags (page titles) into a DIV so that this: <div class ="article-wrapper"> becomes <div class ="article-wrapper tag01 tag 02 tag 03"> It seems very simple but it's failing to output and not throwing any warnings. It's the variable on line 4 called audience that should be scooping up my articles_tag_audience page titles <?php $articles = $pages->find("template=articles-post"); //find all posts based on this template foreach ($articles as $article){ // these are this $audience = $article->articles_tag_audience; echo " <div class='small-12 medium-6 large-4 columns masonary-brick'> <div class='article-wrapper {$audience->title} '> etc... I've also tried <div class='article-wrapper . {$audience->title} .'> which has worked on occasion. Oddly, the following is used (and works) further into my code block { echo $audience->implode(", ", "<a href='{url}'>{title}</a>"); } so I know the page titles exist.
-
MarkupSEO - The all-in-one SEO solution for ProcessWire.
Peter Knight replied to Nico Knoll's topic in Modules/Plugins
Hey @nico I hadn't (yet) as I thought it was me overlooking something. Will do soon. Thanks -
Merry Christmas everyone.
-
MarkupSEO - The all-in-one SEO solution for ProcessWire.
Peter Knight replied to Nico Knoll's topic in Modules/Plugins
Hi guys. Sorry for the double post just wanted to ping this again. Basically I have Index and Follow set in the Robots part of this module. How (via the Module) can I set a NOFOLLOW or NOINDEX on a per-page basis to over-ride the default? It seems like it's not possible or has been overlooked? -
I just updated and found this quite confusing (initially). I was thought it was a bug. I think tree is more intuitive under the Pages menu and I know my clients are hard-wired now to expect it there. I'm happy to un-wire them but I think the natural home for the tree link is under Pages and is most intuitive there.
-
MarkupSEO - The all-in-one SEO solution for ProcessWire.
Peter Knight replied to Nico Knoll's topic in Modules/Plugins
If you set the Robots field to index and follow, can you over-ride this on an individual page? There's a per-page Custom field in the SEO tab which reads I was expecting to paste <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> into this area but it outputs oddly as: <meta name="META-NAMEROBOTS-CONTENTNOINDEX-NOFOLLOW" content=""> Furthermore, the original INDEX and FOLLOW still appear further up the list of META tags -
Hi Kongondo, I've an early version of the blog module (2.0) running. Now that I'm more comfortable with PW selectors etc I want to custom-build my own blog using basic pages. Tags and Categories will be new pages too. In fact - it's very similar to what you've done with blog but less technical. My questions are: 1. if I start a new blog (manually built) is there anything to stop me moving the old Posts to a new containing Page (called Blog 2). 2. Ditto with Tags and categories (I'm not worried about Archives and Authors right now) 3. Not urgent but I'd like then to uninstall Blog. is there a clean way to do this and leave my tweaked templates intact or should I just leave it installed?
-
I quite like it but it's new-ish to me so still a novelty. What do you prefer? C-Panel ?
-
Ok- I found the issue. When you preview a site in Plesk, you can choose a preview URL for the website which generates a kind of URL as follows website-space.com.XX-XXX-XXX-XX.preview-url.com XX etc is the server IP address. My problem was caused because the preview-url.com had some DNS issues and a .htaccess error too. Thanks for the ideas guys. Looking forward now to a strong coffee and several hours redesigning this thing!
-
Horst - ill do try that. I had disabled ProCache from the Modules area but I'll do some renaming etc and test.
-
I'm using separate databases. Both databases have the same names, usernames and passwords though but they're on different servers. I'm not sure that's an issue though because making an admin change works fine. It's just the template files and includes which incorrectly all come from VPS 01.
-
Have you run it through Google Page Speed insights? or Gtmetrix etc? It's not your hosting.
-
I'm thinking I should shorten my post to what's the best way to nuke the cache and apart from Config and .htaccess, where might a legacy base path be hidden?
-
Module Comments Manager Enhanced (proof-of-concept)
Peter Knight replied to kongondo's topic in Modules/Plugins
Is the plan to merge this with the current CommentsManager or keep it separate?