Peter Knight
Members-
Posts
1,377 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Peter Knight
-
Wierd bug which my client just spotted... I have a global footer on my site. It's an include file pulling in three columns of page titles. Col 1 = News headlines Col 2 = PDF titles Col 3 = Video titles All three are pulled in via selectors (see below) and work perfectly across the site except for a paginated news page. Here's the bug. if you click Page 2, the footer Video titles disappear. if you click Page 3 onwards, both the footer PDF titles AND the footer video titles disappear. Here's my selectors...which work apart from p2 and p3 The main news feed <?php $pages->find("template=news_item, news_type=Investor News, sort=-news_date, limit=5"); $pagination = $results->renderPager(); foreach($results as $result) { echo "<div class=\"news-wrapper\">"; echo "<h3><a href={$result->url}>{$result->title}</a></h3>"; echo "{$result->news_summary}"; echo "<div class=\"published-date\"><span class=\"icon-meta icon-calendar-1\">{$result->news_date}</span></div>"; echo "</div>"; } echo $pagination; ?> The disappearing PDF selector <?php $studies = $pages->find("template=case-study, limit=4"); $out = ""; foreach ($studies as $study) { $out .= "<div class=\"home-casestudy-wrapper\">"; $out .= "<span class=\"icon-meta icon-document\"><a href={$study->url}>{$study->title}</span></a>"; $out .= "</div>"; } echo $out; ?> The disappearing video selector <?php $videos = $pages->find("template=video-detail, limit=5, sort=sort"); $out = ""; foreach ($videos as $video) { $out .= "<div class=\"home-vid-wrapper\">"; $out .= "<span class=\"icon-meta icon-youtube-play\"><a href={$video->url}>{$video->title}</span></a>"; $out .= "</div>"; } echo $out; ?> It seems specific to the pagination. Everything works on p1 and there are no debug errors displaying either.
-
Hey Nico Any progress on this lovely CK editor skin?
-
Site broken - error in WireDatabasePDO.php
Peter Knight replied to Peter Knight's topic in General Support
Will do. Wasn't sure if it was definitely ChangeLog but now I've tried it on another test site and had same result. I've created an issue here https://github.com/teppokoivula/ProcessChangelog/issues/7 and fixed temporarily by removing module in the database. -
Hi guys I was installing the ChangeLog module and my site is now throwing the following error Looking at WireDatabasePDO.php line 191, I don't see anything obviously wrong but I'm not familiar with the inner workings of that file. public function exec($statement, $note = '') { $this->queryLog($statement, $note); return $this->pdo()->exec($statement); } Any ideas? Could I manually replace the Wire folder or should I look to cherry pick this fix?
-
No worries. Today I exported a CSV of a content table from Modx and used the cvs importer to import into PW. All went remarkably smoothly apart from some image handling but initial attempts are very promising for text
-
hi chrizz Just wondered if there was an update on this and wether it would handle importing of Revolution or only Evolution?
-
Use HannaCode to fetch an include file
Peter Knight replied to Peter Knight's topic in Getting Started
I realised that although this successfully displayed my form, it wouldn't help my client. Anything they edit and FTP into /templates/includes/ still wouldn't be reflected in /site/cache/HannaCode The suggestion by @Macrura (and probably @LostKobrakai) worked out in the end. -
Use HannaCode to fetch an include file
Peter Knight replied to Peter Knight's topic in Getting Started
Permissions all check out. I manually copied my php file from /includes/ to /assets/cache/HannaCode/ and the php include works great. For some reason my other includes are auto-copied to this location (and work) but the new include wasn't. -
Upgrade from 2.5.24 to 2.5.25 broke the site
Peter Knight replied to Juergen's topic in General Support
Does the same thing happen if you use the Upgrade module? -
Isn't it available in the Client area ? Top right of forums...click your profile name.
-
Use HannaCode to fetch an include file
Peter Knight replied to Peter Knight's topic in Getting Started
No joy with either approach. It's baffling as all my other HCs work and are in the same folder. Other HCs end in .inc. I might try start there. -
Use HannaCode to fetch an include file
Peter Knight replied to Peter Knight's topic in Getting Started
Thanks gents. Will do. -
I'm moving a client site to PW. They've been using Dreamweaver for years and want to continue to use Dreamweaver for some elements of their site. One of these elements is a pretty complex order form (webform.php) I was considering the following A normal PW page called order would have a body field. Within this, I'd call a HannaCode called [[get-webform]] within the code of the hanna code, I'd call that webform.php as an include That'd mean the client can FTP up any changes to include/webform.php and therefore bypass PW a little for this particular element. I know an alternative would be to include the webform.php directly in the template but was wondering if above approach might work too? I've actually tried it already and am getting no output from the HC. Warning: include(/includes/webform.php): failed to open stream: No such file or directory in /var/www/vhosts/site.com/httpdocs/site/assets/cache/HannaCode/webform.php on line 3 Warning: include(): Failed opening '/includes/webform' for inclusion (include_path='.:') in /var/www/vhosts/site.com/httpdocs/site/assets/cache/HannaCode/webform.php on line 3 webform.php does exist on the server and my other includes work just fine. Some of those other includes contain PHP selectors etc.
-
Based on the popularity of this, it's probably a great starting point.
-
Good ideas and advice. Thanks. In truth, I actually like the manual setup and the blank slate approach but sometimes it's great to have "something I prepare earlier" too
-
Anyytime I start a new PW project, I have a very repetitive process to setup the base folder with assets, database and modules. The design of new sites is something I like to keep bespoke but the following can probably be streamlined a bit download modules (config, formbuilder, listerpro, upgrade, profields etc) create folders for CSS frameworks, Jquery scripts, create includes (header, footer, navigation I'm decided to create a base prototype folder and database with the essential assets. I can cookie-cutter this rapidly and duplicate it as the basis for new projects. Just curious about other peoples process for spinning out a new PW project. Some of you probably use task runners or Git etc? It's an area I need to explore. Cheers
-
One more thing. This may not be part of your Module but when I save a page with the Chosen Select field, I get some weird formatting. See top left of screen and specifically the UL ID of: <ul id="notices" class="ui-widget"> <li class="ui-state-highlight NoticeMessage ui-priority-secondary NoticeDebug"><a class="notice-remove" href="#"><i class="fa fa-times-circle"></i></a><i class="fa fa-gear"></i> Session: Change: Company_Selector_2</li> I think the width here needs to be 100% and not 100px? .ui-state-highlight.ui-state-highlight { top: 0; background: rgb(240,240,240); margin: 3px 5px 3px 0; padding: 0; border: 1px dotted gray; width: 100px; height: 19px; }
-
The drag and drop reordering works lovely. Thanks for letting me know. Can I just chip in some thoughts? This is just a personal preference but I wonder if the selected items should matched the display of the normal Page Select results. IE stacked vertically with 100% width, trash icon and colored background. Then again, your way fits more selections into a smaller space.| I wonder if the drag and drop could be refined a little. When I drag a selected page left or right, I see a dotted line which I don't think is necessary. It's also only 70% height of the field too which makes it look like a mistake. It's probably a part of the original jQuery setup? Chrome has an annoying habit of trying to auto-fill the results and bringing up a selection of 'helpful' results. But really, thanks for taking time to make this. It's a really cool field and my users will love it.
-
Oh cool. I hadn't realised. Rushes off to check it....
-
I love this field type. A user of mine needs to select several pages from 100s and the tree traversal wasn't quick enough to be practical. One thing we do miss iS the ability to reorder chosen pages like the regular page select. Is that on the horizon?
-
Sub-pages not visible in page tree
Peter Knight replied to daniel-not-dan's topic in General Support
Can you share a screen via Skype or get her to use TeamViewer? -
This is such a great Module. Just discovered it and imported over 1000 new pages from https://www.mockaroo.com/ in a few seconds.
-
Had something similar. I think you need to enable multi-lingual support even if you're not using it.
-
I did and had replied above. But at the time it made no difference. :-/
-
I checked that HTML entities was off and it was. Oddly enough, enabling and then disabling it again worked and my output is now working. Reminds me of this... https://www.youtube.com/watch?v=nn2FB1P_Mn8