-
Posts
1,476 -
Joined
-
Last visited
-
Days Won
10
Everything posted by Peter Knight
-
Some of you may be aware of Google Trends and the ability to search for a keywords trend over time. Here's one for PW. There's a very encouraging (and well deserved) climb north. Some crazy dudes from Germany obviously like the CMS too
-
In MODX there's an Extra called GetResources which allows you to loop through Resources and display the contents via a mini template (TPL). For the PW equivalent, I use the foreach loop combined with selectors. Simple enough. Back to getResources, I had a great setup whereby I could loop through several resources and output the content through a different TPL (mini template) depending on a field value within a Resource. IE I'd end up with a single page but the content inside would have several different layouts such as Block 1 = Image on left. Text on right. Blcok 2 = Image on right. Text on left. Block 3 = Text on top. Image underneath. Edit: There's a visual explanation here: http://www.sepiariver.ca/blog/modx-web/how-to-dynamic-content-blocks-with-modx-getresources/ Is this relatively simple with PHP and PW? I'm not looking for code samples but a more accurate idea of what to google. IE What's the proper terminology in PHP?
-
Sorry Kongondo. Must have missed the notification and I see you've replied to something else too. Will pickup on the PM channel.
-
Thanks a mill. For what it's worth, I found your blog docs yesterday. Missed that particular setting but self-fixed another issue
-
Another gem. Thanks for highlighting
-
Command (or Control) + S to save a page. I realise there is both Save (initially) and then Publish and Save and Keep Unpublished. Saving something is more of an automatic action and a requirement. Publish could be kept manual ?
-
This is called the ProcessWire tractor beam. You've been pulled into its path! You wake up one day and know you won't be happy until your own site is completely rebuilt in PW. Even though you don't have time, you have real work to do and your current site and CMS have been perfectly "ok". Before you know it your life is full of echo statements, you're visiting the forums multiple times per day and you can't sleep at 5am because you're crazy excited about the great thing PW allowed you to do with your site that you never thought possible. Anyway, nice write up. Thanks for sharing
-
You mean it was Pirated?
-
Have this wierd select box issue. Anytime I have a list of Related Categories or Related Tags, I get a stray selectbox repeating the Categories or Tags Not sure if it's my browser or the module or Zurb Foundation auto inserting some accessibility thing. Does it happen to anyone else using the Blog Module?
-
Seems fine in terms of opening and closed braces. I don't know much about Modules but having looked at some other code, it seems like the opening statement public function init() { $this->addHook('User::gravatar', $this, 'methodGravatar'); } needs to be preceeded by something like this class MODULENAME extends WireData implements Module {
-
Thanks for this. I've saved the code to the desktop, zipped it and loaded as a module and get the following error Parse Error: syntax error, unexpected 'public' (T_PUBLIC) (line 20 of /Users/peterknight/Sites/EdenWeb/site/modules/Gravatar/Gravatar.module) Any ideas what the issue is there? Happy to move this to a different forum or a PM if kongondo wishes. This error message was shown because you are logged in as a Superuser. Error has been logged.
-
Whenever I see a Bandwidth limit exceeded error, I always think of a fat drummer. Never mind...
-
Same install prob here on 2.5.9 Module is not installable because not all required dependencies are currently met.
-
Ok, Im going to try it but I'm running 2.5.9 or something on the bleeding edge.
-
Is your text editor setup to accept Hanna Code?
-
Happy birthday @Joss (according to LinkedIn). Hope you've got that PostMan Pat tie on and are sipping a nice whiskey
-
Unfortunately, there's a race to the bottom with regards to themes and especially WordPress themes. I never would have thought the numbers were so high though. How are you selecting the web companies?
-
That's a great monitor. Had one for about 7 years and it never let me down. Colors are brilliant too.
-
Interesting links.
-
Had a discussion with a developer friend this morning about hacking (preventing) and backing up sites and databases. Here's some of the methods disussed: PHP scripts hooking into DropBox/Amazon/Google Drive Manually backing up and saving to NAS. Manually backing up, syncing to NAS and then syncing to online service Writing CRON jobs which scan the root for file and folder changes, email you alerts and backup at regular intervals. Online services such as CodeGuard What method(s) do you use to backup your sites. I'm talking about any type of site on any CMS.
-
Good advice. I was using a PageSelect because in the future I'll have 3 different types of posts all generated from the blogging module. And thanks for the code samples and explanations too. I've had a bit of a rethink about this. If I'm not using 90% of the Blogs features (Categories, Comments, Athors) etc then I may be better off disconnecting my special posts from the blog. Otherwise I'm trying to adapt and rewire the Blog when it's perfectly suited to it's task and should probably be left alone. Sorry about the back tracking. Appreciate the examples though.
-
I've added a field called Content_Type to the Blog Post template. I tag *some* posts with as Content_Type=Studio Watch to differentiate them from "regular" bog posts. There's nothing special about these pages. I simply use the Blog as a central publishing platform but pages marked Content_Type=Studio Watch are special and pulled onto a stand alone section of the site. Here's how the field looks in the Blog_Post template. Is there a way on the Blog Posts page (front end) to filter out any posts marked with this tag/category. OR Maybe I'm trying to do something here which will get me in knots. These particular pages shouldn't be listed in the front end under Posts, Categories, Tags, Comments, Authors or Archives. Hmmm, perhaps I need to not use the blog for this particular task. What do you think?
-
Best approach: Repeatable fields Vs separate PW pages
Peter Knight replied to Peter Knight's topic in Getting Started
@Sinnut - Your last suggestion worked out very well. I'm still using the Blog to create most news items of various types. I have a new field called "Post Type" from which I can categorise a post as a "Studio Update". The only issue I had was that my Studio Update tags were appearing in my general Blog tags. I just created a seperate tagging system for Studio Updates. Thanks for the advice.